diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..4bbc6b206 --- /dev/null +++ b/.gitignore @@ -0,0 +1,68 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ +venv/ +.python-version + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +#Ipython Notebook +.ipynb_checkpoints + +# Intellij IDEA files +.idea/* +*.iml diff --git a/.swagger-codegen-ignore b/.swagger-codegen-ignore new file mode 100644 index 000000000..36c1f5413 --- /dev/null +++ b/.swagger-codegen-ignore @@ -0,0 +1,2 @@ +.gitignore +git_push.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..86211e2d4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +# ref: https://docs.travis-ci.com/user/languages/python +language: python +python: + - "2.7" + - "3.2" + - "3.3" + - "3.4" + - "3.5" + #- "3.5-dev" # 3.5 development branch + #- "nightly" # points to the latest development branch e.g. 3.6-dev +# command to install dependencies +install: "pip install -r requirements.txt" +# command to run tests +script: nosetests diff --git a/GEN_README.md b/GEN_README.md new file mode 100644 index 000000000..c796fd005 --- /dev/null +++ b/GEN_README.md @@ -0,0 +1,846 @@ +# k8sclient +No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + +This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: + +- API version: unversioned +- Package version: 1.0.0 +- Build package: class io.swagger.codegen.languages.PythonClientCodegen + +## Requirements. + +Python 2.7 and 3.4+ + +## Installation & Usage +### pip install + +If the python package is hosted on Github, you can install directly from Github + +```sh +pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git +``` +(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) + +Then import the package: +```python +import k8sclient +``` + +### Setuptools + +Install via [Setuptools](http://pypi.python.org/pypi/setuptools). + +```sh +python setup.py install --user +``` +(or `sudo python setup.py install` to install the package for all users) + +Then import the package: +```python +import k8sclient +``` + +## Getting Started + +Please follow the [installation procedure](#installation--usage) and then run the following: + +```python +from __future__ import print_function +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' +# create an instance of the API class +api_instance = k8sclient.ApisApi() + +try: + api_response = api_instance.get_api_versions() + pprint(api_response) +except ApiException as e: + print("Exception when calling ApisApi->get_api_versions: %s\n" % e) + +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*ApisApi* | [**get_api_versions**](docs/ApisApi.md#get_api_versions) | **GET** /apis/ | +*AppsApi* | [**get_apps_api_group**](docs/AppsApi.md#get_apps_api_group) | **GET** /apis/apps/ | +*AppsV1alpha1Api* | [**create_apps_v1alpha1_namespaced_stateful_set**](docs/AppsV1alpha1Api.md#create_apps_v1alpha1_namespaced_stateful_set) | **POST** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets | +*AppsV1alpha1Api* | [**delete_apps_v1alpha1_collection_namespaced_stateful_set**](docs/AppsV1alpha1Api.md#delete_apps_v1alpha1_collection_namespaced_stateful_set) | **DELETE** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets | +*AppsV1alpha1Api* | [**delete_apps_v1alpha1_namespaced_stateful_set**](docs/AppsV1alpha1Api.md#delete_apps_v1alpha1_namespaced_stateful_set) | **DELETE** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name} | +*AppsV1alpha1Api* | [**get_apps_v1alpha1_api_resources**](docs/AppsV1alpha1Api.md#get_apps_v1alpha1_api_resources) | **GET** /apis/apps/v1alpha1/ | +*AppsV1alpha1Api* | [**list_apps_v1alpha1_namespaced_stateful_set**](docs/AppsV1alpha1Api.md#list_apps_v1alpha1_namespaced_stateful_set) | **GET** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets | +*AppsV1alpha1Api* | [**list_apps_v1alpha1_stateful_set_for_all_namespaces**](docs/AppsV1alpha1Api.md#list_apps_v1alpha1_stateful_set_for_all_namespaces) | **GET** /apis/apps/v1alpha1/statefulsets | +*AppsV1alpha1Api* | [**patch_apps_v1alpha1_namespaced_stateful_set**](docs/AppsV1alpha1Api.md#patch_apps_v1alpha1_namespaced_stateful_set) | **PATCH** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name} | +*AppsV1alpha1Api* | [**patch_apps_v1alpha1_namespaced_stateful_set_status**](docs/AppsV1alpha1Api.md#patch_apps_v1alpha1_namespaced_stateful_set_status) | **PATCH** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}/status | +*AppsV1alpha1Api* | [**read_apps_v1alpha1_namespaced_stateful_set**](docs/AppsV1alpha1Api.md#read_apps_v1alpha1_namespaced_stateful_set) | **GET** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name} | +*AppsV1alpha1Api* | [**read_apps_v1alpha1_namespaced_stateful_set_status**](docs/AppsV1alpha1Api.md#read_apps_v1alpha1_namespaced_stateful_set_status) | **GET** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}/status | +*AppsV1alpha1Api* | [**replace_apps_v1alpha1_namespaced_stateful_set**](docs/AppsV1alpha1Api.md#replace_apps_v1alpha1_namespaced_stateful_set) | **PUT** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name} | +*AppsV1alpha1Api* | [**replace_apps_v1alpha1_namespaced_stateful_set_status**](docs/AppsV1alpha1Api.md#replace_apps_v1alpha1_namespaced_stateful_set_status) | **PUT** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}/status | +*AppsV1alpha1Api* | [**watch_apps_v1alpha1_namespaced_stateful_set**](docs/AppsV1alpha1Api.md#watch_apps_v1alpha1_namespaced_stateful_set) | **GET** /apis/apps/v1alpha1/watch/namespaces/{namespace}/statefulsets/{name} | +*AppsV1alpha1Api* | [**watch_apps_v1alpha1_namespaced_stateful_set_list**](docs/AppsV1alpha1Api.md#watch_apps_v1alpha1_namespaced_stateful_set_list) | **GET** /apis/apps/v1alpha1/watch/namespaces/{namespace}/statefulsets | +*AppsV1alpha1Api* | [**watch_apps_v1alpha1_stateful_set_list_for_all_namespaces**](docs/AppsV1alpha1Api.md#watch_apps_v1alpha1_stateful_set_list_for_all_namespaces) | **GET** /apis/apps/v1alpha1/watch/statefulsets | +*AuthenticationApi* | [**get_authentication_api_group**](docs/AuthenticationApi.md#get_authentication_api_group) | **GET** /apis/authentication.k8s.io/ | +*AuthenticationV1beta1Api* | [**create_authentication_v1beta1_token_review**](docs/AuthenticationV1beta1Api.md#create_authentication_v1beta1_token_review) | **POST** /apis/authentication.k8s.io/v1beta1/tokenreviews | +*AuthenticationV1beta1Api* | [**get_authentication_v1beta1_api_resources**](docs/AuthenticationV1beta1Api.md#get_authentication_v1beta1_api_resources) | **GET** /apis/authentication.k8s.io/v1beta1/ | +*AuthorizationApi* | [**get_authorization_api_group**](docs/AuthorizationApi.md#get_authorization_api_group) | **GET** /apis/authorization.k8s.io/ | +*AuthorizationV1beta1Api* | [**create_authorization_v1beta1_namespaced_local_subject_access_review**](docs/AuthorizationV1beta1Api.md#create_authorization_v1beta1_namespaced_local_subject_access_review) | **POST** /apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews | +*AuthorizationV1beta1Api* | [**create_authorization_v1beta1_self_subject_access_review**](docs/AuthorizationV1beta1Api.md#create_authorization_v1beta1_self_subject_access_review) | **POST** /apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews | +*AuthorizationV1beta1Api* | [**create_authorization_v1beta1_subject_access_review**](docs/AuthorizationV1beta1Api.md#create_authorization_v1beta1_subject_access_review) | **POST** /apis/authorization.k8s.io/v1beta1/subjectaccessreviews | +*AuthorizationV1beta1Api* | [**get_authorization_v1beta1_api_resources**](docs/AuthorizationV1beta1Api.md#get_authorization_v1beta1_api_resources) | **GET** /apis/authorization.k8s.io/v1beta1/ | +*AutoscalingApi* | [**get_autoscaling_api_group**](docs/AutoscalingApi.md#get_autoscaling_api_group) | **GET** /apis/autoscaling/ | +*AutoscalingV1Api* | [**create_autoscaling_v1_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV1Api.md#create_autoscaling_v1_namespaced_horizontal_pod_autoscaler) | **POST** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | +*AutoscalingV1Api* | [**delete_autoscaling_v1_collection_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV1Api.md#delete_autoscaling_v1_collection_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | +*AutoscalingV1Api* | [**delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV1Api.md#delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +*AutoscalingV1Api* | [**get_autoscaling_v1_api_resources**](docs/AutoscalingV1Api.md#get_autoscaling_v1_api_resources) | **GET** /apis/autoscaling/v1/ | +*AutoscalingV1Api* | [**list_autoscaling_v1_horizontal_pod_autoscaler_for_all_namespaces**](docs/AutoscalingV1Api.md#list_autoscaling_v1_horizontal_pod_autoscaler_for_all_namespaces) | **GET** /apis/autoscaling/v1/horizontalpodautoscalers | +*AutoscalingV1Api* | [**list_autoscaling_v1_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV1Api.md#list_autoscaling_v1_namespaced_horizontal_pod_autoscaler) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | +*AutoscalingV1Api* | [**patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV1Api.md#patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler) | **PATCH** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +*AutoscalingV1Api* | [**patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status**](docs/AutoscalingV1Api.md#patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status) | **PATCH** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | +*AutoscalingV1Api* | [**read_autoscaling_v1_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV1Api.md#read_autoscaling_v1_namespaced_horizontal_pod_autoscaler) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +*AutoscalingV1Api* | [**read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status**](docs/AutoscalingV1Api.md#read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | +*AutoscalingV1Api* | [**replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV1Api.md#replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +*AutoscalingV1Api* | [**replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status**](docs/AutoscalingV1Api.md#replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | +*AutoscalingV1Api* | [**watch_autoscaling_v1_horizontal_pod_autoscaler_list_for_all_namespaces**](docs/AutoscalingV1Api.md#watch_autoscaling_v1_horizontal_pod_autoscaler_list_for_all_namespaces) | **GET** /apis/autoscaling/v1/watch/horizontalpodautoscalers | +*AutoscalingV1Api* | [**watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV1Api.md#watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler) | **GET** /apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name} | +*AutoscalingV1Api* | [**watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_list**](docs/AutoscalingV1Api.md#watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_list) | **GET** /apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers | +*BatchApi* | [**get_batch_api_group**](docs/BatchApi.md#get_batch_api_group) | **GET** /apis/batch/ | +*BatchV1Api* | [**create_batch_v1_namespaced_job**](docs/BatchV1Api.md#create_batch_v1_namespaced_job) | **POST** /apis/batch/v1/namespaces/{namespace}/jobs | +*BatchV1Api* | [**delete_batch_v1_collection_namespaced_job**](docs/BatchV1Api.md#delete_batch_v1_collection_namespaced_job) | **DELETE** /apis/batch/v1/namespaces/{namespace}/jobs | +*BatchV1Api* | [**delete_batch_v1_namespaced_job**](docs/BatchV1Api.md#delete_batch_v1_namespaced_job) | **DELETE** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | +*BatchV1Api* | [**get_batch_v1_api_resources**](docs/BatchV1Api.md#get_batch_v1_api_resources) | **GET** /apis/batch/v1/ | +*BatchV1Api* | [**list_batch_v1_job_for_all_namespaces**](docs/BatchV1Api.md#list_batch_v1_job_for_all_namespaces) | **GET** /apis/batch/v1/jobs | +*BatchV1Api* | [**list_batch_v1_namespaced_job**](docs/BatchV1Api.md#list_batch_v1_namespaced_job) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs | +*BatchV1Api* | [**patch_batch_v1_namespaced_job**](docs/BatchV1Api.md#patch_batch_v1_namespaced_job) | **PATCH** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | +*BatchV1Api* | [**patch_batch_v1_namespaced_job_status**](docs/BatchV1Api.md#patch_batch_v1_namespaced_job_status) | **PATCH** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | +*BatchV1Api* | [**read_batch_v1_namespaced_job**](docs/BatchV1Api.md#read_batch_v1_namespaced_job) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | +*BatchV1Api* | [**read_batch_v1_namespaced_job_status**](docs/BatchV1Api.md#read_batch_v1_namespaced_job_status) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | +*BatchV1Api* | [**replace_batch_v1_namespaced_job**](docs/BatchV1Api.md#replace_batch_v1_namespaced_job) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | +*BatchV1Api* | [**replace_batch_v1_namespaced_job_status**](docs/BatchV1Api.md#replace_batch_v1_namespaced_job_status) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | +*BatchV1Api* | [**watch_batch_v1_job_list_for_all_namespaces**](docs/BatchV1Api.md#watch_batch_v1_job_list_for_all_namespaces) | **GET** /apis/batch/v1/watch/jobs | +*BatchV1Api* | [**watch_batch_v1_namespaced_job**](docs/BatchV1Api.md#watch_batch_v1_namespaced_job) | **GET** /apis/batch/v1/watch/namespaces/{namespace}/jobs/{name} | +*BatchV1Api* | [**watch_batch_v1_namespaced_job_list**](docs/BatchV1Api.md#watch_batch_v1_namespaced_job_list) | **GET** /apis/batch/v1/watch/namespaces/{namespace}/jobs | +*BatchV2alpha1Api* | [**get_batch_v2alpha1_api_resources**](docs/BatchV2alpha1Api.md#get_batch_v2alpha1_api_resources) | **GET** /apis/batch/v2alpha1/ | +*CertificatesApi* | [**get_certificates_api_group**](docs/CertificatesApi.md#get_certificates_api_group) | **GET** /apis/certificates.k8s.io/ | +*CertificatesV1alpha1Api* | [**create_certificates_v1alpha1_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#create_certificates_v1alpha1_certificate_signing_request) | **POST** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests | +*CertificatesV1alpha1Api* | [**delete_certificates_v1alpha1_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#delete_certificates_v1alpha1_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | +*CertificatesV1alpha1Api* | [**delete_certificates_v1alpha1_collection_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#delete_certificates_v1alpha1_collection_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests | +*CertificatesV1alpha1Api* | [**get_certificates_v1alpha1_api_resources**](docs/CertificatesV1alpha1Api.md#get_certificates_v1alpha1_api_resources) | **GET** /apis/certificates.k8s.io/v1alpha1/ | +*CertificatesV1alpha1Api* | [**list_certificates_v1alpha1_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#list_certificates_v1alpha1_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests | +*CertificatesV1alpha1Api* | [**patch_certificates_v1alpha1_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#patch_certificates_v1alpha1_certificate_signing_request) | **PATCH** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | +*CertificatesV1alpha1Api* | [**read_certificates_v1alpha1_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#read_certificates_v1alpha1_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | +*CertificatesV1alpha1Api* | [**replace_certificates_v1alpha1_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#replace_certificates_v1alpha1_certificate_signing_request) | **PUT** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | +*CertificatesV1alpha1Api* | [**replace_certificates_v1alpha1_certificate_signing_request_approval**](docs/CertificatesV1alpha1Api.md#replace_certificates_v1alpha1_certificate_signing_request_approval) | **PUT** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/approval | +*CertificatesV1alpha1Api* | [**replace_certificates_v1alpha1_certificate_signing_request_status**](docs/CertificatesV1alpha1Api.md#replace_certificates_v1alpha1_certificate_signing_request_status) | **PUT** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/status | +*CertificatesV1alpha1Api* | [**watch_certificates_v1alpha1_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#watch_certificates_v1alpha1_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1alpha1/watch/certificatesigningrequests/{name} | +*CertificatesV1alpha1Api* | [**watch_certificates_v1alpha1_certificate_signing_request_list**](docs/CertificatesV1alpha1Api.md#watch_certificates_v1alpha1_certificate_signing_request_list) | **GET** /apis/certificates.k8s.io/v1alpha1/watch/certificatesigningrequests | +*CoreApi* | [**get_core_api_versions**](docs/CoreApi.md#get_core_api_versions) | **GET** /api/ | +*CoreV1Api* | [**connect_core_v1_delete_namespaced_pod_proxy**](docs/CoreV1Api.md#connect_core_v1_delete_namespaced_pod_proxy) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name}/proxy | +*CoreV1Api* | [**connect_core_v1_delete_namespaced_pod_proxy_with_path**](docs/CoreV1Api.md#connect_core_v1_delete_namespaced_pod_proxy_with_path) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | +*CoreV1Api* | [**connect_core_v1_delete_namespaced_service_proxy**](docs/CoreV1Api.md#connect_core_v1_delete_namespaced_service_proxy) | **DELETE** /api/v1/namespaces/{namespace}/services/{name}/proxy | +*CoreV1Api* | [**connect_core_v1_delete_namespaced_service_proxy_with_path**](docs/CoreV1Api.md#connect_core_v1_delete_namespaced_service_proxy_with_path) | **DELETE** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | +*CoreV1Api* | [**connect_core_v1_delete_node_proxy**](docs/CoreV1Api.md#connect_core_v1_delete_node_proxy) | **DELETE** /api/v1/nodes/{name}/proxy | +*CoreV1Api* | [**connect_core_v1_delete_node_proxy_with_path**](docs/CoreV1Api.md#connect_core_v1_delete_node_proxy_with_path) | **DELETE** /api/v1/nodes/{name}/proxy/{path} | +*CoreV1Api* | [**connect_core_v1_get_namespaced_pod_attach**](docs/CoreV1Api.md#connect_core_v1_get_namespaced_pod_attach) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/attach | +*CoreV1Api* | [**connect_core_v1_get_namespaced_pod_exec**](docs/CoreV1Api.md#connect_core_v1_get_namespaced_pod_exec) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/exec | +*CoreV1Api* | [**connect_core_v1_get_namespaced_pod_portforward**](docs/CoreV1Api.md#connect_core_v1_get_namespaced_pod_portforward) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/portforward | +*CoreV1Api* | [**connect_core_v1_get_namespaced_pod_proxy**](docs/CoreV1Api.md#connect_core_v1_get_namespaced_pod_proxy) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/proxy | +*CoreV1Api* | [**connect_core_v1_get_namespaced_pod_proxy_with_path**](docs/CoreV1Api.md#connect_core_v1_get_namespaced_pod_proxy_with_path) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | +*CoreV1Api* | [**connect_core_v1_get_namespaced_service_proxy**](docs/CoreV1Api.md#connect_core_v1_get_namespaced_service_proxy) | **GET** /api/v1/namespaces/{namespace}/services/{name}/proxy | +*CoreV1Api* | [**connect_core_v1_get_namespaced_service_proxy_with_path**](docs/CoreV1Api.md#connect_core_v1_get_namespaced_service_proxy_with_path) | **GET** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | +*CoreV1Api* | [**connect_core_v1_get_node_proxy**](docs/CoreV1Api.md#connect_core_v1_get_node_proxy) | **GET** /api/v1/nodes/{name}/proxy | +*CoreV1Api* | [**connect_core_v1_get_node_proxy_with_path**](docs/CoreV1Api.md#connect_core_v1_get_node_proxy_with_path) | **GET** /api/v1/nodes/{name}/proxy/{path} | +*CoreV1Api* | [**connect_core_v1_head_namespaced_pod_proxy**](docs/CoreV1Api.md#connect_core_v1_head_namespaced_pod_proxy) | **HEAD** /api/v1/namespaces/{namespace}/pods/{name}/proxy | +*CoreV1Api* | [**connect_core_v1_head_namespaced_pod_proxy_with_path**](docs/CoreV1Api.md#connect_core_v1_head_namespaced_pod_proxy_with_path) | **HEAD** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | +*CoreV1Api* | [**connect_core_v1_head_namespaced_service_proxy**](docs/CoreV1Api.md#connect_core_v1_head_namespaced_service_proxy) | **HEAD** /api/v1/namespaces/{namespace}/services/{name}/proxy | +*CoreV1Api* | [**connect_core_v1_head_namespaced_service_proxy_with_path**](docs/CoreV1Api.md#connect_core_v1_head_namespaced_service_proxy_with_path) | **HEAD** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | +*CoreV1Api* | [**connect_core_v1_head_node_proxy**](docs/CoreV1Api.md#connect_core_v1_head_node_proxy) | **HEAD** /api/v1/nodes/{name}/proxy | +*CoreV1Api* | [**connect_core_v1_head_node_proxy_with_path**](docs/CoreV1Api.md#connect_core_v1_head_node_proxy_with_path) | **HEAD** /api/v1/nodes/{name}/proxy/{path} | +*CoreV1Api* | [**connect_core_v1_options_namespaced_pod_proxy**](docs/CoreV1Api.md#connect_core_v1_options_namespaced_pod_proxy) | **OPTIONS** /api/v1/namespaces/{namespace}/pods/{name}/proxy | +*CoreV1Api* | [**connect_core_v1_options_namespaced_pod_proxy_with_path**](docs/CoreV1Api.md#connect_core_v1_options_namespaced_pod_proxy_with_path) | **OPTIONS** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | +*CoreV1Api* | [**connect_core_v1_options_namespaced_service_proxy**](docs/CoreV1Api.md#connect_core_v1_options_namespaced_service_proxy) | **OPTIONS** /api/v1/namespaces/{namespace}/services/{name}/proxy | +*CoreV1Api* | [**connect_core_v1_options_namespaced_service_proxy_with_path**](docs/CoreV1Api.md#connect_core_v1_options_namespaced_service_proxy_with_path) | **OPTIONS** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | +*CoreV1Api* | [**connect_core_v1_options_node_proxy**](docs/CoreV1Api.md#connect_core_v1_options_node_proxy) | **OPTIONS** /api/v1/nodes/{name}/proxy | +*CoreV1Api* | [**connect_core_v1_options_node_proxy_with_path**](docs/CoreV1Api.md#connect_core_v1_options_node_proxy_with_path) | **OPTIONS** /api/v1/nodes/{name}/proxy/{path} | +*CoreV1Api* | [**connect_core_v1_post_namespaced_pod_attach**](docs/CoreV1Api.md#connect_core_v1_post_namespaced_pod_attach) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/attach | +*CoreV1Api* | [**connect_core_v1_post_namespaced_pod_exec**](docs/CoreV1Api.md#connect_core_v1_post_namespaced_pod_exec) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/exec | +*CoreV1Api* | [**connect_core_v1_post_namespaced_pod_portforward**](docs/CoreV1Api.md#connect_core_v1_post_namespaced_pod_portforward) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/portforward | +*CoreV1Api* | [**connect_core_v1_post_namespaced_pod_proxy**](docs/CoreV1Api.md#connect_core_v1_post_namespaced_pod_proxy) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/proxy | +*CoreV1Api* | [**connect_core_v1_post_namespaced_pod_proxy_with_path**](docs/CoreV1Api.md#connect_core_v1_post_namespaced_pod_proxy_with_path) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | +*CoreV1Api* | [**connect_core_v1_post_namespaced_service_proxy**](docs/CoreV1Api.md#connect_core_v1_post_namespaced_service_proxy) | **POST** /api/v1/namespaces/{namespace}/services/{name}/proxy | +*CoreV1Api* | [**connect_core_v1_post_namespaced_service_proxy_with_path**](docs/CoreV1Api.md#connect_core_v1_post_namespaced_service_proxy_with_path) | **POST** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | +*CoreV1Api* | [**connect_core_v1_post_node_proxy**](docs/CoreV1Api.md#connect_core_v1_post_node_proxy) | **POST** /api/v1/nodes/{name}/proxy | +*CoreV1Api* | [**connect_core_v1_post_node_proxy_with_path**](docs/CoreV1Api.md#connect_core_v1_post_node_proxy_with_path) | **POST** /api/v1/nodes/{name}/proxy/{path} | +*CoreV1Api* | [**connect_core_v1_put_namespaced_pod_proxy**](docs/CoreV1Api.md#connect_core_v1_put_namespaced_pod_proxy) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/proxy | +*CoreV1Api* | [**connect_core_v1_put_namespaced_pod_proxy_with_path**](docs/CoreV1Api.md#connect_core_v1_put_namespaced_pod_proxy_with_path) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | +*CoreV1Api* | [**connect_core_v1_put_namespaced_service_proxy**](docs/CoreV1Api.md#connect_core_v1_put_namespaced_service_proxy) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/proxy | +*CoreV1Api* | [**connect_core_v1_put_namespaced_service_proxy_with_path**](docs/CoreV1Api.md#connect_core_v1_put_namespaced_service_proxy_with_path) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | +*CoreV1Api* | [**connect_core_v1_put_node_proxy**](docs/CoreV1Api.md#connect_core_v1_put_node_proxy) | **PUT** /api/v1/nodes/{name}/proxy | +*CoreV1Api* | [**connect_core_v1_put_node_proxy_with_path**](docs/CoreV1Api.md#connect_core_v1_put_node_proxy_with_path) | **PUT** /api/v1/nodes/{name}/proxy/{path} | +*CoreV1Api* | [**create_core_v1_namespace**](docs/CoreV1Api.md#create_core_v1_namespace) | **POST** /api/v1/namespaces | +*CoreV1Api* | [**create_core_v1_namespaced_binding**](docs/CoreV1Api.md#create_core_v1_namespaced_binding) | **POST** /api/v1/namespaces/{namespace}/bindings | +*CoreV1Api* | [**create_core_v1_namespaced_binding_binding**](docs/CoreV1Api.md#create_core_v1_namespaced_binding_binding) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/binding | +*CoreV1Api* | [**create_core_v1_namespaced_config_map**](docs/CoreV1Api.md#create_core_v1_namespaced_config_map) | **POST** /api/v1/namespaces/{namespace}/configmaps | +*CoreV1Api* | [**create_core_v1_namespaced_endpoints**](docs/CoreV1Api.md#create_core_v1_namespaced_endpoints) | **POST** /api/v1/namespaces/{namespace}/endpoints | +*CoreV1Api* | [**create_core_v1_namespaced_event**](docs/CoreV1Api.md#create_core_v1_namespaced_event) | **POST** /api/v1/namespaces/{namespace}/events | +*CoreV1Api* | [**create_core_v1_namespaced_eviction_eviction**](docs/CoreV1Api.md#create_core_v1_namespaced_eviction_eviction) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/eviction | +*CoreV1Api* | [**create_core_v1_namespaced_limit_range**](docs/CoreV1Api.md#create_core_v1_namespaced_limit_range) | **POST** /api/v1/namespaces/{namespace}/limitranges | +*CoreV1Api* | [**create_core_v1_namespaced_persistent_volume_claim**](docs/CoreV1Api.md#create_core_v1_namespaced_persistent_volume_claim) | **POST** /api/v1/namespaces/{namespace}/persistentvolumeclaims | +*CoreV1Api* | [**create_core_v1_namespaced_pod**](docs/CoreV1Api.md#create_core_v1_namespaced_pod) | **POST** /api/v1/namespaces/{namespace}/pods | +*CoreV1Api* | [**create_core_v1_namespaced_pod_template**](docs/CoreV1Api.md#create_core_v1_namespaced_pod_template) | **POST** /api/v1/namespaces/{namespace}/podtemplates | +*CoreV1Api* | [**create_core_v1_namespaced_replication_controller**](docs/CoreV1Api.md#create_core_v1_namespaced_replication_controller) | **POST** /api/v1/namespaces/{namespace}/replicationcontrollers | +*CoreV1Api* | [**create_core_v1_namespaced_resource_quota**](docs/CoreV1Api.md#create_core_v1_namespaced_resource_quota) | **POST** /api/v1/namespaces/{namespace}/resourcequotas | +*CoreV1Api* | [**create_core_v1_namespaced_secret**](docs/CoreV1Api.md#create_core_v1_namespaced_secret) | **POST** /api/v1/namespaces/{namespace}/secrets | +*CoreV1Api* | [**create_core_v1_namespaced_service**](docs/CoreV1Api.md#create_core_v1_namespaced_service) | **POST** /api/v1/namespaces/{namespace}/services | +*CoreV1Api* | [**create_core_v1_namespaced_service_account**](docs/CoreV1Api.md#create_core_v1_namespaced_service_account) | **POST** /api/v1/namespaces/{namespace}/serviceaccounts | +*CoreV1Api* | [**create_core_v1_node**](docs/CoreV1Api.md#create_core_v1_node) | **POST** /api/v1/nodes | +*CoreV1Api* | [**create_core_v1_persistent_volume**](docs/CoreV1Api.md#create_core_v1_persistent_volume) | **POST** /api/v1/persistentvolumes | +*CoreV1Api* | [**delete_core_v1_collection_namespace**](docs/CoreV1Api.md#delete_core_v1_collection_namespace) | **DELETE** /api/v1/namespaces | +*CoreV1Api* | [**delete_core_v1_collection_namespaced_config_map**](docs/CoreV1Api.md#delete_core_v1_collection_namespaced_config_map) | **DELETE** /api/v1/namespaces/{namespace}/configmaps | +*CoreV1Api* | [**delete_core_v1_collection_namespaced_endpoints**](docs/CoreV1Api.md#delete_core_v1_collection_namespaced_endpoints) | **DELETE** /api/v1/namespaces/{namespace}/endpoints | +*CoreV1Api* | [**delete_core_v1_collection_namespaced_event**](docs/CoreV1Api.md#delete_core_v1_collection_namespaced_event) | **DELETE** /api/v1/namespaces/{namespace}/events | +*CoreV1Api* | [**delete_core_v1_collection_namespaced_limit_range**](docs/CoreV1Api.md#delete_core_v1_collection_namespaced_limit_range) | **DELETE** /api/v1/namespaces/{namespace}/limitranges | +*CoreV1Api* | [**delete_core_v1_collection_namespaced_persistent_volume_claim**](docs/CoreV1Api.md#delete_core_v1_collection_namespaced_persistent_volume_claim) | **DELETE** /api/v1/namespaces/{namespace}/persistentvolumeclaims | +*CoreV1Api* | [**delete_core_v1_collection_namespaced_pod**](docs/CoreV1Api.md#delete_core_v1_collection_namespaced_pod) | **DELETE** /api/v1/namespaces/{namespace}/pods | +*CoreV1Api* | [**delete_core_v1_collection_namespaced_pod_template**](docs/CoreV1Api.md#delete_core_v1_collection_namespaced_pod_template) | **DELETE** /api/v1/namespaces/{namespace}/podtemplates | +*CoreV1Api* | [**delete_core_v1_collection_namespaced_replication_controller**](docs/CoreV1Api.md#delete_core_v1_collection_namespaced_replication_controller) | **DELETE** /api/v1/namespaces/{namespace}/replicationcontrollers | +*CoreV1Api* | [**delete_core_v1_collection_namespaced_resource_quota**](docs/CoreV1Api.md#delete_core_v1_collection_namespaced_resource_quota) | **DELETE** /api/v1/namespaces/{namespace}/resourcequotas | +*CoreV1Api* | [**delete_core_v1_collection_namespaced_secret**](docs/CoreV1Api.md#delete_core_v1_collection_namespaced_secret) | **DELETE** /api/v1/namespaces/{namespace}/secrets | +*CoreV1Api* | [**delete_core_v1_collection_namespaced_service_account**](docs/CoreV1Api.md#delete_core_v1_collection_namespaced_service_account) | **DELETE** /api/v1/namespaces/{namespace}/serviceaccounts | +*CoreV1Api* | [**delete_core_v1_collection_node**](docs/CoreV1Api.md#delete_core_v1_collection_node) | **DELETE** /api/v1/nodes | +*CoreV1Api* | [**delete_core_v1_collection_persistent_volume**](docs/CoreV1Api.md#delete_core_v1_collection_persistent_volume) | **DELETE** /api/v1/persistentvolumes | +*CoreV1Api* | [**delete_core_v1_namespace**](docs/CoreV1Api.md#delete_core_v1_namespace) | **DELETE** /api/v1/namespaces/{name} | +*CoreV1Api* | [**delete_core_v1_namespaced_config_map**](docs/CoreV1Api.md#delete_core_v1_namespaced_config_map) | **DELETE** /api/v1/namespaces/{namespace}/configmaps/{name} | +*CoreV1Api* | [**delete_core_v1_namespaced_endpoints**](docs/CoreV1Api.md#delete_core_v1_namespaced_endpoints) | **DELETE** /api/v1/namespaces/{namespace}/endpoints/{name} | +*CoreV1Api* | [**delete_core_v1_namespaced_event**](docs/CoreV1Api.md#delete_core_v1_namespaced_event) | **DELETE** /api/v1/namespaces/{namespace}/events/{name} | +*CoreV1Api* | [**delete_core_v1_namespaced_limit_range**](docs/CoreV1Api.md#delete_core_v1_namespaced_limit_range) | **DELETE** /api/v1/namespaces/{namespace}/limitranges/{name} | +*CoreV1Api* | [**delete_core_v1_namespaced_persistent_volume_claim**](docs/CoreV1Api.md#delete_core_v1_namespaced_persistent_volume_claim) | **DELETE** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | +*CoreV1Api* | [**delete_core_v1_namespaced_pod**](docs/CoreV1Api.md#delete_core_v1_namespaced_pod) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name} | +*CoreV1Api* | [**delete_core_v1_namespaced_pod_template**](docs/CoreV1Api.md#delete_core_v1_namespaced_pod_template) | **DELETE** /api/v1/namespaces/{namespace}/podtemplates/{name} | +*CoreV1Api* | [**delete_core_v1_namespaced_replication_controller**](docs/CoreV1Api.md#delete_core_v1_namespaced_replication_controller) | **DELETE** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | +*CoreV1Api* | [**delete_core_v1_namespaced_resource_quota**](docs/CoreV1Api.md#delete_core_v1_namespaced_resource_quota) | **DELETE** /api/v1/namespaces/{namespace}/resourcequotas/{name} | +*CoreV1Api* | [**delete_core_v1_namespaced_secret**](docs/CoreV1Api.md#delete_core_v1_namespaced_secret) | **DELETE** /api/v1/namespaces/{namespace}/secrets/{name} | +*CoreV1Api* | [**delete_core_v1_namespaced_service**](docs/CoreV1Api.md#delete_core_v1_namespaced_service) | **DELETE** /api/v1/namespaces/{namespace}/services/{name} | +*CoreV1Api* | [**delete_core_v1_namespaced_service_account**](docs/CoreV1Api.md#delete_core_v1_namespaced_service_account) | **DELETE** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | +*CoreV1Api* | [**delete_core_v1_node**](docs/CoreV1Api.md#delete_core_v1_node) | **DELETE** /api/v1/nodes/{name} | +*CoreV1Api* | [**delete_core_v1_persistent_volume**](docs/CoreV1Api.md#delete_core_v1_persistent_volume) | **DELETE** /api/v1/persistentvolumes/{name} | +*CoreV1Api* | [**get_core_v1_api_resources**](docs/CoreV1Api.md#get_core_v1_api_resources) | **GET** /api/v1/ | +*CoreV1Api* | [**list_core_v1_component_status**](docs/CoreV1Api.md#list_core_v1_component_status) | **GET** /api/v1/componentstatuses | +*CoreV1Api* | [**list_core_v1_config_map_for_all_namespaces**](docs/CoreV1Api.md#list_core_v1_config_map_for_all_namespaces) | **GET** /api/v1/configmaps | +*CoreV1Api* | [**list_core_v1_endpoints_for_all_namespaces**](docs/CoreV1Api.md#list_core_v1_endpoints_for_all_namespaces) | **GET** /api/v1/endpoints | +*CoreV1Api* | [**list_core_v1_event_for_all_namespaces**](docs/CoreV1Api.md#list_core_v1_event_for_all_namespaces) | **GET** /api/v1/events | +*CoreV1Api* | [**list_core_v1_limit_range_for_all_namespaces**](docs/CoreV1Api.md#list_core_v1_limit_range_for_all_namespaces) | **GET** /api/v1/limitranges | +*CoreV1Api* | [**list_core_v1_namespace**](docs/CoreV1Api.md#list_core_v1_namespace) | **GET** /api/v1/namespaces | +*CoreV1Api* | [**list_core_v1_namespaced_config_map**](docs/CoreV1Api.md#list_core_v1_namespaced_config_map) | **GET** /api/v1/namespaces/{namespace}/configmaps | +*CoreV1Api* | [**list_core_v1_namespaced_endpoints**](docs/CoreV1Api.md#list_core_v1_namespaced_endpoints) | **GET** /api/v1/namespaces/{namespace}/endpoints | +*CoreV1Api* | [**list_core_v1_namespaced_event**](docs/CoreV1Api.md#list_core_v1_namespaced_event) | **GET** /api/v1/namespaces/{namespace}/events | +*CoreV1Api* | [**list_core_v1_namespaced_limit_range**](docs/CoreV1Api.md#list_core_v1_namespaced_limit_range) | **GET** /api/v1/namespaces/{namespace}/limitranges | +*CoreV1Api* | [**list_core_v1_namespaced_persistent_volume_claim**](docs/CoreV1Api.md#list_core_v1_namespaced_persistent_volume_claim) | **GET** /api/v1/namespaces/{namespace}/persistentvolumeclaims | +*CoreV1Api* | [**list_core_v1_namespaced_pod**](docs/CoreV1Api.md#list_core_v1_namespaced_pod) | **GET** /api/v1/namespaces/{namespace}/pods | +*CoreV1Api* | [**list_core_v1_namespaced_pod_template**](docs/CoreV1Api.md#list_core_v1_namespaced_pod_template) | **GET** /api/v1/namespaces/{namespace}/podtemplates | +*CoreV1Api* | [**list_core_v1_namespaced_replication_controller**](docs/CoreV1Api.md#list_core_v1_namespaced_replication_controller) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers | +*CoreV1Api* | [**list_core_v1_namespaced_resource_quota**](docs/CoreV1Api.md#list_core_v1_namespaced_resource_quota) | **GET** /api/v1/namespaces/{namespace}/resourcequotas | +*CoreV1Api* | [**list_core_v1_namespaced_secret**](docs/CoreV1Api.md#list_core_v1_namespaced_secret) | **GET** /api/v1/namespaces/{namespace}/secrets | +*CoreV1Api* | [**list_core_v1_namespaced_service**](docs/CoreV1Api.md#list_core_v1_namespaced_service) | **GET** /api/v1/namespaces/{namespace}/services | +*CoreV1Api* | [**list_core_v1_namespaced_service_account**](docs/CoreV1Api.md#list_core_v1_namespaced_service_account) | **GET** /api/v1/namespaces/{namespace}/serviceaccounts | +*CoreV1Api* | [**list_core_v1_node**](docs/CoreV1Api.md#list_core_v1_node) | **GET** /api/v1/nodes | +*CoreV1Api* | [**list_core_v1_persistent_volume**](docs/CoreV1Api.md#list_core_v1_persistent_volume) | **GET** /api/v1/persistentvolumes | +*CoreV1Api* | [**list_core_v1_persistent_volume_claim_for_all_namespaces**](docs/CoreV1Api.md#list_core_v1_persistent_volume_claim_for_all_namespaces) | **GET** /api/v1/persistentvolumeclaims | +*CoreV1Api* | [**list_core_v1_pod_for_all_namespaces**](docs/CoreV1Api.md#list_core_v1_pod_for_all_namespaces) | **GET** /api/v1/pods | +*CoreV1Api* | [**list_core_v1_pod_template_for_all_namespaces**](docs/CoreV1Api.md#list_core_v1_pod_template_for_all_namespaces) | **GET** /api/v1/podtemplates | +*CoreV1Api* | [**list_core_v1_replication_controller_for_all_namespaces**](docs/CoreV1Api.md#list_core_v1_replication_controller_for_all_namespaces) | **GET** /api/v1/replicationcontrollers | +*CoreV1Api* | [**list_core_v1_resource_quota_for_all_namespaces**](docs/CoreV1Api.md#list_core_v1_resource_quota_for_all_namespaces) | **GET** /api/v1/resourcequotas | +*CoreV1Api* | [**list_core_v1_secret_for_all_namespaces**](docs/CoreV1Api.md#list_core_v1_secret_for_all_namespaces) | **GET** /api/v1/secrets | +*CoreV1Api* | [**list_core_v1_service_account_for_all_namespaces**](docs/CoreV1Api.md#list_core_v1_service_account_for_all_namespaces) | **GET** /api/v1/serviceaccounts | +*CoreV1Api* | [**list_core_v1_service_for_all_namespaces**](docs/CoreV1Api.md#list_core_v1_service_for_all_namespaces) | **GET** /api/v1/services | +*CoreV1Api* | [**patch_core_v1_namespace**](docs/CoreV1Api.md#patch_core_v1_namespace) | **PATCH** /api/v1/namespaces/{name} | +*CoreV1Api* | [**patch_core_v1_namespace_status**](docs/CoreV1Api.md#patch_core_v1_namespace_status) | **PATCH** /api/v1/namespaces/{name}/status | +*CoreV1Api* | [**patch_core_v1_namespaced_config_map**](docs/CoreV1Api.md#patch_core_v1_namespaced_config_map) | **PATCH** /api/v1/namespaces/{namespace}/configmaps/{name} | +*CoreV1Api* | [**patch_core_v1_namespaced_endpoints**](docs/CoreV1Api.md#patch_core_v1_namespaced_endpoints) | **PATCH** /api/v1/namespaces/{namespace}/endpoints/{name} | +*CoreV1Api* | [**patch_core_v1_namespaced_event**](docs/CoreV1Api.md#patch_core_v1_namespaced_event) | **PATCH** /api/v1/namespaces/{namespace}/events/{name} | +*CoreV1Api* | [**patch_core_v1_namespaced_limit_range**](docs/CoreV1Api.md#patch_core_v1_namespaced_limit_range) | **PATCH** /api/v1/namespaces/{namespace}/limitranges/{name} | +*CoreV1Api* | [**patch_core_v1_namespaced_persistent_volume_claim**](docs/CoreV1Api.md#patch_core_v1_namespaced_persistent_volume_claim) | **PATCH** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | +*CoreV1Api* | [**patch_core_v1_namespaced_persistent_volume_claim_status**](docs/CoreV1Api.md#patch_core_v1_namespaced_persistent_volume_claim_status) | **PATCH** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | +*CoreV1Api* | [**patch_core_v1_namespaced_pod**](docs/CoreV1Api.md#patch_core_v1_namespaced_pod) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name} | +*CoreV1Api* | [**patch_core_v1_namespaced_pod_status**](docs/CoreV1Api.md#patch_core_v1_namespaced_pod_status) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name}/status | +*CoreV1Api* | [**patch_core_v1_namespaced_pod_template**](docs/CoreV1Api.md#patch_core_v1_namespaced_pod_template) | **PATCH** /api/v1/namespaces/{namespace}/podtemplates/{name} | +*CoreV1Api* | [**patch_core_v1_namespaced_replication_controller**](docs/CoreV1Api.md#patch_core_v1_namespaced_replication_controller) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | +*CoreV1Api* | [**patch_core_v1_namespaced_replication_controller_status**](docs/CoreV1Api.md#patch_core_v1_namespaced_replication_controller_status) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | +*CoreV1Api* | [**patch_core_v1_namespaced_resource_quota**](docs/CoreV1Api.md#patch_core_v1_namespaced_resource_quota) | **PATCH** /api/v1/namespaces/{namespace}/resourcequotas/{name} | +*CoreV1Api* | [**patch_core_v1_namespaced_resource_quota_status**](docs/CoreV1Api.md#patch_core_v1_namespaced_resource_quota_status) | **PATCH** /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | +*CoreV1Api* | [**patch_core_v1_namespaced_scale_scale**](docs/CoreV1Api.md#patch_core_v1_namespaced_scale_scale) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | +*CoreV1Api* | [**patch_core_v1_namespaced_secret**](docs/CoreV1Api.md#patch_core_v1_namespaced_secret) | **PATCH** /api/v1/namespaces/{namespace}/secrets/{name} | +*CoreV1Api* | [**patch_core_v1_namespaced_service**](docs/CoreV1Api.md#patch_core_v1_namespaced_service) | **PATCH** /api/v1/namespaces/{namespace}/services/{name} | +*CoreV1Api* | [**patch_core_v1_namespaced_service_account**](docs/CoreV1Api.md#patch_core_v1_namespaced_service_account) | **PATCH** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | +*CoreV1Api* | [**patch_core_v1_namespaced_service_status**](docs/CoreV1Api.md#patch_core_v1_namespaced_service_status) | **PATCH** /api/v1/namespaces/{namespace}/services/{name}/status | +*CoreV1Api* | [**patch_core_v1_node**](docs/CoreV1Api.md#patch_core_v1_node) | **PATCH** /api/v1/nodes/{name} | +*CoreV1Api* | [**patch_core_v1_node_status**](docs/CoreV1Api.md#patch_core_v1_node_status) | **PATCH** /api/v1/nodes/{name}/status | +*CoreV1Api* | [**patch_core_v1_persistent_volume**](docs/CoreV1Api.md#patch_core_v1_persistent_volume) | **PATCH** /api/v1/persistentvolumes/{name} | +*CoreV1Api* | [**patch_core_v1_persistent_volume_status**](docs/CoreV1Api.md#patch_core_v1_persistent_volume_status) | **PATCH** /api/v1/persistentvolumes/{name}/status | +*CoreV1Api* | [**proxy_core_v1_delete_namespaced_pod**](docs/CoreV1Api.md#proxy_core_v1_delete_namespaced_pod) | **DELETE** /api/v1/proxy/namespaces/{namespace}/pods/{name} | +*CoreV1Api* | [**proxy_core_v1_delete_namespaced_pod_with_path**](docs/CoreV1Api.md#proxy_core_v1_delete_namespaced_pod_with_path) | **DELETE** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | +*CoreV1Api* | [**proxy_core_v1_delete_namespaced_service**](docs/CoreV1Api.md#proxy_core_v1_delete_namespaced_service) | **DELETE** /api/v1/proxy/namespaces/{namespace}/services/{name} | +*CoreV1Api* | [**proxy_core_v1_delete_namespaced_service_with_path**](docs/CoreV1Api.md#proxy_core_v1_delete_namespaced_service_with_path) | **DELETE** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | +*CoreV1Api* | [**proxy_core_v1_delete_node**](docs/CoreV1Api.md#proxy_core_v1_delete_node) | **DELETE** /api/v1/proxy/nodes/{name} | +*CoreV1Api* | [**proxy_core_v1_delete_node_with_path**](docs/CoreV1Api.md#proxy_core_v1_delete_node_with_path) | **DELETE** /api/v1/proxy/nodes/{name}/{path} | +*CoreV1Api* | [**proxy_core_v1_get_namespaced_pod**](docs/CoreV1Api.md#proxy_core_v1_get_namespaced_pod) | **GET** /api/v1/proxy/namespaces/{namespace}/pods/{name} | +*CoreV1Api* | [**proxy_core_v1_get_namespaced_pod_with_path**](docs/CoreV1Api.md#proxy_core_v1_get_namespaced_pod_with_path) | **GET** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | +*CoreV1Api* | [**proxy_core_v1_get_namespaced_service**](docs/CoreV1Api.md#proxy_core_v1_get_namespaced_service) | **GET** /api/v1/proxy/namespaces/{namespace}/services/{name} | +*CoreV1Api* | [**proxy_core_v1_get_namespaced_service_with_path**](docs/CoreV1Api.md#proxy_core_v1_get_namespaced_service_with_path) | **GET** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | +*CoreV1Api* | [**proxy_core_v1_get_node**](docs/CoreV1Api.md#proxy_core_v1_get_node) | **GET** /api/v1/proxy/nodes/{name} | +*CoreV1Api* | [**proxy_core_v1_get_node_with_path**](docs/CoreV1Api.md#proxy_core_v1_get_node_with_path) | **GET** /api/v1/proxy/nodes/{name}/{path} | +*CoreV1Api* | [**proxy_core_v1_head_namespaced_pod**](docs/CoreV1Api.md#proxy_core_v1_head_namespaced_pod) | **HEAD** /api/v1/proxy/namespaces/{namespace}/pods/{name} | +*CoreV1Api* | [**proxy_core_v1_head_namespaced_pod_with_path**](docs/CoreV1Api.md#proxy_core_v1_head_namespaced_pod_with_path) | **HEAD** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | +*CoreV1Api* | [**proxy_core_v1_head_namespaced_service**](docs/CoreV1Api.md#proxy_core_v1_head_namespaced_service) | **HEAD** /api/v1/proxy/namespaces/{namespace}/services/{name} | +*CoreV1Api* | [**proxy_core_v1_head_namespaced_service_with_path**](docs/CoreV1Api.md#proxy_core_v1_head_namespaced_service_with_path) | **HEAD** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | +*CoreV1Api* | [**proxy_core_v1_head_node**](docs/CoreV1Api.md#proxy_core_v1_head_node) | **HEAD** /api/v1/proxy/nodes/{name} | +*CoreV1Api* | [**proxy_core_v1_head_node_with_path**](docs/CoreV1Api.md#proxy_core_v1_head_node_with_path) | **HEAD** /api/v1/proxy/nodes/{name}/{path} | +*CoreV1Api* | [**proxy_core_v1_options_namespaced_pod**](docs/CoreV1Api.md#proxy_core_v1_options_namespaced_pod) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/pods/{name} | +*CoreV1Api* | [**proxy_core_v1_options_namespaced_pod_with_path**](docs/CoreV1Api.md#proxy_core_v1_options_namespaced_pod_with_path) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | +*CoreV1Api* | [**proxy_core_v1_options_namespaced_service**](docs/CoreV1Api.md#proxy_core_v1_options_namespaced_service) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/services/{name} | +*CoreV1Api* | [**proxy_core_v1_options_namespaced_service_with_path**](docs/CoreV1Api.md#proxy_core_v1_options_namespaced_service_with_path) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | +*CoreV1Api* | [**proxy_core_v1_options_node**](docs/CoreV1Api.md#proxy_core_v1_options_node) | **OPTIONS** /api/v1/proxy/nodes/{name} | +*CoreV1Api* | [**proxy_core_v1_options_node_with_path**](docs/CoreV1Api.md#proxy_core_v1_options_node_with_path) | **OPTIONS** /api/v1/proxy/nodes/{name}/{path} | +*CoreV1Api* | [**proxy_core_v1_post_namespaced_pod**](docs/CoreV1Api.md#proxy_core_v1_post_namespaced_pod) | **POST** /api/v1/proxy/namespaces/{namespace}/pods/{name} | +*CoreV1Api* | [**proxy_core_v1_post_namespaced_pod_with_path**](docs/CoreV1Api.md#proxy_core_v1_post_namespaced_pod_with_path) | **POST** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | +*CoreV1Api* | [**proxy_core_v1_post_namespaced_service**](docs/CoreV1Api.md#proxy_core_v1_post_namespaced_service) | **POST** /api/v1/proxy/namespaces/{namespace}/services/{name} | +*CoreV1Api* | [**proxy_core_v1_post_namespaced_service_with_path**](docs/CoreV1Api.md#proxy_core_v1_post_namespaced_service_with_path) | **POST** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | +*CoreV1Api* | [**proxy_core_v1_post_node**](docs/CoreV1Api.md#proxy_core_v1_post_node) | **POST** /api/v1/proxy/nodes/{name} | +*CoreV1Api* | [**proxy_core_v1_post_node_with_path**](docs/CoreV1Api.md#proxy_core_v1_post_node_with_path) | **POST** /api/v1/proxy/nodes/{name}/{path} | +*CoreV1Api* | [**proxy_core_v1_put_namespaced_pod**](docs/CoreV1Api.md#proxy_core_v1_put_namespaced_pod) | **PUT** /api/v1/proxy/namespaces/{namespace}/pods/{name} | +*CoreV1Api* | [**proxy_core_v1_put_namespaced_pod_with_path**](docs/CoreV1Api.md#proxy_core_v1_put_namespaced_pod_with_path) | **PUT** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | +*CoreV1Api* | [**proxy_core_v1_put_namespaced_service**](docs/CoreV1Api.md#proxy_core_v1_put_namespaced_service) | **PUT** /api/v1/proxy/namespaces/{namespace}/services/{name} | +*CoreV1Api* | [**proxy_core_v1_put_namespaced_service_with_path**](docs/CoreV1Api.md#proxy_core_v1_put_namespaced_service_with_path) | **PUT** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | +*CoreV1Api* | [**proxy_core_v1_put_node**](docs/CoreV1Api.md#proxy_core_v1_put_node) | **PUT** /api/v1/proxy/nodes/{name} | +*CoreV1Api* | [**proxy_core_v1_put_node_with_path**](docs/CoreV1Api.md#proxy_core_v1_put_node_with_path) | **PUT** /api/v1/proxy/nodes/{name}/{path} | +*CoreV1Api* | [**read_core_v1_component_status**](docs/CoreV1Api.md#read_core_v1_component_status) | **GET** /api/v1/componentstatuses/{name} | +*CoreV1Api* | [**read_core_v1_namespace**](docs/CoreV1Api.md#read_core_v1_namespace) | **GET** /api/v1/namespaces/{name} | +*CoreV1Api* | [**read_core_v1_namespace_status**](docs/CoreV1Api.md#read_core_v1_namespace_status) | **GET** /api/v1/namespaces/{name}/status | +*CoreV1Api* | [**read_core_v1_namespaced_config_map**](docs/CoreV1Api.md#read_core_v1_namespaced_config_map) | **GET** /api/v1/namespaces/{namespace}/configmaps/{name} | +*CoreV1Api* | [**read_core_v1_namespaced_endpoints**](docs/CoreV1Api.md#read_core_v1_namespaced_endpoints) | **GET** /api/v1/namespaces/{namespace}/endpoints/{name} | +*CoreV1Api* | [**read_core_v1_namespaced_event**](docs/CoreV1Api.md#read_core_v1_namespaced_event) | **GET** /api/v1/namespaces/{namespace}/events/{name} | +*CoreV1Api* | [**read_core_v1_namespaced_limit_range**](docs/CoreV1Api.md#read_core_v1_namespaced_limit_range) | **GET** /api/v1/namespaces/{namespace}/limitranges/{name} | +*CoreV1Api* | [**read_core_v1_namespaced_persistent_volume_claim**](docs/CoreV1Api.md#read_core_v1_namespaced_persistent_volume_claim) | **GET** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | +*CoreV1Api* | [**read_core_v1_namespaced_persistent_volume_claim_status**](docs/CoreV1Api.md#read_core_v1_namespaced_persistent_volume_claim_status) | **GET** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | +*CoreV1Api* | [**read_core_v1_namespaced_pod**](docs/CoreV1Api.md#read_core_v1_namespaced_pod) | **GET** /api/v1/namespaces/{namespace}/pods/{name} | +*CoreV1Api* | [**read_core_v1_namespaced_pod_log**](docs/CoreV1Api.md#read_core_v1_namespaced_pod_log) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/log | +*CoreV1Api* | [**read_core_v1_namespaced_pod_status**](docs/CoreV1Api.md#read_core_v1_namespaced_pod_status) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/status | +*CoreV1Api* | [**read_core_v1_namespaced_pod_template**](docs/CoreV1Api.md#read_core_v1_namespaced_pod_template) | **GET** /api/v1/namespaces/{namespace}/podtemplates/{name} | +*CoreV1Api* | [**read_core_v1_namespaced_replication_controller**](docs/CoreV1Api.md#read_core_v1_namespaced_replication_controller) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | +*CoreV1Api* | [**read_core_v1_namespaced_replication_controller_status**](docs/CoreV1Api.md#read_core_v1_namespaced_replication_controller_status) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | +*CoreV1Api* | [**read_core_v1_namespaced_resource_quota**](docs/CoreV1Api.md#read_core_v1_namespaced_resource_quota) | **GET** /api/v1/namespaces/{namespace}/resourcequotas/{name} | +*CoreV1Api* | [**read_core_v1_namespaced_resource_quota_status**](docs/CoreV1Api.md#read_core_v1_namespaced_resource_quota_status) | **GET** /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | +*CoreV1Api* | [**read_core_v1_namespaced_scale_scale**](docs/CoreV1Api.md#read_core_v1_namespaced_scale_scale) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | +*CoreV1Api* | [**read_core_v1_namespaced_secret**](docs/CoreV1Api.md#read_core_v1_namespaced_secret) | **GET** /api/v1/namespaces/{namespace}/secrets/{name} | +*CoreV1Api* | [**read_core_v1_namespaced_service**](docs/CoreV1Api.md#read_core_v1_namespaced_service) | **GET** /api/v1/namespaces/{namespace}/services/{name} | +*CoreV1Api* | [**read_core_v1_namespaced_service_account**](docs/CoreV1Api.md#read_core_v1_namespaced_service_account) | **GET** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | +*CoreV1Api* | [**read_core_v1_namespaced_service_status**](docs/CoreV1Api.md#read_core_v1_namespaced_service_status) | **GET** /api/v1/namespaces/{namespace}/services/{name}/status | +*CoreV1Api* | [**read_core_v1_node**](docs/CoreV1Api.md#read_core_v1_node) | **GET** /api/v1/nodes/{name} | +*CoreV1Api* | [**read_core_v1_node_status**](docs/CoreV1Api.md#read_core_v1_node_status) | **GET** /api/v1/nodes/{name}/status | +*CoreV1Api* | [**read_core_v1_persistent_volume**](docs/CoreV1Api.md#read_core_v1_persistent_volume) | **GET** /api/v1/persistentvolumes/{name} | +*CoreV1Api* | [**read_core_v1_persistent_volume_status**](docs/CoreV1Api.md#read_core_v1_persistent_volume_status) | **GET** /api/v1/persistentvolumes/{name}/status | +*CoreV1Api* | [**replace_core_v1_namespace**](docs/CoreV1Api.md#replace_core_v1_namespace) | **PUT** /api/v1/namespaces/{name} | +*CoreV1Api* | [**replace_core_v1_namespace_finalize**](docs/CoreV1Api.md#replace_core_v1_namespace_finalize) | **PUT** /api/v1/namespaces/{name}/finalize | +*CoreV1Api* | [**replace_core_v1_namespace_status**](docs/CoreV1Api.md#replace_core_v1_namespace_status) | **PUT** /api/v1/namespaces/{name}/status | +*CoreV1Api* | [**replace_core_v1_namespaced_config_map**](docs/CoreV1Api.md#replace_core_v1_namespaced_config_map) | **PUT** /api/v1/namespaces/{namespace}/configmaps/{name} | +*CoreV1Api* | [**replace_core_v1_namespaced_endpoints**](docs/CoreV1Api.md#replace_core_v1_namespaced_endpoints) | **PUT** /api/v1/namespaces/{namespace}/endpoints/{name} | +*CoreV1Api* | [**replace_core_v1_namespaced_event**](docs/CoreV1Api.md#replace_core_v1_namespaced_event) | **PUT** /api/v1/namespaces/{namespace}/events/{name} | +*CoreV1Api* | [**replace_core_v1_namespaced_limit_range**](docs/CoreV1Api.md#replace_core_v1_namespaced_limit_range) | **PUT** /api/v1/namespaces/{namespace}/limitranges/{name} | +*CoreV1Api* | [**replace_core_v1_namespaced_persistent_volume_claim**](docs/CoreV1Api.md#replace_core_v1_namespaced_persistent_volume_claim) | **PUT** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | +*CoreV1Api* | [**replace_core_v1_namespaced_persistent_volume_claim_status**](docs/CoreV1Api.md#replace_core_v1_namespaced_persistent_volume_claim_status) | **PUT** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | +*CoreV1Api* | [**replace_core_v1_namespaced_pod**](docs/CoreV1Api.md#replace_core_v1_namespaced_pod) | **PUT** /api/v1/namespaces/{namespace}/pods/{name} | +*CoreV1Api* | [**replace_core_v1_namespaced_pod_status**](docs/CoreV1Api.md#replace_core_v1_namespaced_pod_status) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/status | +*CoreV1Api* | [**replace_core_v1_namespaced_pod_template**](docs/CoreV1Api.md#replace_core_v1_namespaced_pod_template) | **PUT** /api/v1/namespaces/{namespace}/podtemplates/{name} | +*CoreV1Api* | [**replace_core_v1_namespaced_replication_controller**](docs/CoreV1Api.md#replace_core_v1_namespaced_replication_controller) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | +*CoreV1Api* | [**replace_core_v1_namespaced_replication_controller_status**](docs/CoreV1Api.md#replace_core_v1_namespaced_replication_controller_status) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | +*CoreV1Api* | [**replace_core_v1_namespaced_resource_quota**](docs/CoreV1Api.md#replace_core_v1_namespaced_resource_quota) | **PUT** /api/v1/namespaces/{namespace}/resourcequotas/{name} | +*CoreV1Api* | [**replace_core_v1_namespaced_resource_quota_status**](docs/CoreV1Api.md#replace_core_v1_namespaced_resource_quota_status) | **PUT** /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | +*CoreV1Api* | [**replace_core_v1_namespaced_scale_scale**](docs/CoreV1Api.md#replace_core_v1_namespaced_scale_scale) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | +*CoreV1Api* | [**replace_core_v1_namespaced_secret**](docs/CoreV1Api.md#replace_core_v1_namespaced_secret) | **PUT** /api/v1/namespaces/{namespace}/secrets/{name} | +*CoreV1Api* | [**replace_core_v1_namespaced_service**](docs/CoreV1Api.md#replace_core_v1_namespaced_service) | **PUT** /api/v1/namespaces/{namespace}/services/{name} | +*CoreV1Api* | [**replace_core_v1_namespaced_service_account**](docs/CoreV1Api.md#replace_core_v1_namespaced_service_account) | **PUT** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | +*CoreV1Api* | [**replace_core_v1_namespaced_service_status**](docs/CoreV1Api.md#replace_core_v1_namespaced_service_status) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/status | +*CoreV1Api* | [**replace_core_v1_node**](docs/CoreV1Api.md#replace_core_v1_node) | **PUT** /api/v1/nodes/{name} | +*CoreV1Api* | [**replace_core_v1_node_status**](docs/CoreV1Api.md#replace_core_v1_node_status) | **PUT** /api/v1/nodes/{name}/status | +*CoreV1Api* | [**replace_core_v1_persistent_volume**](docs/CoreV1Api.md#replace_core_v1_persistent_volume) | **PUT** /api/v1/persistentvolumes/{name} | +*CoreV1Api* | [**replace_core_v1_persistent_volume_status**](docs/CoreV1Api.md#replace_core_v1_persistent_volume_status) | **PUT** /api/v1/persistentvolumes/{name}/status | +*CoreV1Api* | [**watch_core_v1_config_map_list_for_all_namespaces**](docs/CoreV1Api.md#watch_core_v1_config_map_list_for_all_namespaces) | **GET** /api/v1/watch/configmaps | +*CoreV1Api* | [**watch_core_v1_endpoints_list_for_all_namespaces**](docs/CoreV1Api.md#watch_core_v1_endpoints_list_for_all_namespaces) | **GET** /api/v1/watch/endpoints | +*CoreV1Api* | [**watch_core_v1_event_list_for_all_namespaces**](docs/CoreV1Api.md#watch_core_v1_event_list_for_all_namespaces) | **GET** /api/v1/watch/events | +*CoreV1Api* | [**watch_core_v1_limit_range_list_for_all_namespaces**](docs/CoreV1Api.md#watch_core_v1_limit_range_list_for_all_namespaces) | **GET** /api/v1/watch/limitranges | +*CoreV1Api* | [**watch_core_v1_namespace**](docs/CoreV1Api.md#watch_core_v1_namespace) | **GET** /api/v1/watch/namespaces/{name} | +*CoreV1Api* | [**watch_core_v1_namespace_list**](docs/CoreV1Api.md#watch_core_v1_namespace_list) | **GET** /api/v1/watch/namespaces | +*CoreV1Api* | [**watch_core_v1_namespaced_config_map**](docs/CoreV1Api.md#watch_core_v1_namespaced_config_map) | **GET** /api/v1/watch/namespaces/{namespace}/configmaps/{name} | +*CoreV1Api* | [**watch_core_v1_namespaced_config_map_list**](docs/CoreV1Api.md#watch_core_v1_namespaced_config_map_list) | **GET** /api/v1/watch/namespaces/{namespace}/configmaps | +*CoreV1Api* | [**watch_core_v1_namespaced_endpoints**](docs/CoreV1Api.md#watch_core_v1_namespaced_endpoints) | **GET** /api/v1/watch/namespaces/{namespace}/endpoints/{name} | +*CoreV1Api* | [**watch_core_v1_namespaced_endpoints_list**](docs/CoreV1Api.md#watch_core_v1_namespaced_endpoints_list) | **GET** /api/v1/watch/namespaces/{namespace}/endpoints | +*CoreV1Api* | [**watch_core_v1_namespaced_event**](docs/CoreV1Api.md#watch_core_v1_namespaced_event) | **GET** /api/v1/watch/namespaces/{namespace}/events/{name} | +*CoreV1Api* | [**watch_core_v1_namespaced_event_list**](docs/CoreV1Api.md#watch_core_v1_namespaced_event_list) | **GET** /api/v1/watch/namespaces/{namespace}/events | +*CoreV1Api* | [**watch_core_v1_namespaced_limit_range**](docs/CoreV1Api.md#watch_core_v1_namespaced_limit_range) | **GET** /api/v1/watch/namespaces/{namespace}/limitranges/{name} | +*CoreV1Api* | [**watch_core_v1_namespaced_limit_range_list**](docs/CoreV1Api.md#watch_core_v1_namespaced_limit_range_list) | **GET** /api/v1/watch/namespaces/{namespace}/limitranges | +*CoreV1Api* | [**watch_core_v1_namespaced_persistent_volume_claim**](docs/CoreV1Api.md#watch_core_v1_namespaced_persistent_volume_claim) | **GET** /api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name} | +*CoreV1Api* | [**watch_core_v1_namespaced_persistent_volume_claim_list**](docs/CoreV1Api.md#watch_core_v1_namespaced_persistent_volume_claim_list) | **GET** /api/v1/watch/namespaces/{namespace}/persistentvolumeclaims | +*CoreV1Api* | [**watch_core_v1_namespaced_pod**](docs/CoreV1Api.md#watch_core_v1_namespaced_pod) | **GET** /api/v1/watch/namespaces/{namespace}/pods/{name} | +*CoreV1Api* | [**watch_core_v1_namespaced_pod_list**](docs/CoreV1Api.md#watch_core_v1_namespaced_pod_list) | **GET** /api/v1/watch/namespaces/{namespace}/pods | +*CoreV1Api* | [**watch_core_v1_namespaced_pod_template**](docs/CoreV1Api.md#watch_core_v1_namespaced_pod_template) | **GET** /api/v1/watch/namespaces/{namespace}/podtemplates/{name} | +*CoreV1Api* | [**watch_core_v1_namespaced_pod_template_list**](docs/CoreV1Api.md#watch_core_v1_namespaced_pod_template_list) | **GET** /api/v1/watch/namespaces/{namespace}/podtemplates | +*CoreV1Api* | [**watch_core_v1_namespaced_replication_controller**](docs/CoreV1Api.md#watch_core_v1_namespaced_replication_controller) | **GET** /api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name} | +*CoreV1Api* | [**watch_core_v1_namespaced_replication_controller_list**](docs/CoreV1Api.md#watch_core_v1_namespaced_replication_controller_list) | **GET** /api/v1/watch/namespaces/{namespace}/replicationcontrollers | +*CoreV1Api* | [**watch_core_v1_namespaced_resource_quota**](docs/CoreV1Api.md#watch_core_v1_namespaced_resource_quota) | **GET** /api/v1/watch/namespaces/{namespace}/resourcequotas/{name} | +*CoreV1Api* | [**watch_core_v1_namespaced_resource_quota_list**](docs/CoreV1Api.md#watch_core_v1_namespaced_resource_quota_list) | **GET** /api/v1/watch/namespaces/{namespace}/resourcequotas | +*CoreV1Api* | [**watch_core_v1_namespaced_secret**](docs/CoreV1Api.md#watch_core_v1_namespaced_secret) | **GET** /api/v1/watch/namespaces/{namespace}/secrets/{name} | +*CoreV1Api* | [**watch_core_v1_namespaced_secret_list**](docs/CoreV1Api.md#watch_core_v1_namespaced_secret_list) | **GET** /api/v1/watch/namespaces/{namespace}/secrets | +*CoreV1Api* | [**watch_core_v1_namespaced_service**](docs/CoreV1Api.md#watch_core_v1_namespaced_service) | **GET** /api/v1/watch/namespaces/{namespace}/services/{name} | +*CoreV1Api* | [**watch_core_v1_namespaced_service_account**](docs/CoreV1Api.md#watch_core_v1_namespaced_service_account) | **GET** /api/v1/watch/namespaces/{namespace}/serviceaccounts/{name} | +*CoreV1Api* | [**watch_core_v1_namespaced_service_account_list**](docs/CoreV1Api.md#watch_core_v1_namespaced_service_account_list) | **GET** /api/v1/watch/namespaces/{namespace}/serviceaccounts | +*CoreV1Api* | [**watch_core_v1_namespaced_service_list**](docs/CoreV1Api.md#watch_core_v1_namespaced_service_list) | **GET** /api/v1/watch/namespaces/{namespace}/services | +*CoreV1Api* | [**watch_core_v1_node**](docs/CoreV1Api.md#watch_core_v1_node) | **GET** /api/v1/watch/nodes/{name} | +*CoreV1Api* | [**watch_core_v1_node_list**](docs/CoreV1Api.md#watch_core_v1_node_list) | **GET** /api/v1/watch/nodes | +*CoreV1Api* | [**watch_core_v1_persistent_volume**](docs/CoreV1Api.md#watch_core_v1_persistent_volume) | **GET** /api/v1/watch/persistentvolumes/{name} | +*CoreV1Api* | [**watch_core_v1_persistent_volume_claim_list_for_all_namespaces**](docs/CoreV1Api.md#watch_core_v1_persistent_volume_claim_list_for_all_namespaces) | **GET** /api/v1/watch/persistentvolumeclaims | +*CoreV1Api* | [**watch_core_v1_persistent_volume_list**](docs/CoreV1Api.md#watch_core_v1_persistent_volume_list) | **GET** /api/v1/watch/persistentvolumes | +*CoreV1Api* | [**watch_core_v1_pod_list_for_all_namespaces**](docs/CoreV1Api.md#watch_core_v1_pod_list_for_all_namespaces) | **GET** /api/v1/watch/pods | +*CoreV1Api* | [**watch_core_v1_pod_template_list_for_all_namespaces**](docs/CoreV1Api.md#watch_core_v1_pod_template_list_for_all_namespaces) | **GET** /api/v1/watch/podtemplates | +*CoreV1Api* | [**watch_core_v1_replication_controller_list_for_all_namespaces**](docs/CoreV1Api.md#watch_core_v1_replication_controller_list_for_all_namespaces) | **GET** /api/v1/watch/replicationcontrollers | +*CoreV1Api* | [**watch_core_v1_resource_quota_list_for_all_namespaces**](docs/CoreV1Api.md#watch_core_v1_resource_quota_list_for_all_namespaces) | **GET** /api/v1/watch/resourcequotas | +*CoreV1Api* | [**watch_core_v1_secret_list_for_all_namespaces**](docs/CoreV1Api.md#watch_core_v1_secret_list_for_all_namespaces) | **GET** /api/v1/watch/secrets | +*CoreV1Api* | [**watch_core_v1_service_account_list_for_all_namespaces**](docs/CoreV1Api.md#watch_core_v1_service_account_list_for_all_namespaces) | **GET** /api/v1/watch/serviceaccounts | +*CoreV1Api* | [**watch_core_v1_service_list_for_all_namespaces**](docs/CoreV1Api.md#watch_core_v1_service_list_for_all_namespaces) | **GET** /api/v1/watch/services | +*ExtensionsApi* | [**get_extensions_api_group**](docs/ExtensionsApi.md#get_extensions_api_group) | **GET** /apis/extensions/ | +*ExtensionsV1beta1Api* | [**create_extensions_v1beta1_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#create_extensions_v1beta1_namespaced_daemon_set) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | +*ExtensionsV1beta1Api* | [**create_extensions_v1beta1_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#create_extensions_v1beta1_namespaced_deployment) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | +*ExtensionsV1beta1Api* | [**create_extensions_v1beta1_namespaced_deployment_rollback_rollback**](docs/ExtensionsV1beta1Api.md#create_extensions_v1beta1_namespaced_deployment_rollback_rollback) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback | +*ExtensionsV1beta1Api* | [**create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers | +*ExtensionsV1beta1Api* | [**create_extensions_v1beta1_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#create_extensions_v1beta1_namespaced_ingress) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | +*ExtensionsV1beta1Api* | [**create_extensions_v1beta1_namespaced_job**](docs/ExtensionsV1beta1Api.md#create_extensions_v1beta1_namespaced_job) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/jobs | +*ExtensionsV1beta1Api* | [**create_extensions_v1beta1_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#create_extensions_v1beta1_namespaced_network_policy) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | +*ExtensionsV1beta1Api* | [**create_extensions_v1beta1_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#create_extensions_v1beta1_namespaced_replica_set) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | +*ExtensionsV1beta1Api* | [**create_extensions_v1beta1_third_party_resource**](docs/ExtensionsV1beta1Api.md#create_extensions_v1beta1_third_party_resource) | **POST** /apis/extensions/v1beta1/thirdpartyresources | +*ExtensionsV1beta1Api* | [**delete_extensions_v1beta1_collection_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#delete_extensions_v1beta1_collection_namespaced_daemon_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | +*ExtensionsV1beta1Api* | [**delete_extensions_v1beta1_collection_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#delete_extensions_v1beta1_collection_namespaced_deployment) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | +*ExtensionsV1beta1Api* | [**delete_extensions_v1beta1_collection_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#delete_extensions_v1beta1_collection_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers | +*ExtensionsV1beta1Api* | [**delete_extensions_v1beta1_collection_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#delete_extensions_v1beta1_collection_namespaced_ingress) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | +*ExtensionsV1beta1Api* | [**delete_extensions_v1beta1_collection_namespaced_job**](docs/ExtensionsV1beta1Api.md#delete_extensions_v1beta1_collection_namespaced_job) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/jobs | +*ExtensionsV1beta1Api* | [**delete_extensions_v1beta1_collection_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#delete_extensions_v1beta1_collection_namespaced_network_policy) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | +*ExtensionsV1beta1Api* | [**delete_extensions_v1beta1_collection_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#delete_extensions_v1beta1_collection_namespaced_replica_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | +*ExtensionsV1beta1Api* | [**delete_extensions_v1beta1_collection_third_party_resource**](docs/ExtensionsV1beta1Api.md#delete_extensions_v1beta1_collection_third_party_resource) | **DELETE** /apis/extensions/v1beta1/thirdpartyresources | +*ExtensionsV1beta1Api* | [**delete_extensions_v1beta1_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#delete_extensions_v1beta1_namespaced_daemon_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | +*ExtensionsV1beta1Api* | [**delete_extensions_v1beta1_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#delete_extensions_v1beta1_namespaced_deployment) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | +*ExtensionsV1beta1Api* | [**delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +*ExtensionsV1beta1Api* | [**delete_extensions_v1beta1_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#delete_extensions_v1beta1_namespaced_ingress) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | +*ExtensionsV1beta1Api* | [**delete_extensions_v1beta1_namespaced_job**](docs/ExtensionsV1beta1Api.md#delete_extensions_v1beta1_namespaced_job) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | +*ExtensionsV1beta1Api* | [**delete_extensions_v1beta1_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#delete_extensions_v1beta1_namespaced_network_policy) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | +*ExtensionsV1beta1Api* | [**delete_extensions_v1beta1_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#delete_extensions_v1beta1_namespaced_replica_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | +*ExtensionsV1beta1Api* | [**delete_extensions_v1beta1_third_party_resource**](docs/ExtensionsV1beta1Api.md#delete_extensions_v1beta1_third_party_resource) | **DELETE** /apis/extensions/v1beta1/thirdpartyresources/{name} | +*ExtensionsV1beta1Api* | [**get_extensions_v1beta1_api_resources**](docs/ExtensionsV1beta1Api.md#get_extensions_v1beta1_api_resources) | **GET** /apis/extensions/v1beta1/ | +*ExtensionsV1beta1Api* | [**list_extensions_v1beta1_daemon_set_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_extensions_v1beta1_daemon_set_for_all_namespaces) | **GET** /apis/extensions/v1beta1/daemonsets | +*ExtensionsV1beta1Api* | [**list_extensions_v1beta1_deployment_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_extensions_v1beta1_deployment_for_all_namespaces) | **GET** /apis/extensions/v1beta1/deployments | +*ExtensionsV1beta1Api* | [**list_extensions_v1beta1_horizontal_pod_autoscaler_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_extensions_v1beta1_horizontal_pod_autoscaler_for_all_namespaces) | **GET** /apis/extensions/v1beta1/horizontalpodautoscalers | +*ExtensionsV1beta1Api* | [**list_extensions_v1beta1_ingress_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_extensions_v1beta1_ingress_for_all_namespaces) | **GET** /apis/extensions/v1beta1/ingresses | +*ExtensionsV1beta1Api* | [**list_extensions_v1beta1_job_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_extensions_v1beta1_job_for_all_namespaces) | **GET** /apis/extensions/v1beta1/jobs | +*ExtensionsV1beta1Api* | [**list_extensions_v1beta1_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#list_extensions_v1beta1_namespaced_daemon_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | +*ExtensionsV1beta1Api* | [**list_extensions_v1beta1_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#list_extensions_v1beta1_namespaced_deployment) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | +*ExtensionsV1beta1Api* | [**list_extensions_v1beta1_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#list_extensions_v1beta1_namespaced_horizontal_pod_autoscaler) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers | +*ExtensionsV1beta1Api* | [**list_extensions_v1beta1_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#list_extensions_v1beta1_namespaced_ingress) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | +*ExtensionsV1beta1Api* | [**list_extensions_v1beta1_namespaced_job**](docs/ExtensionsV1beta1Api.md#list_extensions_v1beta1_namespaced_job) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/jobs | +*ExtensionsV1beta1Api* | [**list_extensions_v1beta1_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#list_extensions_v1beta1_namespaced_network_policy) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | +*ExtensionsV1beta1Api* | [**list_extensions_v1beta1_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#list_extensions_v1beta1_namespaced_replica_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | +*ExtensionsV1beta1Api* | [**list_extensions_v1beta1_network_policy_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_extensions_v1beta1_network_policy_for_all_namespaces) | **GET** /apis/extensions/v1beta1/networkpolicies | +*ExtensionsV1beta1Api* | [**list_extensions_v1beta1_replica_set_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_extensions_v1beta1_replica_set_for_all_namespaces) | **GET** /apis/extensions/v1beta1/replicasets | +*ExtensionsV1beta1Api* | [**list_extensions_v1beta1_third_party_resource**](docs/ExtensionsV1beta1Api.md#list_extensions_v1beta1_third_party_resource) | **GET** /apis/extensions/v1beta1/thirdpartyresources | +*ExtensionsV1beta1Api* | [**patch_extensions_v1beta1_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_daemon_set) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | +*ExtensionsV1beta1Api* | [**patch_extensions_v1beta1_namespaced_daemon_set_status**](docs/ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_daemon_set_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status | +*ExtensionsV1beta1Api* | [**patch_extensions_v1beta1_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_deployment) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | +*ExtensionsV1beta1Api* | [**patch_extensions_v1beta1_namespaced_deployment_status**](docs/ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_deployment_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | +*ExtensionsV1beta1Api* | [**patch_extensions_v1beta1_namespaced_deployments_scale**](docs/ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_deployments_scale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | +*ExtensionsV1beta1Api* | [**patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +*ExtensionsV1beta1Api* | [**patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status**](docs/ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | +*ExtensionsV1beta1Api* | [**patch_extensions_v1beta1_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_ingress) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | +*ExtensionsV1beta1Api* | [**patch_extensions_v1beta1_namespaced_ingress_status**](docs/ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_ingress_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | +*ExtensionsV1beta1Api* | [**patch_extensions_v1beta1_namespaced_job**](docs/ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_job) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | +*ExtensionsV1beta1Api* | [**patch_extensions_v1beta1_namespaced_job_status**](docs/ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_job_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status | +*ExtensionsV1beta1Api* | [**patch_extensions_v1beta1_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_network_policy) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | +*ExtensionsV1beta1Api* | [**patch_extensions_v1beta1_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_replica_set) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | +*ExtensionsV1beta1Api* | [**patch_extensions_v1beta1_namespaced_replica_set_status**](docs/ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_replica_set_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | +*ExtensionsV1beta1Api* | [**patch_extensions_v1beta1_namespaced_replicasets_scale**](docs/ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_replicasets_scale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale | +*ExtensionsV1beta1Api* | [**patch_extensions_v1beta1_namespaced_replicationcontrollers_scale**](docs/ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_replicationcontrollers_scale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | +*ExtensionsV1beta1Api* | [**patch_extensions_v1beta1_third_party_resource**](docs/ExtensionsV1beta1Api.md#patch_extensions_v1beta1_third_party_resource) | **PATCH** /apis/extensions/v1beta1/thirdpartyresources/{name} | +*ExtensionsV1beta1Api* | [**read_extensions_v1beta1_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_daemon_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | +*ExtensionsV1beta1Api* | [**read_extensions_v1beta1_namespaced_daemon_set_status**](docs/ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_daemon_set_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status | +*ExtensionsV1beta1Api* | [**read_extensions_v1beta1_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_deployment) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | +*ExtensionsV1beta1Api* | [**read_extensions_v1beta1_namespaced_deployment_status**](docs/ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_deployment_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | +*ExtensionsV1beta1Api* | [**read_extensions_v1beta1_namespaced_deployments_scale**](docs/ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_deployments_scale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | +*ExtensionsV1beta1Api* | [**read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +*ExtensionsV1beta1Api* | [**read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status**](docs/ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | +*ExtensionsV1beta1Api* | [**read_extensions_v1beta1_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_ingress) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | +*ExtensionsV1beta1Api* | [**read_extensions_v1beta1_namespaced_ingress_status**](docs/ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_ingress_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | +*ExtensionsV1beta1Api* | [**read_extensions_v1beta1_namespaced_job**](docs/ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_job) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | +*ExtensionsV1beta1Api* | [**read_extensions_v1beta1_namespaced_job_status**](docs/ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_job_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status | +*ExtensionsV1beta1Api* | [**read_extensions_v1beta1_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_network_policy) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | +*ExtensionsV1beta1Api* | [**read_extensions_v1beta1_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_replica_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | +*ExtensionsV1beta1Api* | [**read_extensions_v1beta1_namespaced_replica_set_status**](docs/ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_replica_set_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | +*ExtensionsV1beta1Api* | [**read_extensions_v1beta1_namespaced_replicasets_scale**](docs/ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_replicasets_scale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale | +*ExtensionsV1beta1Api* | [**read_extensions_v1beta1_namespaced_replicationcontrollers_scale**](docs/ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_replicationcontrollers_scale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | +*ExtensionsV1beta1Api* | [**read_extensions_v1beta1_third_party_resource**](docs/ExtensionsV1beta1Api.md#read_extensions_v1beta1_third_party_resource) | **GET** /apis/extensions/v1beta1/thirdpartyresources/{name} | +*ExtensionsV1beta1Api* | [**replace_extensions_v1beta1_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_daemon_set) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | +*ExtensionsV1beta1Api* | [**replace_extensions_v1beta1_namespaced_daemon_set_status**](docs/ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_daemon_set_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status | +*ExtensionsV1beta1Api* | [**replace_extensions_v1beta1_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_deployment) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | +*ExtensionsV1beta1Api* | [**replace_extensions_v1beta1_namespaced_deployment_status**](docs/ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_deployment_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | +*ExtensionsV1beta1Api* | [**replace_extensions_v1beta1_namespaced_deployments_scale**](docs/ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_deployments_scale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | +*ExtensionsV1beta1Api* | [**replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +*ExtensionsV1beta1Api* | [**replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status**](docs/ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | +*ExtensionsV1beta1Api* | [**replace_extensions_v1beta1_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_ingress) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | +*ExtensionsV1beta1Api* | [**replace_extensions_v1beta1_namespaced_ingress_status**](docs/ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_ingress_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | +*ExtensionsV1beta1Api* | [**replace_extensions_v1beta1_namespaced_job**](docs/ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_job) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | +*ExtensionsV1beta1Api* | [**replace_extensions_v1beta1_namespaced_job_status**](docs/ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_job_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status | +*ExtensionsV1beta1Api* | [**replace_extensions_v1beta1_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_network_policy) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | +*ExtensionsV1beta1Api* | [**replace_extensions_v1beta1_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_replica_set) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | +*ExtensionsV1beta1Api* | [**replace_extensions_v1beta1_namespaced_replica_set_status**](docs/ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_replica_set_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | +*ExtensionsV1beta1Api* | [**replace_extensions_v1beta1_namespaced_replicasets_scale**](docs/ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_replicasets_scale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale | +*ExtensionsV1beta1Api* | [**replace_extensions_v1beta1_namespaced_replicationcontrollers_scale**](docs/ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_replicationcontrollers_scale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | +*ExtensionsV1beta1Api* | [**replace_extensions_v1beta1_third_party_resource**](docs/ExtensionsV1beta1Api.md#replace_extensions_v1beta1_third_party_resource) | **PUT** /apis/extensions/v1beta1/thirdpartyresources/{name} | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_daemon_set_list_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_daemon_set_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/daemonsets | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_deployment_list_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_deployment_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/deployments | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_horizontal_pod_autoscaler_list_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_horizontal_pod_autoscaler_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/horizontalpodautoscalers | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_ingress_list_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_ingress_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/ingresses | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_job_list_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_job_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/jobs | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_daemon_set) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets/{name} | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_namespaced_daemon_set_list**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_daemon_set_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_deployment) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments/{name} | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_namespaced_deployment_list**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_deployment_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name} | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_list**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_ingress) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses/{name} | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_namespaced_ingress_list**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_ingress_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_namespaced_job**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_job) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs/{name} | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_namespaced_job_list**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_job_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_network_policy) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies/{name} | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_namespaced_network_policy_list**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_network_policy_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_replica_set) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets/{name} | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_namespaced_replica_set_list**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_replica_set_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_network_policy_list_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_network_policy_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/networkpolicies | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_replica_set_list_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_replica_set_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/replicasets | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_third_party_resource**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_third_party_resource) | **GET** /apis/extensions/v1beta1/watch/thirdpartyresources/{name} | +*ExtensionsV1beta1Api* | [**watch_extensions_v1beta1_third_party_resource_list**](docs/ExtensionsV1beta1Api.md#watch_extensions_v1beta1_third_party_resource_list) | **GET** /apis/extensions/v1beta1/watch/thirdpartyresources | +*LogsApi* | [**log_file_handler**](docs/LogsApi.md#log_file_handler) | **GET** /logs/{logpath} | +*LogsApi* | [**log_file_list_handler**](docs/LogsApi.md#log_file_list_handler) | **GET** /logs/ | +*PolicyApi* | [**get_policy_api_group**](docs/PolicyApi.md#get_policy_api_group) | **GET** /apis/policy/ | +*PolicyV1alpha1Api* | [**create_policy_v1alpha1_namespaced_pod_disruption_budget**](docs/PolicyV1alpha1Api.md#create_policy_v1alpha1_namespaced_pod_disruption_budget) | **POST** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets | +*PolicyV1alpha1Api* | [**delete_policy_v1alpha1_collection_namespaced_pod_disruption_budget**](docs/PolicyV1alpha1Api.md#delete_policy_v1alpha1_collection_namespaced_pod_disruption_budget) | **DELETE** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets | +*PolicyV1alpha1Api* | [**delete_policy_v1alpha1_namespaced_pod_disruption_budget**](docs/PolicyV1alpha1Api.md#delete_policy_v1alpha1_namespaced_pod_disruption_budget) | **DELETE** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name} | +*PolicyV1alpha1Api* | [**get_policy_v1alpha1_api_resources**](docs/PolicyV1alpha1Api.md#get_policy_v1alpha1_api_resources) | **GET** /apis/policy/v1alpha1/ | +*PolicyV1alpha1Api* | [**list_policy_v1alpha1_namespaced_pod_disruption_budget**](docs/PolicyV1alpha1Api.md#list_policy_v1alpha1_namespaced_pod_disruption_budget) | **GET** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets | +*PolicyV1alpha1Api* | [**list_policy_v1alpha1_pod_disruption_budget_for_all_namespaces**](docs/PolicyV1alpha1Api.md#list_policy_v1alpha1_pod_disruption_budget_for_all_namespaces) | **GET** /apis/policy/v1alpha1/poddisruptionbudgets | +*PolicyV1alpha1Api* | [**patch_policy_v1alpha1_namespaced_pod_disruption_budget**](docs/PolicyV1alpha1Api.md#patch_policy_v1alpha1_namespaced_pod_disruption_budget) | **PATCH** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name} | +*PolicyV1alpha1Api* | [**patch_policy_v1alpha1_namespaced_pod_disruption_budget_status**](docs/PolicyV1alpha1Api.md#patch_policy_v1alpha1_namespaced_pod_disruption_budget_status) | **PATCH** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | +*PolicyV1alpha1Api* | [**read_policy_v1alpha1_namespaced_pod_disruption_budget**](docs/PolicyV1alpha1Api.md#read_policy_v1alpha1_namespaced_pod_disruption_budget) | **GET** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name} | +*PolicyV1alpha1Api* | [**read_policy_v1alpha1_namespaced_pod_disruption_budget_status**](docs/PolicyV1alpha1Api.md#read_policy_v1alpha1_namespaced_pod_disruption_budget_status) | **GET** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | +*PolicyV1alpha1Api* | [**replace_policy_v1alpha1_namespaced_pod_disruption_budget**](docs/PolicyV1alpha1Api.md#replace_policy_v1alpha1_namespaced_pod_disruption_budget) | **PUT** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name} | +*PolicyV1alpha1Api* | [**replace_policy_v1alpha1_namespaced_pod_disruption_budget_status**](docs/PolicyV1alpha1Api.md#replace_policy_v1alpha1_namespaced_pod_disruption_budget_status) | **PUT** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | +*PolicyV1alpha1Api* | [**watch_policy_v1alpha1_namespaced_pod_disruption_budget**](docs/PolicyV1alpha1Api.md#watch_policy_v1alpha1_namespaced_pod_disruption_budget) | **GET** /apis/policy/v1alpha1/watch/namespaces/{namespace}/poddisruptionbudgets/{name} | +*PolicyV1alpha1Api* | [**watch_policy_v1alpha1_namespaced_pod_disruption_budget_list**](docs/PolicyV1alpha1Api.md#watch_policy_v1alpha1_namespaced_pod_disruption_budget_list) | **GET** /apis/policy/v1alpha1/watch/namespaces/{namespace}/poddisruptionbudgets | +*PolicyV1alpha1Api* | [**watch_policy_v1alpha1_pod_disruption_budget_list_for_all_namespaces**](docs/PolicyV1alpha1Api.md#watch_policy_v1alpha1_pod_disruption_budget_list_for_all_namespaces) | **GET** /apis/policy/v1alpha1/watch/poddisruptionbudgets | +*RbacAuthorizationApi* | [**get_rbac_authorization_api_group**](docs/RbacAuthorizationApi.md#get_rbac_authorization_api_group) | **GET** /apis/rbac.authorization.k8s.io/ | +*RbacAuthorizationV1alpha1Api* | [**create_rbac_authorization_v1alpha1_cluster_role**](docs/RbacAuthorizationV1alpha1Api.md#create_rbac_authorization_v1alpha1_cluster_role) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | +*RbacAuthorizationV1alpha1Api* | [**create_rbac_authorization_v1alpha1_cluster_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#create_rbac_authorization_v1alpha1_cluster_role_binding) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | +*RbacAuthorizationV1alpha1Api* | [**create_rbac_authorization_v1alpha1_namespaced_role**](docs/RbacAuthorizationV1alpha1Api.md#create_rbac_authorization_v1alpha1_namespaced_role) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles | +*RbacAuthorizationV1alpha1Api* | [**create_rbac_authorization_v1alpha1_namespaced_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#create_rbac_authorization_v1alpha1_namespaced_role_binding) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings | +*RbacAuthorizationV1alpha1Api* | [**delete_rbac_authorization_v1alpha1_cluster_role**](docs/RbacAuthorizationV1alpha1Api.md#delete_rbac_authorization_v1alpha1_cluster_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | +*RbacAuthorizationV1alpha1Api* | [**delete_rbac_authorization_v1alpha1_cluster_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#delete_rbac_authorization_v1alpha1_cluster_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | +*RbacAuthorizationV1alpha1Api* | [**delete_rbac_authorization_v1alpha1_collection_cluster_role**](docs/RbacAuthorizationV1alpha1Api.md#delete_rbac_authorization_v1alpha1_collection_cluster_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | +*RbacAuthorizationV1alpha1Api* | [**delete_rbac_authorization_v1alpha1_collection_cluster_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#delete_rbac_authorization_v1alpha1_collection_cluster_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | +*RbacAuthorizationV1alpha1Api* | [**delete_rbac_authorization_v1alpha1_collection_namespaced_role**](docs/RbacAuthorizationV1alpha1Api.md#delete_rbac_authorization_v1alpha1_collection_namespaced_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles | +*RbacAuthorizationV1alpha1Api* | [**delete_rbac_authorization_v1alpha1_collection_namespaced_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#delete_rbac_authorization_v1alpha1_collection_namespaced_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings | +*RbacAuthorizationV1alpha1Api* | [**delete_rbac_authorization_v1alpha1_namespaced_role**](docs/RbacAuthorizationV1alpha1Api.md#delete_rbac_authorization_v1alpha1_namespaced_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | +*RbacAuthorizationV1alpha1Api* | [**delete_rbac_authorization_v1alpha1_namespaced_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#delete_rbac_authorization_v1alpha1_namespaced_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | +*RbacAuthorizationV1alpha1Api* | [**get_rbac_authorization_v1alpha1_api_resources**](docs/RbacAuthorizationV1alpha1Api.md#get_rbac_authorization_v1alpha1_api_resources) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/ | +*RbacAuthorizationV1alpha1Api* | [**list_rbac_authorization_v1alpha1_cluster_role**](docs/RbacAuthorizationV1alpha1Api.md#list_rbac_authorization_v1alpha1_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | +*RbacAuthorizationV1alpha1Api* | [**list_rbac_authorization_v1alpha1_cluster_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#list_rbac_authorization_v1alpha1_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | +*RbacAuthorizationV1alpha1Api* | [**list_rbac_authorization_v1alpha1_namespaced_role**](docs/RbacAuthorizationV1alpha1Api.md#list_rbac_authorization_v1alpha1_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles | +*RbacAuthorizationV1alpha1Api* | [**list_rbac_authorization_v1alpha1_namespaced_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#list_rbac_authorization_v1alpha1_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings | +*RbacAuthorizationV1alpha1Api* | [**list_rbac_authorization_v1alpha1_role_binding_for_all_namespaces**](docs/RbacAuthorizationV1alpha1Api.md#list_rbac_authorization_v1alpha1_role_binding_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/rolebindings | +*RbacAuthorizationV1alpha1Api* | [**list_rbac_authorization_v1alpha1_role_for_all_namespaces**](docs/RbacAuthorizationV1alpha1Api.md#list_rbac_authorization_v1alpha1_role_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/roles | +*RbacAuthorizationV1alpha1Api* | [**patch_rbac_authorization_v1alpha1_cluster_role**](docs/RbacAuthorizationV1alpha1Api.md#patch_rbac_authorization_v1alpha1_cluster_role) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | +*RbacAuthorizationV1alpha1Api* | [**patch_rbac_authorization_v1alpha1_cluster_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#patch_rbac_authorization_v1alpha1_cluster_role_binding) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | +*RbacAuthorizationV1alpha1Api* | [**patch_rbac_authorization_v1alpha1_namespaced_role**](docs/RbacAuthorizationV1alpha1Api.md#patch_rbac_authorization_v1alpha1_namespaced_role) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | +*RbacAuthorizationV1alpha1Api* | [**patch_rbac_authorization_v1alpha1_namespaced_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#patch_rbac_authorization_v1alpha1_namespaced_role_binding) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | +*RbacAuthorizationV1alpha1Api* | [**read_rbac_authorization_v1alpha1_cluster_role**](docs/RbacAuthorizationV1alpha1Api.md#read_rbac_authorization_v1alpha1_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | +*RbacAuthorizationV1alpha1Api* | [**read_rbac_authorization_v1alpha1_cluster_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#read_rbac_authorization_v1alpha1_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | +*RbacAuthorizationV1alpha1Api* | [**read_rbac_authorization_v1alpha1_namespaced_role**](docs/RbacAuthorizationV1alpha1Api.md#read_rbac_authorization_v1alpha1_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | +*RbacAuthorizationV1alpha1Api* | [**read_rbac_authorization_v1alpha1_namespaced_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#read_rbac_authorization_v1alpha1_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | +*RbacAuthorizationV1alpha1Api* | [**replace_rbac_authorization_v1alpha1_cluster_role**](docs/RbacAuthorizationV1alpha1Api.md#replace_rbac_authorization_v1alpha1_cluster_role) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | +*RbacAuthorizationV1alpha1Api* | [**replace_rbac_authorization_v1alpha1_cluster_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#replace_rbac_authorization_v1alpha1_cluster_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | +*RbacAuthorizationV1alpha1Api* | [**replace_rbac_authorization_v1alpha1_namespaced_role**](docs/RbacAuthorizationV1alpha1Api.md#replace_rbac_authorization_v1alpha1_namespaced_role) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | +*RbacAuthorizationV1alpha1Api* | [**replace_rbac_authorization_v1alpha1_namespaced_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#replace_rbac_authorization_v1alpha1_namespaced_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | +*RbacAuthorizationV1alpha1Api* | [**watch_rbac_authorization_v1alpha1_cluster_role**](docs/RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles/{name} | +*RbacAuthorizationV1alpha1Api* | [**watch_rbac_authorization_v1alpha1_cluster_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings/{name} | +*RbacAuthorizationV1alpha1Api* | [**watch_rbac_authorization_v1alpha1_cluster_role_binding_list**](docs/RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_cluster_role_binding_list) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings | +*RbacAuthorizationV1alpha1Api* | [**watch_rbac_authorization_v1alpha1_cluster_role_list**](docs/RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_cluster_role_list) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles | +*RbacAuthorizationV1alpha1Api* | [**watch_rbac_authorization_v1alpha1_namespaced_role**](docs/RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles/{name} | +*RbacAuthorizationV1alpha1Api* | [**watch_rbac_authorization_v1alpha1_namespaced_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name} | +*RbacAuthorizationV1alpha1Api* | [**watch_rbac_authorization_v1alpha1_namespaced_role_binding_list**](docs/RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_namespaced_role_binding_list) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings | +*RbacAuthorizationV1alpha1Api* | [**watch_rbac_authorization_v1alpha1_namespaced_role_list**](docs/RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_namespaced_role_list) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles | +*RbacAuthorizationV1alpha1Api* | [**watch_rbac_authorization_v1alpha1_role_binding_list_for_all_namespaces**](docs/RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_role_binding_list_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/rolebindings | +*RbacAuthorizationV1alpha1Api* | [**watch_rbac_authorization_v1alpha1_role_list_for_all_namespaces**](docs/RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_role_list_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/roles | +*StorageApi* | [**get_storage_api_group**](docs/StorageApi.md#get_storage_api_group) | **GET** /apis/storage.k8s.io/ | +*StorageV1beta1Api* | [**create_storage_v1beta1_storage_class**](docs/StorageV1beta1Api.md#create_storage_v1beta1_storage_class) | **POST** /apis/storage.k8s.io/v1beta1/storageclasses | +*StorageV1beta1Api* | [**delete_storage_v1beta1_collection_storage_class**](docs/StorageV1beta1Api.md#delete_storage_v1beta1_collection_storage_class) | **DELETE** /apis/storage.k8s.io/v1beta1/storageclasses | +*StorageV1beta1Api* | [**delete_storage_v1beta1_storage_class**](docs/StorageV1beta1Api.md#delete_storage_v1beta1_storage_class) | **DELETE** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | +*StorageV1beta1Api* | [**get_storage_v1beta1_api_resources**](docs/StorageV1beta1Api.md#get_storage_v1beta1_api_resources) | **GET** /apis/storage.k8s.io/v1beta1/ | +*StorageV1beta1Api* | [**list_storage_v1beta1_storage_class**](docs/StorageV1beta1Api.md#list_storage_v1beta1_storage_class) | **GET** /apis/storage.k8s.io/v1beta1/storageclasses | +*StorageV1beta1Api* | [**patch_storage_v1beta1_storage_class**](docs/StorageV1beta1Api.md#patch_storage_v1beta1_storage_class) | **PATCH** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | +*StorageV1beta1Api* | [**read_storage_v1beta1_storage_class**](docs/StorageV1beta1Api.md#read_storage_v1beta1_storage_class) | **GET** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | +*StorageV1beta1Api* | [**replace_storage_v1beta1_storage_class**](docs/StorageV1beta1Api.md#replace_storage_v1beta1_storage_class) | **PUT** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | +*StorageV1beta1Api* | [**watch_storage_v1beta1_storage_class**](docs/StorageV1beta1Api.md#watch_storage_v1beta1_storage_class) | **GET** /apis/storage.k8s.io/v1beta1/watch/storageclasses/{name} | +*StorageV1beta1Api* | [**watch_storage_v1beta1_storage_class_list**](docs/StorageV1beta1Api.md#watch_storage_v1beta1_storage_class_list) | **GET** /apis/storage.k8s.io/v1beta1/watch/storageclasses | +*VersionApi* | [**get_code_version**](docs/VersionApi.md#get_code_version) | **GET** /version/ | + + +## Documentation For Models + + - [IntstrIntOrString](docs/IntstrIntOrString.md) + - [ResourceQuantity](docs/ResourceQuantity.md) + - [RuntimeRawExtension](docs/RuntimeRawExtension.md) + - [UnversionedAPIGroup](docs/UnversionedAPIGroup.md) + - [UnversionedAPIGroupList](docs/UnversionedAPIGroupList.md) + - [UnversionedAPIResource](docs/UnversionedAPIResource.md) + - [UnversionedAPIResourceList](docs/UnversionedAPIResourceList.md) + - [UnversionedAPIVersions](docs/UnversionedAPIVersions.md) + - [UnversionedGroupVersionForDiscovery](docs/UnversionedGroupVersionForDiscovery.md) + - [UnversionedLabelSelector](docs/UnversionedLabelSelector.md) + - [UnversionedLabelSelectorRequirement](docs/UnversionedLabelSelectorRequirement.md) + - [UnversionedListMeta](docs/UnversionedListMeta.md) + - [UnversionedServerAddressByClientCIDR](docs/UnversionedServerAddressByClientCIDR.md) + - [UnversionedStatus](docs/UnversionedStatus.md) + - [UnversionedStatusCause](docs/UnversionedStatusCause.md) + - [UnversionedStatusDetails](docs/UnversionedStatusDetails.md) + - [UnversionedTime](docs/UnversionedTime.md) + - [V1AttachedVolume](docs/V1AttachedVolume.md) + - [V1Binding](docs/V1Binding.md) + - [V1Capabilities](docs/V1Capabilities.md) + - [V1ComponentCondition](docs/V1ComponentCondition.md) + - [V1ComponentStatus](docs/V1ComponentStatus.md) + - [V1ComponentStatusList](docs/V1ComponentStatusList.md) + - [V1ConfigMap](docs/V1ConfigMap.md) + - [V1ConfigMapKeySelector](docs/V1ConfigMapKeySelector.md) + - [V1ConfigMapList](docs/V1ConfigMapList.md) + - [V1Container](docs/V1Container.md) + - [V1ContainerImage](docs/V1ContainerImage.md) + - [V1ContainerPort](docs/V1ContainerPort.md) + - [V1ContainerState](docs/V1ContainerState.md) + - [V1ContainerStateRunning](docs/V1ContainerStateRunning.md) + - [V1ContainerStateTerminated](docs/V1ContainerStateTerminated.md) + - [V1ContainerStateWaiting](docs/V1ContainerStateWaiting.md) + - [V1ContainerStatus](docs/V1ContainerStatus.md) + - [V1CrossVersionObjectReference](docs/V1CrossVersionObjectReference.md) + - [V1DaemonEndpoint](docs/V1DaemonEndpoint.md) + - [V1DeleteOptions](docs/V1DeleteOptions.md) + - [V1EndpointAddress](docs/V1EndpointAddress.md) + - [V1EndpointPort](docs/V1EndpointPort.md) + - [V1EndpointSubset](docs/V1EndpointSubset.md) + - [V1Endpoints](docs/V1Endpoints.md) + - [V1EndpointsList](docs/V1EndpointsList.md) + - [V1EnvVar](docs/V1EnvVar.md) + - [V1EnvVarSource](docs/V1EnvVarSource.md) + - [V1Event](docs/V1Event.md) + - [V1EventList](docs/V1EventList.md) + - [V1EventSource](docs/V1EventSource.md) + - [V1ExecAction](docs/V1ExecAction.md) + - [V1HTTPGetAction](docs/V1HTTPGetAction.md) + - [V1HTTPHeader](docs/V1HTTPHeader.md) + - [V1Handler](docs/V1Handler.md) + - [V1HorizontalPodAutoscaler](docs/V1HorizontalPodAutoscaler.md) + - [V1HorizontalPodAutoscalerList](docs/V1HorizontalPodAutoscalerList.md) + - [V1HorizontalPodAutoscalerSpec](docs/V1HorizontalPodAutoscalerSpec.md) + - [V1HorizontalPodAutoscalerStatus](docs/V1HorizontalPodAutoscalerStatus.md) + - [V1Job](docs/V1Job.md) + - [V1JobCondition](docs/V1JobCondition.md) + - [V1JobList](docs/V1JobList.md) + - [V1JobSpec](docs/V1JobSpec.md) + - [V1JobStatus](docs/V1JobStatus.md) + - [V1Lifecycle](docs/V1Lifecycle.md) + - [V1LimitRange](docs/V1LimitRange.md) + - [V1LimitRangeItem](docs/V1LimitRangeItem.md) + - [V1LimitRangeList](docs/V1LimitRangeList.md) + - [V1LimitRangeSpec](docs/V1LimitRangeSpec.md) + - [V1LoadBalancerIngress](docs/V1LoadBalancerIngress.md) + - [V1LoadBalancerStatus](docs/V1LoadBalancerStatus.md) + - [V1LocalObjectReference](docs/V1LocalObjectReference.md) + - [V1Namespace](docs/V1Namespace.md) + - [V1NamespaceList](docs/V1NamespaceList.md) + - [V1NamespaceSpec](docs/V1NamespaceSpec.md) + - [V1NamespaceStatus](docs/V1NamespaceStatus.md) + - [V1Node](docs/V1Node.md) + - [V1NodeAddress](docs/V1NodeAddress.md) + - [V1NodeCondition](docs/V1NodeCondition.md) + - [V1NodeDaemonEndpoints](docs/V1NodeDaemonEndpoints.md) + - [V1NodeList](docs/V1NodeList.md) + - [V1NodeSpec](docs/V1NodeSpec.md) + - [V1NodeStatus](docs/V1NodeStatus.md) + - [V1NodeSystemInfo](docs/V1NodeSystemInfo.md) + - [V1ObjectFieldSelector](docs/V1ObjectFieldSelector.md) + - [V1ObjectMeta](docs/V1ObjectMeta.md) + - [V1ObjectReference](docs/V1ObjectReference.md) + - [V1OwnerReference](docs/V1OwnerReference.md) + - [V1PersistentVolume](docs/V1PersistentVolume.md) + - [V1PersistentVolumeClaim](docs/V1PersistentVolumeClaim.md) + - [V1PersistentVolumeClaimList](docs/V1PersistentVolumeClaimList.md) + - [V1PersistentVolumeClaimSpec](docs/V1PersistentVolumeClaimSpec.md) + - [V1PersistentVolumeClaimStatus](docs/V1PersistentVolumeClaimStatus.md) + - [V1PersistentVolumeList](docs/V1PersistentVolumeList.md) + - [V1PersistentVolumeSpec](docs/V1PersistentVolumeSpec.md) + - [V1PersistentVolumeStatus](docs/V1PersistentVolumeStatus.md) + - [V1Pod](docs/V1Pod.md) + - [V1PodCondition](docs/V1PodCondition.md) + - [V1PodList](docs/V1PodList.md) + - [V1PodSecurityContext](docs/V1PodSecurityContext.md) + - [V1PodSpec](docs/V1PodSpec.md) + - [V1PodStatus](docs/V1PodStatus.md) + - [V1PodTemplate](docs/V1PodTemplate.md) + - [V1PodTemplateList](docs/V1PodTemplateList.md) + - [V1PodTemplateSpec](docs/V1PodTemplateSpec.md) + - [V1Preconditions](docs/V1Preconditions.md) + - [V1Probe](docs/V1Probe.md) + - [V1ReplicationController](docs/V1ReplicationController.md) + - [V1ReplicationControllerCondition](docs/V1ReplicationControllerCondition.md) + - [V1ReplicationControllerList](docs/V1ReplicationControllerList.md) + - [V1ReplicationControllerSpec](docs/V1ReplicationControllerSpec.md) + - [V1ReplicationControllerStatus](docs/V1ReplicationControllerStatus.md) + - [V1ResourceFieldSelector](docs/V1ResourceFieldSelector.md) + - [V1ResourceQuota](docs/V1ResourceQuota.md) + - [V1ResourceQuotaList](docs/V1ResourceQuotaList.md) + - [V1ResourceQuotaSpec](docs/V1ResourceQuotaSpec.md) + - [V1ResourceQuotaStatus](docs/V1ResourceQuotaStatus.md) + - [V1ResourceRequirements](docs/V1ResourceRequirements.md) + - [V1SELinuxOptions](docs/V1SELinuxOptions.md) + - [V1Scale](docs/V1Scale.md) + - [V1ScaleSpec](docs/V1ScaleSpec.md) + - [V1ScaleStatus](docs/V1ScaleStatus.md) + - [V1Secret](docs/V1Secret.md) + - [V1SecretKeySelector](docs/V1SecretKeySelector.md) + - [V1SecretList](docs/V1SecretList.md) + - [V1SecurityContext](docs/V1SecurityContext.md) + - [V1Service](docs/V1Service.md) + - [V1ServiceAccount](docs/V1ServiceAccount.md) + - [V1ServiceAccountList](docs/V1ServiceAccountList.md) + - [V1ServiceList](docs/V1ServiceList.md) + - [V1ServicePort](docs/V1ServicePort.md) + - [V1ServiceSpec](docs/V1ServiceSpec.md) + - [V1ServiceStatus](docs/V1ServiceStatus.md) + - [V1TCPSocketAction](docs/V1TCPSocketAction.md) + - [V1Volume](docs/V1Volume.md) + - [V1VolumeMount](docs/V1VolumeMount.md) + - [V1alpha1CertificateSigningRequest](docs/V1alpha1CertificateSigningRequest.md) + - [V1alpha1CertificateSigningRequestCondition](docs/V1alpha1CertificateSigningRequestCondition.md) + - [V1alpha1CertificateSigningRequestList](docs/V1alpha1CertificateSigningRequestList.md) + - [V1alpha1CertificateSigningRequestSpec](docs/V1alpha1CertificateSigningRequestSpec.md) + - [V1alpha1CertificateSigningRequestStatus](docs/V1alpha1CertificateSigningRequestStatus.md) + - [V1alpha1ClusterRole](docs/V1alpha1ClusterRole.md) + - [V1alpha1ClusterRoleBinding](docs/V1alpha1ClusterRoleBinding.md) + - [V1alpha1ClusterRoleBindingList](docs/V1alpha1ClusterRoleBindingList.md) + - [V1alpha1ClusterRoleList](docs/V1alpha1ClusterRoleList.md) + - [V1alpha1Eviction](docs/V1alpha1Eviction.md) + - [V1alpha1PodDisruptionBudget](docs/V1alpha1PodDisruptionBudget.md) + - [V1alpha1PodDisruptionBudgetList](docs/V1alpha1PodDisruptionBudgetList.md) + - [V1alpha1PodDisruptionBudgetSpec](docs/V1alpha1PodDisruptionBudgetSpec.md) + - [V1alpha1PodDisruptionBudgetStatus](docs/V1alpha1PodDisruptionBudgetStatus.md) + - [V1alpha1PolicyRule](docs/V1alpha1PolicyRule.md) + - [V1alpha1Role](docs/V1alpha1Role.md) + - [V1alpha1RoleBinding](docs/V1alpha1RoleBinding.md) + - [V1alpha1RoleBindingList](docs/V1alpha1RoleBindingList.md) + - [V1alpha1RoleList](docs/V1alpha1RoleList.md) + - [V1alpha1RoleRef](docs/V1alpha1RoleRef.md) + - [V1alpha1StatefulSet](docs/V1alpha1StatefulSet.md) + - [V1alpha1StatefulSetList](docs/V1alpha1StatefulSetList.md) + - [V1alpha1StatefulSetSpec](docs/V1alpha1StatefulSetSpec.md) + - [V1alpha1StatefulSetStatus](docs/V1alpha1StatefulSetStatus.md) + - [V1alpha1Subject](docs/V1alpha1Subject.md) + - [V1beta1APIVersion](docs/V1beta1APIVersion.md) + - [V1beta1CPUTargetUtilization](docs/V1beta1CPUTargetUtilization.md) + - [V1beta1DaemonSet](docs/V1beta1DaemonSet.md) + - [V1beta1DaemonSetList](docs/V1beta1DaemonSetList.md) + - [V1beta1DaemonSetSpec](docs/V1beta1DaemonSetSpec.md) + - [V1beta1DaemonSetStatus](docs/V1beta1DaemonSetStatus.md) + - [V1beta1Deployment](docs/V1beta1Deployment.md) + - [V1beta1DeploymentCondition](docs/V1beta1DeploymentCondition.md) + - [V1beta1DeploymentList](docs/V1beta1DeploymentList.md) + - [V1beta1DeploymentRollback](docs/V1beta1DeploymentRollback.md) + - [V1beta1DeploymentSpec](docs/V1beta1DeploymentSpec.md) + - [V1beta1DeploymentStatus](docs/V1beta1DeploymentStatus.md) + - [V1beta1DeploymentStrategy](docs/V1beta1DeploymentStrategy.md) + - [V1beta1HorizontalPodAutoscaler](docs/V1beta1HorizontalPodAutoscaler.md) + - [V1beta1HorizontalPodAutoscalerList](docs/V1beta1HorizontalPodAutoscalerList.md) + - [V1beta1HorizontalPodAutoscalerSpec](docs/V1beta1HorizontalPodAutoscalerSpec.md) + - [V1beta1HorizontalPodAutoscalerStatus](docs/V1beta1HorizontalPodAutoscalerStatus.md) + - [V1beta1Ingress](docs/V1beta1Ingress.md) + - [V1beta1IngressBackend](docs/V1beta1IngressBackend.md) + - [V1beta1IngressList](docs/V1beta1IngressList.md) + - [V1beta1IngressRule](docs/V1beta1IngressRule.md) + - [V1beta1IngressSpec](docs/V1beta1IngressSpec.md) + - [V1beta1IngressStatus](docs/V1beta1IngressStatus.md) + - [V1beta1IngressTLS](docs/V1beta1IngressTLS.md) + - [V1beta1Job](docs/V1beta1Job.md) + - [V1beta1JobCondition](docs/V1beta1JobCondition.md) + - [V1beta1JobList](docs/V1beta1JobList.md) + - [V1beta1JobSpec](docs/V1beta1JobSpec.md) + - [V1beta1JobStatus](docs/V1beta1JobStatus.md) + - [V1beta1LocalSubjectAccessReview](docs/V1beta1LocalSubjectAccessReview.md) + - [V1beta1NetworkPolicy](docs/V1beta1NetworkPolicy.md) + - [V1beta1NetworkPolicyIngressRule](docs/V1beta1NetworkPolicyIngressRule.md) + - [V1beta1NetworkPolicyList](docs/V1beta1NetworkPolicyList.md) + - [V1beta1NetworkPolicyPeer](docs/V1beta1NetworkPolicyPeer.md) + - [V1beta1NetworkPolicyPort](docs/V1beta1NetworkPolicyPort.md) + - [V1beta1NetworkPolicySpec](docs/V1beta1NetworkPolicySpec.md) + - [V1beta1NonResourceAttributes](docs/V1beta1NonResourceAttributes.md) + - [V1beta1ReplicaSet](docs/V1beta1ReplicaSet.md) + - [V1beta1ReplicaSetCondition](docs/V1beta1ReplicaSetCondition.md) + - [V1beta1ReplicaSetList](docs/V1beta1ReplicaSetList.md) + - [V1beta1ReplicaSetSpec](docs/V1beta1ReplicaSetSpec.md) + - [V1beta1ReplicaSetStatus](docs/V1beta1ReplicaSetStatus.md) + - [V1beta1ResourceAttributes](docs/V1beta1ResourceAttributes.md) + - [V1beta1RollbackConfig](docs/V1beta1RollbackConfig.md) + - [V1beta1RollingUpdateDeployment](docs/V1beta1RollingUpdateDeployment.md) + - [V1beta1Scale](docs/V1beta1Scale.md) + - [V1beta1ScaleSpec](docs/V1beta1ScaleSpec.md) + - [V1beta1ScaleStatus](docs/V1beta1ScaleStatus.md) + - [V1beta1SelfSubjectAccessReview](docs/V1beta1SelfSubjectAccessReview.md) + - [V1beta1SelfSubjectAccessReviewSpec](docs/V1beta1SelfSubjectAccessReviewSpec.md) + - [V1beta1StorageClass](docs/V1beta1StorageClass.md) + - [V1beta1StorageClassList](docs/V1beta1StorageClassList.md) + - [V1beta1SubjectAccessReview](docs/V1beta1SubjectAccessReview.md) + - [V1beta1SubjectAccessReviewSpec](docs/V1beta1SubjectAccessReviewSpec.md) + - [V1beta1SubjectAccessReviewStatus](docs/V1beta1SubjectAccessReviewStatus.md) + - [V1beta1SubresourceReference](docs/V1beta1SubresourceReference.md) + - [V1beta1ThirdPartyResource](docs/V1beta1ThirdPartyResource.md) + - [V1beta1ThirdPartyResourceList](docs/V1beta1ThirdPartyResourceList.md) + - [V1beta1TokenReview](docs/V1beta1TokenReview.md) + - [V1beta1TokenReviewSpec](docs/V1beta1TokenReviewSpec.md) + - [V1beta1TokenReviewStatus](docs/V1beta1TokenReviewStatus.md) + - [V1beta1UserInfo](docs/V1beta1UserInfo.md) + - [VersionInfo](docs/VersionInfo.md) + - [VersionedEvent](docs/VersionedEvent.md) + + +## Documentation For Authorization + + +## BearerToken + +- **Type**: API key +- **API key parameter name**: authorization +- **Location**: HTTP header + + +## Author + + + diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000..00b240110 --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2014 The Kubernetes Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/README.md b/README.md index cd742aac1..480992027 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,23 @@ -TBD +# Kubernetes Python Client + +Python clients for talking to a [kubernetes](http://kubernetes.io/) cluster. + +## Example + +```python +from __future__ import absolute_import + +import k8sclient +import os + +v1=k8sclient.CoreV1Api() +print "Listing pods with their IPs:" +ret = v1.list_pod_for_all_namespaces(watch=False) +for i in ret.items: + print "%s\t%s\t%s" % (i.status.pod_ip, i.metadata.namespace, i.metadata.name) +``` + +# Generated client README + +for generated client documentation, refer to [generated README](GEN_README.md). diff --git a/docs/ApisApi.md b/docs/ApisApi.md new file mode 100644 index 000000000..9f8b8da09 --- /dev/null +++ b/docs/ApisApi.md @@ -0,0 +1,57 @@ +# k8sclient.ApisApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_api_versions**](ApisApi.md#get_api_versions) | **GET** /apis/ | + + +# **get_api_versions** +> UnversionedAPIGroupList get_api_versions() + + + +get available API versions + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ApisApi() + +try: + api_response = api_instance.get_api_versions() + pprint(api_response) +except ApiException as e: + print("Exception when calling ApisApi->get_api_versions: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIGroupList**](UnversionedAPIGroupList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AppsApi.md b/docs/AppsApi.md new file mode 100644 index 000000000..cfa55efd2 --- /dev/null +++ b/docs/AppsApi.md @@ -0,0 +1,57 @@ +# k8sclient.AppsApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_apps_api_group**](AppsApi.md#get_apps_api_group) | **GET** /apis/apps/ | + + +# **get_apps_api_group** +> UnversionedAPIGroup get_apps_api_group() + + + +get information of a group + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AppsApi() + +try: + api_response = api_instance.get_apps_api_group() + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsApi->get_apps_api_group: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIGroup**](UnversionedAPIGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AppsV1alpha1Api.md b/docs/AppsV1alpha1Api.md new file mode 100644 index 000000000..1019f4f76 --- /dev/null +++ b/docs/AppsV1alpha1Api.md @@ -0,0 +1,915 @@ +# k8sclient.AppsV1alpha1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_apps_v1alpha1_namespaced_stateful_set**](AppsV1alpha1Api.md#create_apps_v1alpha1_namespaced_stateful_set) | **POST** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets | +[**delete_apps_v1alpha1_collection_namespaced_stateful_set**](AppsV1alpha1Api.md#delete_apps_v1alpha1_collection_namespaced_stateful_set) | **DELETE** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets | +[**delete_apps_v1alpha1_namespaced_stateful_set**](AppsV1alpha1Api.md#delete_apps_v1alpha1_namespaced_stateful_set) | **DELETE** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name} | +[**get_apps_v1alpha1_api_resources**](AppsV1alpha1Api.md#get_apps_v1alpha1_api_resources) | **GET** /apis/apps/v1alpha1/ | +[**list_apps_v1alpha1_namespaced_stateful_set**](AppsV1alpha1Api.md#list_apps_v1alpha1_namespaced_stateful_set) | **GET** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets | +[**list_apps_v1alpha1_stateful_set_for_all_namespaces**](AppsV1alpha1Api.md#list_apps_v1alpha1_stateful_set_for_all_namespaces) | **GET** /apis/apps/v1alpha1/statefulsets | +[**patch_apps_v1alpha1_namespaced_stateful_set**](AppsV1alpha1Api.md#patch_apps_v1alpha1_namespaced_stateful_set) | **PATCH** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name} | +[**patch_apps_v1alpha1_namespaced_stateful_set_status**](AppsV1alpha1Api.md#patch_apps_v1alpha1_namespaced_stateful_set_status) | **PATCH** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}/status | +[**read_apps_v1alpha1_namespaced_stateful_set**](AppsV1alpha1Api.md#read_apps_v1alpha1_namespaced_stateful_set) | **GET** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name} | +[**read_apps_v1alpha1_namespaced_stateful_set_status**](AppsV1alpha1Api.md#read_apps_v1alpha1_namespaced_stateful_set_status) | **GET** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}/status | +[**replace_apps_v1alpha1_namespaced_stateful_set**](AppsV1alpha1Api.md#replace_apps_v1alpha1_namespaced_stateful_set) | **PUT** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name} | +[**replace_apps_v1alpha1_namespaced_stateful_set_status**](AppsV1alpha1Api.md#replace_apps_v1alpha1_namespaced_stateful_set_status) | **PUT** /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}/status | +[**watch_apps_v1alpha1_namespaced_stateful_set**](AppsV1alpha1Api.md#watch_apps_v1alpha1_namespaced_stateful_set) | **GET** /apis/apps/v1alpha1/watch/namespaces/{namespace}/statefulsets/{name} | +[**watch_apps_v1alpha1_namespaced_stateful_set_list**](AppsV1alpha1Api.md#watch_apps_v1alpha1_namespaced_stateful_set_list) | **GET** /apis/apps/v1alpha1/watch/namespaces/{namespace}/statefulsets | +[**watch_apps_v1alpha1_stateful_set_list_for_all_namespaces**](AppsV1alpha1Api.md#watch_apps_v1alpha1_stateful_set_list_for_all_namespaces) | **GET** /apis/apps/v1alpha1/watch/statefulsets | + + +# **create_apps_v1alpha1_namespaced_stateful_set** +> V1alpha1StatefulSet create_apps_v1alpha1_namespaced_stateful_set(namespace, body, pretty=pretty) + + + +create a StatefulSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AppsV1alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1alpha1StatefulSet() # V1alpha1StatefulSet | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_apps_v1alpha1_namespaced_stateful_set(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1alpha1Api->create_apps_v1alpha1_namespaced_stateful_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1StatefulSet**](V1alpha1StatefulSet.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1StatefulSet**](V1alpha1StatefulSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_apps_v1alpha1_collection_namespaced_stateful_set** +> UnversionedStatus delete_apps_v1alpha1_collection_namespaced_stateful_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of StatefulSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AppsV1alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_apps_v1alpha1_collection_namespaced_stateful_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1alpha1Api->delete_apps_v1alpha1_collection_namespaced_stateful_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_apps_v1alpha1_namespaced_stateful_set** +> UnversionedStatus delete_apps_v1alpha1_namespaced_stateful_set(name, namespace, body, pretty=pretty) + + + +delete a StatefulSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AppsV1alpha1Api() +name = 'name_example' # str | name of the StatefulSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_apps_v1alpha1_namespaced_stateful_set(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1alpha1Api->delete_apps_v1alpha1_namespaced_stateful_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StatefulSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_apps_v1alpha1_api_resources** +> UnversionedAPIResourceList get_apps_v1alpha1_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AppsV1alpha1Api() + +try: + api_response = api_instance.get_apps_v1alpha1_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1alpha1Api->get_apps_v1alpha1_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_apps_v1alpha1_namespaced_stateful_set** +> V1alpha1StatefulSetList list_apps_v1alpha1_namespaced_stateful_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind StatefulSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AppsV1alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_apps_v1alpha1_namespaced_stateful_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1alpha1Api->list_apps_v1alpha1_namespaced_stateful_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1StatefulSetList**](V1alpha1StatefulSetList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_apps_v1alpha1_stateful_set_for_all_namespaces** +> V1alpha1StatefulSetList list_apps_v1alpha1_stateful_set_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind StatefulSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AppsV1alpha1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_apps_v1alpha1_stateful_set_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1alpha1Api->list_apps_v1alpha1_stateful_set_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1StatefulSetList**](V1alpha1StatefulSetList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_apps_v1alpha1_namespaced_stateful_set** +> V1alpha1StatefulSet patch_apps_v1alpha1_namespaced_stateful_set(name, namespace, body, pretty=pretty) + + + +partially update the specified StatefulSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AppsV1alpha1Api() +name = 'name_example' # str | name of the StatefulSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_apps_v1alpha1_namespaced_stateful_set(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1alpha1Api->patch_apps_v1alpha1_namespaced_stateful_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StatefulSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1StatefulSet**](V1alpha1StatefulSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_apps_v1alpha1_namespaced_stateful_set_status** +> V1alpha1StatefulSet patch_apps_v1alpha1_namespaced_stateful_set_status(name, namespace, body, pretty=pretty) + + + +partially update status of the specified StatefulSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AppsV1alpha1Api() +name = 'name_example' # str | name of the StatefulSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_apps_v1alpha1_namespaced_stateful_set_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1alpha1Api->patch_apps_v1alpha1_namespaced_stateful_set_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StatefulSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1StatefulSet**](V1alpha1StatefulSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_apps_v1alpha1_namespaced_stateful_set** +> V1alpha1StatefulSet read_apps_v1alpha1_namespaced_stateful_set(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified StatefulSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AppsV1alpha1Api() +name = 'name_example' # str | name of the StatefulSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_apps_v1alpha1_namespaced_stateful_set(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1alpha1Api->read_apps_v1alpha1_namespaced_stateful_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StatefulSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1alpha1StatefulSet**](V1alpha1StatefulSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_apps_v1alpha1_namespaced_stateful_set_status** +> V1alpha1StatefulSet read_apps_v1alpha1_namespaced_stateful_set_status(name, namespace, pretty=pretty) + + + +read status of the specified StatefulSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AppsV1alpha1Api() +name = 'name_example' # str | name of the StatefulSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_apps_v1alpha1_namespaced_stateful_set_status(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1alpha1Api->read_apps_v1alpha1_namespaced_stateful_set_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StatefulSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1StatefulSet**](V1alpha1StatefulSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_apps_v1alpha1_namespaced_stateful_set** +> V1alpha1StatefulSet replace_apps_v1alpha1_namespaced_stateful_set(name, namespace, body, pretty=pretty) + + + +replace the specified StatefulSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AppsV1alpha1Api() +name = 'name_example' # str | name of the StatefulSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1alpha1StatefulSet() # V1alpha1StatefulSet | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_apps_v1alpha1_namespaced_stateful_set(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1alpha1Api->replace_apps_v1alpha1_namespaced_stateful_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StatefulSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1StatefulSet**](V1alpha1StatefulSet.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1StatefulSet**](V1alpha1StatefulSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_apps_v1alpha1_namespaced_stateful_set_status** +> V1alpha1StatefulSet replace_apps_v1alpha1_namespaced_stateful_set_status(name, namespace, body, pretty=pretty) + + + +replace status of the specified StatefulSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AppsV1alpha1Api() +name = 'name_example' # str | name of the StatefulSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1alpha1StatefulSet() # V1alpha1StatefulSet | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_apps_v1alpha1_namespaced_stateful_set_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1alpha1Api->replace_apps_v1alpha1_namespaced_stateful_set_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StatefulSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1StatefulSet**](V1alpha1StatefulSet.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1StatefulSet**](V1alpha1StatefulSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_apps_v1alpha1_namespaced_stateful_set** +> VersionedEvent watch_apps_v1alpha1_namespaced_stateful_set(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind StatefulSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AppsV1alpha1Api() +name = 'name_example' # str | name of the StatefulSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_apps_v1alpha1_namespaced_stateful_set(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1alpha1Api->watch_apps_v1alpha1_namespaced_stateful_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StatefulSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_apps_v1alpha1_namespaced_stateful_set_list** +> VersionedEvent watch_apps_v1alpha1_namespaced_stateful_set_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of StatefulSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AppsV1alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_apps_v1alpha1_namespaced_stateful_set_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1alpha1Api->watch_apps_v1alpha1_namespaced_stateful_set_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_apps_v1alpha1_stateful_set_list_for_all_namespaces** +> VersionedEvent watch_apps_v1alpha1_stateful_set_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of StatefulSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AppsV1alpha1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_apps_v1alpha1_stateful_set_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1alpha1Api->watch_apps_v1alpha1_stateful_set_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AuthenticationApi.md b/docs/AuthenticationApi.md new file mode 100644 index 000000000..737a30f6a --- /dev/null +++ b/docs/AuthenticationApi.md @@ -0,0 +1,57 @@ +# k8sclient.AuthenticationApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_authentication_api_group**](AuthenticationApi.md#get_authentication_api_group) | **GET** /apis/authentication.k8s.io/ | + + +# **get_authentication_api_group** +> UnversionedAPIGroup get_authentication_api_group() + + + +get information of a group + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AuthenticationApi() + +try: + api_response = api_instance.get_authentication_api_group() + pprint(api_response) +except ApiException as e: + print("Exception when calling AuthenticationApi->get_authentication_api_group: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIGroup**](UnversionedAPIGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AuthenticationV1beta1Api.md b/docs/AuthenticationV1beta1Api.md new file mode 100644 index 000000000..a660a8801 --- /dev/null +++ b/docs/AuthenticationV1beta1Api.md @@ -0,0 +1,112 @@ +# k8sclient.AuthenticationV1beta1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_authentication_v1beta1_token_review**](AuthenticationV1beta1Api.md#create_authentication_v1beta1_token_review) | **POST** /apis/authentication.k8s.io/v1beta1/tokenreviews | +[**get_authentication_v1beta1_api_resources**](AuthenticationV1beta1Api.md#get_authentication_v1beta1_api_resources) | **GET** /apis/authentication.k8s.io/v1beta1/ | + + +# **create_authentication_v1beta1_token_review** +> V1beta1TokenReview create_authentication_v1beta1_token_review(body, pretty=pretty) + + + +create a TokenReview + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AuthenticationV1beta1Api() +body = k8sclient.V1beta1TokenReview() # V1beta1TokenReview | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_authentication_v1beta1_token_review(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AuthenticationV1beta1Api->create_authentication_v1beta1_token_review: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1TokenReview**](V1beta1TokenReview.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1TokenReview**](V1beta1TokenReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_authentication_v1beta1_api_resources** +> UnversionedAPIResourceList get_authentication_v1beta1_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AuthenticationV1beta1Api() + +try: + api_response = api_instance.get_authentication_v1beta1_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling AuthenticationV1beta1Api->get_authentication_v1beta1_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AuthorizationApi.md b/docs/AuthorizationApi.md new file mode 100644 index 000000000..f7c619f74 --- /dev/null +++ b/docs/AuthorizationApi.md @@ -0,0 +1,57 @@ +# k8sclient.AuthorizationApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_authorization_api_group**](AuthorizationApi.md#get_authorization_api_group) | **GET** /apis/authorization.k8s.io/ | + + +# **get_authorization_api_group** +> UnversionedAPIGroup get_authorization_api_group() + + + +get information of a group + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AuthorizationApi() + +try: + api_response = api_instance.get_authorization_api_group() + pprint(api_response) +except ApiException as e: + print("Exception when calling AuthorizationApi->get_authorization_api_group: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIGroup**](UnversionedAPIGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AuthorizationV1beta1Api.md b/docs/AuthorizationV1beta1Api.md new file mode 100644 index 000000000..217653c17 --- /dev/null +++ b/docs/AuthorizationV1beta1Api.md @@ -0,0 +1,224 @@ +# k8sclient.AuthorizationV1beta1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_authorization_v1beta1_namespaced_local_subject_access_review**](AuthorizationV1beta1Api.md#create_authorization_v1beta1_namespaced_local_subject_access_review) | **POST** /apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews | +[**create_authorization_v1beta1_self_subject_access_review**](AuthorizationV1beta1Api.md#create_authorization_v1beta1_self_subject_access_review) | **POST** /apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews | +[**create_authorization_v1beta1_subject_access_review**](AuthorizationV1beta1Api.md#create_authorization_v1beta1_subject_access_review) | **POST** /apis/authorization.k8s.io/v1beta1/subjectaccessreviews | +[**get_authorization_v1beta1_api_resources**](AuthorizationV1beta1Api.md#get_authorization_v1beta1_api_resources) | **GET** /apis/authorization.k8s.io/v1beta1/ | + + +# **create_authorization_v1beta1_namespaced_local_subject_access_review** +> V1beta1LocalSubjectAccessReview create_authorization_v1beta1_namespaced_local_subject_access_review(body, namespace, pretty=pretty) + + + +create a LocalSubjectAccessReview + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AuthorizationV1beta1Api() +body = k8sclient.V1beta1LocalSubjectAccessReview() # V1beta1LocalSubjectAccessReview | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_authorization_v1beta1_namespaced_local_subject_access_review(body, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AuthorizationV1beta1Api->create_authorization_v1beta1_namespaced_local_subject_access_review: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1LocalSubjectAccessReview**](V1beta1LocalSubjectAccessReview.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1LocalSubjectAccessReview**](V1beta1LocalSubjectAccessReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_authorization_v1beta1_self_subject_access_review** +> V1beta1SelfSubjectAccessReview create_authorization_v1beta1_self_subject_access_review(body, pretty=pretty) + + + +create a SelfSubjectAccessReview + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AuthorizationV1beta1Api() +body = k8sclient.V1beta1SelfSubjectAccessReview() # V1beta1SelfSubjectAccessReview | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_authorization_v1beta1_self_subject_access_review(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AuthorizationV1beta1Api->create_authorization_v1beta1_self_subject_access_review: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1SelfSubjectAccessReview**](V1beta1SelfSubjectAccessReview.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1SelfSubjectAccessReview**](V1beta1SelfSubjectAccessReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_authorization_v1beta1_subject_access_review** +> V1beta1SubjectAccessReview create_authorization_v1beta1_subject_access_review(body, pretty=pretty) + + + +create a SubjectAccessReview + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AuthorizationV1beta1Api() +body = k8sclient.V1beta1SubjectAccessReview() # V1beta1SubjectAccessReview | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_authorization_v1beta1_subject_access_review(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AuthorizationV1beta1Api->create_authorization_v1beta1_subject_access_review: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1SubjectAccessReview**](V1beta1SubjectAccessReview.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1SubjectAccessReview**](V1beta1SubjectAccessReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_authorization_v1beta1_api_resources** +> UnversionedAPIResourceList get_authorization_v1beta1_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AuthorizationV1beta1Api() + +try: + api_response = api_instance.get_authorization_v1beta1_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling AuthorizationV1beta1Api->get_authorization_v1beta1_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AutoscalingApi.md b/docs/AutoscalingApi.md new file mode 100644 index 000000000..b607954c9 --- /dev/null +++ b/docs/AutoscalingApi.md @@ -0,0 +1,57 @@ +# k8sclient.AutoscalingApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_autoscaling_api_group**](AutoscalingApi.md#get_autoscaling_api_group) | **GET** /apis/autoscaling/ | + + +# **get_autoscaling_api_group** +> UnversionedAPIGroup get_autoscaling_api_group() + + + +get information of a group + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AutoscalingApi() + +try: + api_response = api_instance.get_autoscaling_api_group() + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingApi->get_autoscaling_api_group: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIGroup**](UnversionedAPIGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AutoscalingV1Api.md b/docs/AutoscalingV1Api.md new file mode 100644 index 000000000..60876a3d9 --- /dev/null +++ b/docs/AutoscalingV1Api.md @@ -0,0 +1,915 @@ +# k8sclient.AutoscalingV1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_autoscaling_v1_namespaced_horizontal_pod_autoscaler**](AutoscalingV1Api.md#create_autoscaling_v1_namespaced_horizontal_pod_autoscaler) | **POST** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | +[**delete_autoscaling_v1_collection_namespaced_horizontal_pod_autoscaler**](AutoscalingV1Api.md#delete_autoscaling_v1_collection_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | +[**delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler**](AutoscalingV1Api.md#delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +[**get_autoscaling_v1_api_resources**](AutoscalingV1Api.md#get_autoscaling_v1_api_resources) | **GET** /apis/autoscaling/v1/ | +[**list_autoscaling_v1_horizontal_pod_autoscaler_for_all_namespaces**](AutoscalingV1Api.md#list_autoscaling_v1_horizontal_pod_autoscaler_for_all_namespaces) | **GET** /apis/autoscaling/v1/horizontalpodautoscalers | +[**list_autoscaling_v1_namespaced_horizontal_pod_autoscaler**](AutoscalingV1Api.md#list_autoscaling_v1_namespaced_horizontal_pod_autoscaler) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | +[**patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler**](AutoscalingV1Api.md#patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler) | **PATCH** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +[**patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status**](AutoscalingV1Api.md#patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status) | **PATCH** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | +[**read_autoscaling_v1_namespaced_horizontal_pod_autoscaler**](AutoscalingV1Api.md#read_autoscaling_v1_namespaced_horizontal_pod_autoscaler) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +[**read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status**](AutoscalingV1Api.md#read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | +[**replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler**](AutoscalingV1Api.md#replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +[**replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status**](AutoscalingV1Api.md#replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | +[**watch_autoscaling_v1_horizontal_pod_autoscaler_list_for_all_namespaces**](AutoscalingV1Api.md#watch_autoscaling_v1_horizontal_pod_autoscaler_list_for_all_namespaces) | **GET** /apis/autoscaling/v1/watch/horizontalpodautoscalers | +[**watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler**](AutoscalingV1Api.md#watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler) | **GET** /apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name} | +[**watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_list**](AutoscalingV1Api.md#watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_list) | **GET** /apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers | + + +# **create_autoscaling_v1_namespaced_horizontal_pod_autoscaler** +> V1HorizontalPodAutoscaler create_autoscaling_v1_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty) + + + +create a HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AutoscalingV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1HorizontalPodAutoscaler() # V1HorizontalPodAutoscaler | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_autoscaling_v1_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV1Api->create_autoscaling_v1_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_autoscaling_v1_collection_namespaced_horizontal_pod_autoscaler** +> UnversionedStatus delete_autoscaling_v1_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AutoscalingV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_autoscaling_v1_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV1Api->delete_autoscaling_v1_collection_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler** +> UnversionedStatus delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + + + +delete a HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AutoscalingV1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV1Api->delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_autoscaling_v1_api_resources** +> UnversionedAPIResourceList get_autoscaling_v1_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AutoscalingV1Api() + +try: + api_response = api_instance.get_autoscaling_v1_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV1Api->get_autoscaling_v1_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_autoscaling_v1_horizontal_pod_autoscaler_for_all_namespaces** +> V1HorizontalPodAutoscalerList list_autoscaling_v1_horizontal_pod_autoscaler_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AutoscalingV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_autoscaling_v1_horizontal_pod_autoscaler_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV1Api->list_autoscaling_v1_horizontal_pod_autoscaler_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1HorizontalPodAutoscalerList**](V1HorizontalPodAutoscalerList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_autoscaling_v1_namespaced_horizontal_pod_autoscaler** +> V1HorizontalPodAutoscalerList list_autoscaling_v1_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AutoscalingV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_autoscaling_v1_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV1Api->list_autoscaling_v1_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1HorizontalPodAutoscalerList**](V1HorizontalPodAutoscalerList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler** +> V1HorizontalPodAutoscaler patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + + + +partially update the specified HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AutoscalingV1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV1Api->patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status** +> V1HorizontalPodAutoscaler patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) + + + +partially update status of the specified HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AutoscalingV1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV1Api->patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_autoscaling_v1_namespaced_horizontal_pod_autoscaler** +> V1HorizontalPodAutoscaler read_autoscaling_v1_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AutoscalingV1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_autoscaling_v1_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV1Api->read_autoscaling_v1_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status** +> V1HorizontalPodAutoscaler read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) + + + +read status of the specified HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AutoscalingV1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV1Api->read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler** +> V1HorizontalPodAutoscaler replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + + + +replace the specified HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AutoscalingV1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1HorizontalPodAutoscaler() # V1HorizontalPodAutoscaler | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV1Api->replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status** +> V1HorizontalPodAutoscaler replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) + + + +replace status of the specified HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AutoscalingV1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1HorizontalPodAutoscaler() # V1HorizontalPodAutoscaler | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV1Api->replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_autoscaling_v1_horizontal_pod_autoscaler_list_for_all_namespaces** +> VersionedEvent watch_autoscaling_v1_horizontal_pod_autoscaler_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AutoscalingV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_autoscaling_v1_horizontal_pod_autoscaler_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV1Api->watch_autoscaling_v1_horizontal_pod_autoscaler_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler** +> VersionedEvent watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AutoscalingV1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV1Api->watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_list** +> VersionedEvent watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.AutoscalingV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV1Api->watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/BatchApi.md b/docs/BatchApi.md new file mode 100644 index 000000000..d4188cc7e --- /dev/null +++ b/docs/BatchApi.md @@ -0,0 +1,57 @@ +# k8sclient.BatchApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_batch_api_group**](BatchApi.md#get_batch_api_group) | **GET** /apis/batch/ | + + +# **get_batch_api_group** +> UnversionedAPIGroup get_batch_api_group() + + + +get information of a group + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.BatchApi() + +try: + api_response = api_instance.get_batch_api_group() + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchApi->get_batch_api_group: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIGroup**](UnversionedAPIGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/BatchV1Api.md b/docs/BatchV1Api.md new file mode 100644 index 000000000..e0bbe5380 --- /dev/null +++ b/docs/BatchV1Api.md @@ -0,0 +1,915 @@ +# k8sclient.BatchV1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_batch_v1_namespaced_job**](BatchV1Api.md#create_batch_v1_namespaced_job) | **POST** /apis/batch/v1/namespaces/{namespace}/jobs | +[**delete_batch_v1_collection_namespaced_job**](BatchV1Api.md#delete_batch_v1_collection_namespaced_job) | **DELETE** /apis/batch/v1/namespaces/{namespace}/jobs | +[**delete_batch_v1_namespaced_job**](BatchV1Api.md#delete_batch_v1_namespaced_job) | **DELETE** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | +[**get_batch_v1_api_resources**](BatchV1Api.md#get_batch_v1_api_resources) | **GET** /apis/batch/v1/ | +[**list_batch_v1_job_for_all_namespaces**](BatchV1Api.md#list_batch_v1_job_for_all_namespaces) | **GET** /apis/batch/v1/jobs | +[**list_batch_v1_namespaced_job**](BatchV1Api.md#list_batch_v1_namespaced_job) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs | +[**patch_batch_v1_namespaced_job**](BatchV1Api.md#patch_batch_v1_namespaced_job) | **PATCH** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | +[**patch_batch_v1_namespaced_job_status**](BatchV1Api.md#patch_batch_v1_namespaced_job_status) | **PATCH** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | +[**read_batch_v1_namespaced_job**](BatchV1Api.md#read_batch_v1_namespaced_job) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | +[**read_batch_v1_namespaced_job_status**](BatchV1Api.md#read_batch_v1_namespaced_job_status) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | +[**replace_batch_v1_namespaced_job**](BatchV1Api.md#replace_batch_v1_namespaced_job) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | +[**replace_batch_v1_namespaced_job_status**](BatchV1Api.md#replace_batch_v1_namespaced_job_status) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | +[**watch_batch_v1_job_list_for_all_namespaces**](BatchV1Api.md#watch_batch_v1_job_list_for_all_namespaces) | **GET** /apis/batch/v1/watch/jobs | +[**watch_batch_v1_namespaced_job**](BatchV1Api.md#watch_batch_v1_namespaced_job) | **GET** /apis/batch/v1/watch/namespaces/{namespace}/jobs/{name} | +[**watch_batch_v1_namespaced_job_list**](BatchV1Api.md#watch_batch_v1_namespaced_job_list) | **GET** /apis/batch/v1/watch/namespaces/{namespace}/jobs | + + +# **create_batch_v1_namespaced_job** +> V1Job create_batch_v1_namespaced_job(namespace, body, pretty=pretty) + + + +create a Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.BatchV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1Job() # V1Job | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_batch_v1_namespaced_job(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV1Api->create_batch_v1_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Job**](V1Job.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Job**](V1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_batch_v1_collection_namespaced_job** +> UnversionedStatus delete_batch_v1_collection_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.BatchV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_batch_v1_collection_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV1Api->delete_batch_v1_collection_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_batch_v1_namespaced_job** +> UnversionedStatus delete_batch_v1_namespaced_job(name, namespace, body, pretty=pretty) + + + +delete a Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.BatchV1Api() +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_batch_v1_namespaced_job(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV1Api->delete_batch_v1_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_batch_v1_api_resources** +> UnversionedAPIResourceList get_batch_v1_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.BatchV1Api() + +try: + api_response = api_instance.get_batch_v1_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV1Api->get_batch_v1_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_batch_v1_job_for_all_namespaces** +> V1JobList list_batch_v1_job_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.BatchV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_batch_v1_job_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV1Api->list_batch_v1_job_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1JobList**](V1JobList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_batch_v1_namespaced_job** +> V1JobList list_batch_v1_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.BatchV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_batch_v1_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV1Api->list_batch_v1_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1JobList**](V1JobList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_batch_v1_namespaced_job** +> V1Job patch_batch_v1_namespaced_job(name, namespace, body, pretty=pretty) + + + +partially update the specified Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.BatchV1Api() +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_batch_v1_namespaced_job(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV1Api->patch_batch_v1_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Job**](V1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_batch_v1_namespaced_job_status** +> V1Job patch_batch_v1_namespaced_job_status(name, namespace, body, pretty=pretty) + + + +partially update status of the specified Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.BatchV1Api() +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_batch_v1_namespaced_job_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV1Api->patch_batch_v1_namespaced_job_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Job**](V1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_batch_v1_namespaced_job** +> V1Job read_batch_v1_namespaced_job(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.BatchV1Api() +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_batch_v1_namespaced_job(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV1Api->read_batch_v1_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1Job**](V1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_batch_v1_namespaced_job_status** +> V1Job read_batch_v1_namespaced_job_status(name, namespace, pretty=pretty) + + + +read status of the specified Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.BatchV1Api() +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_batch_v1_namespaced_job_status(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV1Api->read_batch_v1_namespaced_job_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Job**](V1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_batch_v1_namespaced_job** +> V1Job replace_batch_v1_namespaced_job(name, namespace, body, pretty=pretty) + + + +replace the specified Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.BatchV1Api() +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1Job() # V1Job | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_batch_v1_namespaced_job(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV1Api->replace_batch_v1_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Job**](V1Job.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Job**](V1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_batch_v1_namespaced_job_status** +> V1Job replace_batch_v1_namespaced_job_status(name, namespace, body, pretty=pretty) + + + +replace status of the specified Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.BatchV1Api() +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1Job() # V1Job | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_batch_v1_namespaced_job_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV1Api->replace_batch_v1_namespaced_job_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Job**](V1Job.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Job**](V1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_batch_v1_job_list_for_all_namespaces** +> VersionedEvent watch_batch_v1_job_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.BatchV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_batch_v1_job_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV1Api->watch_batch_v1_job_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_batch_v1_namespaced_job** +> VersionedEvent watch_batch_v1_namespaced_job(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.BatchV1Api() +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_batch_v1_namespaced_job(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV1Api->watch_batch_v1_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_batch_v1_namespaced_job_list** +> VersionedEvent watch_batch_v1_namespaced_job_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.BatchV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_batch_v1_namespaced_job_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV1Api->watch_batch_v1_namespaced_job_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/BatchV2alpha1Api.md b/docs/BatchV2alpha1Api.md new file mode 100644 index 000000000..1ad8b53a1 --- /dev/null +++ b/docs/BatchV2alpha1Api.md @@ -0,0 +1,57 @@ +# k8sclient.BatchV2alpha1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_batch_v2alpha1_api_resources**](BatchV2alpha1Api.md#get_batch_v2alpha1_api_resources) | **GET** /apis/batch/v2alpha1/ | + + +# **get_batch_v2alpha1_api_resources** +> UnversionedAPIResourceList get_batch_v2alpha1_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.BatchV2alpha1Api() + +try: + api_response = api_instance.get_batch_v2alpha1_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV2alpha1Api->get_batch_v2alpha1_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/CertificatesApi.md b/docs/CertificatesApi.md new file mode 100644 index 000000000..2967d3db4 --- /dev/null +++ b/docs/CertificatesApi.md @@ -0,0 +1,57 @@ +# k8sclient.CertificatesApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_certificates_api_group**](CertificatesApi.md#get_certificates_api_group) | **GET** /apis/certificates.k8s.io/ | + + +# **get_certificates_api_group** +> UnversionedAPIGroup get_certificates_api_group() + + + +get information of a group + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CertificatesApi() + +try: + api_response = api_instance.get_certificates_api_group() + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesApi->get_certificates_api_group: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIGroup**](UnversionedAPIGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/CertificatesV1alpha1Api.md b/docs/CertificatesV1alpha1Api.md new file mode 100644 index 000000000..a3a05452a --- /dev/null +++ b/docs/CertificatesV1alpha1Api.md @@ -0,0 +1,710 @@ +# k8sclient.CertificatesV1alpha1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_certificates_v1alpha1_certificate_signing_request**](CertificatesV1alpha1Api.md#create_certificates_v1alpha1_certificate_signing_request) | **POST** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests | +[**delete_certificates_v1alpha1_certificate_signing_request**](CertificatesV1alpha1Api.md#delete_certificates_v1alpha1_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | +[**delete_certificates_v1alpha1_collection_certificate_signing_request**](CertificatesV1alpha1Api.md#delete_certificates_v1alpha1_collection_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests | +[**get_certificates_v1alpha1_api_resources**](CertificatesV1alpha1Api.md#get_certificates_v1alpha1_api_resources) | **GET** /apis/certificates.k8s.io/v1alpha1/ | +[**list_certificates_v1alpha1_certificate_signing_request**](CertificatesV1alpha1Api.md#list_certificates_v1alpha1_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests | +[**patch_certificates_v1alpha1_certificate_signing_request**](CertificatesV1alpha1Api.md#patch_certificates_v1alpha1_certificate_signing_request) | **PATCH** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | +[**read_certificates_v1alpha1_certificate_signing_request**](CertificatesV1alpha1Api.md#read_certificates_v1alpha1_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | +[**replace_certificates_v1alpha1_certificate_signing_request**](CertificatesV1alpha1Api.md#replace_certificates_v1alpha1_certificate_signing_request) | **PUT** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | +[**replace_certificates_v1alpha1_certificate_signing_request_approval**](CertificatesV1alpha1Api.md#replace_certificates_v1alpha1_certificate_signing_request_approval) | **PUT** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/approval | +[**replace_certificates_v1alpha1_certificate_signing_request_status**](CertificatesV1alpha1Api.md#replace_certificates_v1alpha1_certificate_signing_request_status) | **PUT** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/status | +[**watch_certificates_v1alpha1_certificate_signing_request**](CertificatesV1alpha1Api.md#watch_certificates_v1alpha1_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1alpha1/watch/certificatesigningrequests/{name} | +[**watch_certificates_v1alpha1_certificate_signing_request_list**](CertificatesV1alpha1Api.md#watch_certificates_v1alpha1_certificate_signing_request_list) | **GET** /apis/certificates.k8s.io/v1alpha1/watch/certificatesigningrequests | + + +# **create_certificates_v1alpha1_certificate_signing_request** +> V1alpha1CertificateSigningRequest create_certificates_v1alpha1_certificate_signing_request(body, pretty=pretty) + + + +create a CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CertificatesV1alpha1Api() +body = k8sclient.V1alpha1CertificateSigningRequest() # V1alpha1CertificateSigningRequest | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_certificates_v1alpha1_certificate_signing_request(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->create_certificates_v1alpha1_certificate_signing_request: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_certificates_v1alpha1_certificate_signing_request** +> UnversionedStatus delete_certificates_v1alpha1_certificate_signing_request(name, body, pretty=pretty) + + + +delete a CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CertificatesV1alpha1Api() +name = 'name_example' # str | name of the CertificateSigningRequest +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_certificates_v1alpha1_certificate_signing_request(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->delete_certificates_v1alpha1_certificate_signing_request: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_certificates_v1alpha1_collection_certificate_signing_request** +> UnversionedStatus delete_certificates_v1alpha1_collection_certificate_signing_request(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CertificatesV1alpha1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_certificates_v1alpha1_collection_certificate_signing_request(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->delete_certificates_v1alpha1_collection_certificate_signing_request: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_certificates_v1alpha1_api_resources** +> UnversionedAPIResourceList get_certificates_v1alpha1_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CertificatesV1alpha1Api() + +try: + api_response = api_instance.get_certificates_v1alpha1_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->get_certificates_v1alpha1_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_certificates_v1alpha1_certificate_signing_request** +> V1alpha1CertificateSigningRequestList list_certificates_v1alpha1_certificate_signing_request(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CertificatesV1alpha1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_certificates_v1alpha1_certificate_signing_request(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->list_certificates_v1alpha1_certificate_signing_request: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1CertificateSigningRequestList**](V1alpha1CertificateSigningRequestList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_certificates_v1alpha1_certificate_signing_request** +> V1alpha1CertificateSigningRequest patch_certificates_v1alpha1_certificate_signing_request(name, body, pretty=pretty) + + + +partially update the specified CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CertificatesV1alpha1Api() +name = 'name_example' # str | name of the CertificateSigningRequest +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_certificates_v1alpha1_certificate_signing_request(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->patch_certificates_v1alpha1_certificate_signing_request: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_certificates_v1alpha1_certificate_signing_request** +> V1alpha1CertificateSigningRequest read_certificates_v1alpha1_certificate_signing_request(name, pretty=pretty, exact=exact, export=export) + + + +read the specified CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CertificatesV1alpha1Api() +name = 'name_example' # str | name of the CertificateSigningRequest +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_certificates_v1alpha1_certificate_signing_request(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->read_certificates_v1alpha1_certificate_signing_request: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_certificates_v1alpha1_certificate_signing_request** +> V1alpha1CertificateSigningRequest replace_certificates_v1alpha1_certificate_signing_request(name, body, pretty=pretty) + + + +replace the specified CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CertificatesV1alpha1Api() +name = 'name_example' # str | name of the CertificateSigningRequest +body = k8sclient.V1alpha1CertificateSigningRequest() # V1alpha1CertificateSigningRequest | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_certificates_v1alpha1_certificate_signing_request(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->replace_certificates_v1alpha1_certificate_signing_request: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | + **body** | [**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_certificates_v1alpha1_certificate_signing_request_approval** +> V1alpha1CertificateSigningRequest replace_certificates_v1alpha1_certificate_signing_request_approval(body, name, pretty=pretty) + + + +replace approval of the specified CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CertificatesV1alpha1Api() +body = k8sclient.V1alpha1CertificateSigningRequest() # V1alpha1CertificateSigningRequest | +name = 'name_example' # str | name of the CertificateSigningRequest +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_certificates_v1alpha1_certificate_signing_request_approval(body, name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->replace_certificates_v1alpha1_certificate_signing_request_approval: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md)| | + **name** | **str**| name of the CertificateSigningRequest | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_certificates_v1alpha1_certificate_signing_request_status** +> V1alpha1CertificateSigningRequest replace_certificates_v1alpha1_certificate_signing_request_status(body, name, pretty=pretty) + + + +replace status of the specified CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CertificatesV1alpha1Api() +body = k8sclient.V1alpha1CertificateSigningRequest() # V1alpha1CertificateSigningRequest | +name = 'name_example' # str | name of the CertificateSigningRequest +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_certificates_v1alpha1_certificate_signing_request_status(body, name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->replace_certificates_v1alpha1_certificate_signing_request_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md)| | + **name** | **str**| name of the CertificateSigningRequest | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_certificates_v1alpha1_certificate_signing_request** +> VersionedEvent watch_certificates_v1alpha1_certificate_signing_request(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CertificatesV1alpha1Api() +name = 'name_example' # str | name of the CertificateSigningRequest +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_certificates_v1alpha1_certificate_signing_request(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->watch_certificates_v1alpha1_certificate_signing_request: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_certificates_v1alpha1_certificate_signing_request_list** +> VersionedEvent watch_certificates_v1alpha1_certificate_signing_request_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CertificatesV1alpha1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_certificates_v1alpha1_certificate_signing_request_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->watch_certificates_v1alpha1_certificate_signing_request_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/CoreApi.md b/docs/CoreApi.md new file mode 100644 index 000000000..5dd971921 --- /dev/null +++ b/docs/CoreApi.md @@ -0,0 +1,57 @@ +# k8sclient.CoreApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_core_api_versions**](CoreApi.md#get_core_api_versions) | **GET** /api/ | + + +# **get_core_api_versions** +> UnversionedAPIVersions get_core_api_versions() + + + +get available API versions + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreApi() + +try: + api_response = api_instance.get_core_api_versions() + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreApi->get_core_api_versions: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIVersions**](UnversionedAPIVersions.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/CoreV1Api.md b/docs/CoreV1Api.md new file mode 100644 index 000000000..b9dca1a13 --- /dev/null +++ b/docs/CoreV1Api.md @@ -0,0 +1,16213 @@ +# k8sclient.CoreV1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**connect_core_v1_delete_namespaced_pod_proxy**](CoreV1Api.md#connect_core_v1_delete_namespaced_pod_proxy) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name}/proxy | +[**connect_core_v1_delete_namespaced_pod_proxy_with_path**](CoreV1Api.md#connect_core_v1_delete_namespaced_pod_proxy_with_path) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | +[**connect_core_v1_delete_namespaced_service_proxy**](CoreV1Api.md#connect_core_v1_delete_namespaced_service_proxy) | **DELETE** /api/v1/namespaces/{namespace}/services/{name}/proxy | +[**connect_core_v1_delete_namespaced_service_proxy_with_path**](CoreV1Api.md#connect_core_v1_delete_namespaced_service_proxy_with_path) | **DELETE** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | +[**connect_core_v1_delete_node_proxy**](CoreV1Api.md#connect_core_v1_delete_node_proxy) | **DELETE** /api/v1/nodes/{name}/proxy | +[**connect_core_v1_delete_node_proxy_with_path**](CoreV1Api.md#connect_core_v1_delete_node_proxy_with_path) | **DELETE** /api/v1/nodes/{name}/proxy/{path} | +[**connect_core_v1_get_namespaced_pod_attach**](CoreV1Api.md#connect_core_v1_get_namespaced_pod_attach) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/attach | +[**connect_core_v1_get_namespaced_pod_exec**](CoreV1Api.md#connect_core_v1_get_namespaced_pod_exec) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/exec | +[**connect_core_v1_get_namespaced_pod_portforward**](CoreV1Api.md#connect_core_v1_get_namespaced_pod_portforward) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/portforward | +[**connect_core_v1_get_namespaced_pod_proxy**](CoreV1Api.md#connect_core_v1_get_namespaced_pod_proxy) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/proxy | +[**connect_core_v1_get_namespaced_pod_proxy_with_path**](CoreV1Api.md#connect_core_v1_get_namespaced_pod_proxy_with_path) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | +[**connect_core_v1_get_namespaced_service_proxy**](CoreV1Api.md#connect_core_v1_get_namespaced_service_proxy) | **GET** /api/v1/namespaces/{namespace}/services/{name}/proxy | +[**connect_core_v1_get_namespaced_service_proxy_with_path**](CoreV1Api.md#connect_core_v1_get_namespaced_service_proxy_with_path) | **GET** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | +[**connect_core_v1_get_node_proxy**](CoreV1Api.md#connect_core_v1_get_node_proxy) | **GET** /api/v1/nodes/{name}/proxy | +[**connect_core_v1_get_node_proxy_with_path**](CoreV1Api.md#connect_core_v1_get_node_proxy_with_path) | **GET** /api/v1/nodes/{name}/proxy/{path} | +[**connect_core_v1_head_namespaced_pod_proxy**](CoreV1Api.md#connect_core_v1_head_namespaced_pod_proxy) | **HEAD** /api/v1/namespaces/{namespace}/pods/{name}/proxy | +[**connect_core_v1_head_namespaced_pod_proxy_with_path**](CoreV1Api.md#connect_core_v1_head_namespaced_pod_proxy_with_path) | **HEAD** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | +[**connect_core_v1_head_namespaced_service_proxy**](CoreV1Api.md#connect_core_v1_head_namespaced_service_proxy) | **HEAD** /api/v1/namespaces/{namespace}/services/{name}/proxy | +[**connect_core_v1_head_namespaced_service_proxy_with_path**](CoreV1Api.md#connect_core_v1_head_namespaced_service_proxy_with_path) | **HEAD** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | +[**connect_core_v1_head_node_proxy**](CoreV1Api.md#connect_core_v1_head_node_proxy) | **HEAD** /api/v1/nodes/{name}/proxy | +[**connect_core_v1_head_node_proxy_with_path**](CoreV1Api.md#connect_core_v1_head_node_proxy_with_path) | **HEAD** /api/v1/nodes/{name}/proxy/{path} | +[**connect_core_v1_options_namespaced_pod_proxy**](CoreV1Api.md#connect_core_v1_options_namespaced_pod_proxy) | **OPTIONS** /api/v1/namespaces/{namespace}/pods/{name}/proxy | +[**connect_core_v1_options_namespaced_pod_proxy_with_path**](CoreV1Api.md#connect_core_v1_options_namespaced_pod_proxy_with_path) | **OPTIONS** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | +[**connect_core_v1_options_namespaced_service_proxy**](CoreV1Api.md#connect_core_v1_options_namespaced_service_proxy) | **OPTIONS** /api/v1/namespaces/{namespace}/services/{name}/proxy | +[**connect_core_v1_options_namespaced_service_proxy_with_path**](CoreV1Api.md#connect_core_v1_options_namespaced_service_proxy_with_path) | **OPTIONS** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | +[**connect_core_v1_options_node_proxy**](CoreV1Api.md#connect_core_v1_options_node_proxy) | **OPTIONS** /api/v1/nodes/{name}/proxy | +[**connect_core_v1_options_node_proxy_with_path**](CoreV1Api.md#connect_core_v1_options_node_proxy_with_path) | **OPTIONS** /api/v1/nodes/{name}/proxy/{path} | +[**connect_core_v1_post_namespaced_pod_attach**](CoreV1Api.md#connect_core_v1_post_namespaced_pod_attach) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/attach | +[**connect_core_v1_post_namespaced_pod_exec**](CoreV1Api.md#connect_core_v1_post_namespaced_pod_exec) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/exec | +[**connect_core_v1_post_namespaced_pod_portforward**](CoreV1Api.md#connect_core_v1_post_namespaced_pod_portforward) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/portforward | +[**connect_core_v1_post_namespaced_pod_proxy**](CoreV1Api.md#connect_core_v1_post_namespaced_pod_proxy) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/proxy | +[**connect_core_v1_post_namespaced_pod_proxy_with_path**](CoreV1Api.md#connect_core_v1_post_namespaced_pod_proxy_with_path) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | +[**connect_core_v1_post_namespaced_service_proxy**](CoreV1Api.md#connect_core_v1_post_namespaced_service_proxy) | **POST** /api/v1/namespaces/{namespace}/services/{name}/proxy | +[**connect_core_v1_post_namespaced_service_proxy_with_path**](CoreV1Api.md#connect_core_v1_post_namespaced_service_proxy_with_path) | **POST** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | +[**connect_core_v1_post_node_proxy**](CoreV1Api.md#connect_core_v1_post_node_proxy) | **POST** /api/v1/nodes/{name}/proxy | +[**connect_core_v1_post_node_proxy_with_path**](CoreV1Api.md#connect_core_v1_post_node_proxy_with_path) | **POST** /api/v1/nodes/{name}/proxy/{path} | +[**connect_core_v1_put_namespaced_pod_proxy**](CoreV1Api.md#connect_core_v1_put_namespaced_pod_proxy) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/proxy | +[**connect_core_v1_put_namespaced_pod_proxy_with_path**](CoreV1Api.md#connect_core_v1_put_namespaced_pod_proxy_with_path) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | +[**connect_core_v1_put_namespaced_service_proxy**](CoreV1Api.md#connect_core_v1_put_namespaced_service_proxy) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/proxy | +[**connect_core_v1_put_namespaced_service_proxy_with_path**](CoreV1Api.md#connect_core_v1_put_namespaced_service_proxy_with_path) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | +[**connect_core_v1_put_node_proxy**](CoreV1Api.md#connect_core_v1_put_node_proxy) | **PUT** /api/v1/nodes/{name}/proxy | +[**connect_core_v1_put_node_proxy_with_path**](CoreV1Api.md#connect_core_v1_put_node_proxy_with_path) | **PUT** /api/v1/nodes/{name}/proxy/{path} | +[**create_core_v1_namespace**](CoreV1Api.md#create_core_v1_namespace) | **POST** /api/v1/namespaces | +[**create_core_v1_namespaced_binding**](CoreV1Api.md#create_core_v1_namespaced_binding) | **POST** /api/v1/namespaces/{namespace}/bindings | +[**create_core_v1_namespaced_binding_binding**](CoreV1Api.md#create_core_v1_namespaced_binding_binding) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/binding | +[**create_core_v1_namespaced_config_map**](CoreV1Api.md#create_core_v1_namespaced_config_map) | **POST** /api/v1/namespaces/{namespace}/configmaps | +[**create_core_v1_namespaced_endpoints**](CoreV1Api.md#create_core_v1_namespaced_endpoints) | **POST** /api/v1/namespaces/{namespace}/endpoints | +[**create_core_v1_namespaced_event**](CoreV1Api.md#create_core_v1_namespaced_event) | **POST** /api/v1/namespaces/{namespace}/events | +[**create_core_v1_namespaced_eviction_eviction**](CoreV1Api.md#create_core_v1_namespaced_eviction_eviction) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/eviction | +[**create_core_v1_namespaced_limit_range**](CoreV1Api.md#create_core_v1_namespaced_limit_range) | **POST** /api/v1/namespaces/{namespace}/limitranges | +[**create_core_v1_namespaced_persistent_volume_claim**](CoreV1Api.md#create_core_v1_namespaced_persistent_volume_claim) | **POST** /api/v1/namespaces/{namespace}/persistentvolumeclaims | +[**create_core_v1_namespaced_pod**](CoreV1Api.md#create_core_v1_namespaced_pod) | **POST** /api/v1/namespaces/{namespace}/pods | +[**create_core_v1_namespaced_pod_template**](CoreV1Api.md#create_core_v1_namespaced_pod_template) | **POST** /api/v1/namespaces/{namespace}/podtemplates | +[**create_core_v1_namespaced_replication_controller**](CoreV1Api.md#create_core_v1_namespaced_replication_controller) | **POST** /api/v1/namespaces/{namespace}/replicationcontrollers | +[**create_core_v1_namespaced_resource_quota**](CoreV1Api.md#create_core_v1_namespaced_resource_quota) | **POST** /api/v1/namespaces/{namespace}/resourcequotas | +[**create_core_v1_namespaced_secret**](CoreV1Api.md#create_core_v1_namespaced_secret) | **POST** /api/v1/namespaces/{namespace}/secrets | +[**create_core_v1_namespaced_service**](CoreV1Api.md#create_core_v1_namespaced_service) | **POST** /api/v1/namespaces/{namespace}/services | +[**create_core_v1_namespaced_service_account**](CoreV1Api.md#create_core_v1_namespaced_service_account) | **POST** /api/v1/namespaces/{namespace}/serviceaccounts | +[**create_core_v1_node**](CoreV1Api.md#create_core_v1_node) | **POST** /api/v1/nodes | +[**create_core_v1_persistent_volume**](CoreV1Api.md#create_core_v1_persistent_volume) | **POST** /api/v1/persistentvolumes | +[**delete_core_v1_collection_namespace**](CoreV1Api.md#delete_core_v1_collection_namespace) | **DELETE** /api/v1/namespaces | +[**delete_core_v1_collection_namespaced_config_map**](CoreV1Api.md#delete_core_v1_collection_namespaced_config_map) | **DELETE** /api/v1/namespaces/{namespace}/configmaps | +[**delete_core_v1_collection_namespaced_endpoints**](CoreV1Api.md#delete_core_v1_collection_namespaced_endpoints) | **DELETE** /api/v1/namespaces/{namespace}/endpoints | +[**delete_core_v1_collection_namespaced_event**](CoreV1Api.md#delete_core_v1_collection_namespaced_event) | **DELETE** /api/v1/namespaces/{namespace}/events | +[**delete_core_v1_collection_namespaced_limit_range**](CoreV1Api.md#delete_core_v1_collection_namespaced_limit_range) | **DELETE** /api/v1/namespaces/{namespace}/limitranges | +[**delete_core_v1_collection_namespaced_persistent_volume_claim**](CoreV1Api.md#delete_core_v1_collection_namespaced_persistent_volume_claim) | **DELETE** /api/v1/namespaces/{namespace}/persistentvolumeclaims | +[**delete_core_v1_collection_namespaced_pod**](CoreV1Api.md#delete_core_v1_collection_namespaced_pod) | **DELETE** /api/v1/namespaces/{namespace}/pods | +[**delete_core_v1_collection_namespaced_pod_template**](CoreV1Api.md#delete_core_v1_collection_namespaced_pod_template) | **DELETE** /api/v1/namespaces/{namespace}/podtemplates | +[**delete_core_v1_collection_namespaced_replication_controller**](CoreV1Api.md#delete_core_v1_collection_namespaced_replication_controller) | **DELETE** /api/v1/namespaces/{namespace}/replicationcontrollers | +[**delete_core_v1_collection_namespaced_resource_quota**](CoreV1Api.md#delete_core_v1_collection_namespaced_resource_quota) | **DELETE** /api/v1/namespaces/{namespace}/resourcequotas | +[**delete_core_v1_collection_namespaced_secret**](CoreV1Api.md#delete_core_v1_collection_namespaced_secret) | **DELETE** /api/v1/namespaces/{namespace}/secrets | +[**delete_core_v1_collection_namespaced_service_account**](CoreV1Api.md#delete_core_v1_collection_namespaced_service_account) | **DELETE** /api/v1/namespaces/{namespace}/serviceaccounts | +[**delete_core_v1_collection_node**](CoreV1Api.md#delete_core_v1_collection_node) | **DELETE** /api/v1/nodes | +[**delete_core_v1_collection_persistent_volume**](CoreV1Api.md#delete_core_v1_collection_persistent_volume) | **DELETE** /api/v1/persistentvolumes | +[**delete_core_v1_namespace**](CoreV1Api.md#delete_core_v1_namespace) | **DELETE** /api/v1/namespaces/{name} | +[**delete_core_v1_namespaced_config_map**](CoreV1Api.md#delete_core_v1_namespaced_config_map) | **DELETE** /api/v1/namespaces/{namespace}/configmaps/{name} | +[**delete_core_v1_namespaced_endpoints**](CoreV1Api.md#delete_core_v1_namespaced_endpoints) | **DELETE** /api/v1/namespaces/{namespace}/endpoints/{name} | +[**delete_core_v1_namespaced_event**](CoreV1Api.md#delete_core_v1_namespaced_event) | **DELETE** /api/v1/namespaces/{namespace}/events/{name} | +[**delete_core_v1_namespaced_limit_range**](CoreV1Api.md#delete_core_v1_namespaced_limit_range) | **DELETE** /api/v1/namespaces/{namespace}/limitranges/{name} | +[**delete_core_v1_namespaced_persistent_volume_claim**](CoreV1Api.md#delete_core_v1_namespaced_persistent_volume_claim) | **DELETE** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | +[**delete_core_v1_namespaced_pod**](CoreV1Api.md#delete_core_v1_namespaced_pod) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name} | +[**delete_core_v1_namespaced_pod_template**](CoreV1Api.md#delete_core_v1_namespaced_pod_template) | **DELETE** /api/v1/namespaces/{namespace}/podtemplates/{name} | +[**delete_core_v1_namespaced_replication_controller**](CoreV1Api.md#delete_core_v1_namespaced_replication_controller) | **DELETE** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | +[**delete_core_v1_namespaced_resource_quota**](CoreV1Api.md#delete_core_v1_namespaced_resource_quota) | **DELETE** /api/v1/namespaces/{namespace}/resourcequotas/{name} | +[**delete_core_v1_namespaced_secret**](CoreV1Api.md#delete_core_v1_namespaced_secret) | **DELETE** /api/v1/namespaces/{namespace}/secrets/{name} | +[**delete_core_v1_namespaced_service**](CoreV1Api.md#delete_core_v1_namespaced_service) | **DELETE** /api/v1/namespaces/{namespace}/services/{name} | +[**delete_core_v1_namespaced_service_account**](CoreV1Api.md#delete_core_v1_namespaced_service_account) | **DELETE** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | +[**delete_core_v1_node**](CoreV1Api.md#delete_core_v1_node) | **DELETE** /api/v1/nodes/{name} | +[**delete_core_v1_persistent_volume**](CoreV1Api.md#delete_core_v1_persistent_volume) | **DELETE** /api/v1/persistentvolumes/{name} | +[**get_core_v1_api_resources**](CoreV1Api.md#get_core_v1_api_resources) | **GET** /api/v1/ | +[**list_core_v1_component_status**](CoreV1Api.md#list_core_v1_component_status) | **GET** /api/v1/componentstatuses | +[**list_core_v1_config_map_for_all_namespaces**](CoreV1Api.md#list_core_v1_config_map_for_all_namespaces) | **GET** /api/v1/configmaps | +[**list_core_v1_endpoints_for_all_namespaces**](CoreV1Api.md#list_core_v1_endpoints_for_all_namespaces) | **GET** /api/v1/endpoints | +[**list_core_v1_event_for_all_namespaces**](CoreV1Api.md#list_core_v1_event_for_all_namespaces) | **GET** /api/v1/events | +[**list_core_v1_limit_range_for_all_namespaces**](CoreV1Api.md#list_core_v1_limit_range_for_all_namespaces) | **GET** /api/v1/limitranges | +[**list_core_v1_namespace**](CoreV1Api.md#list_core_v1_namespace) | **GET** /api/v1/namespaces | +[**list_core_v1_namespaced_config_map**](CoreV1Api.md#list_core_v1_namespaced_config_map) | **GET** /api/v1/namespaces/{namespace}/configmaps | +[**list_core_v1_namespaced_endpoints**](CoreV1Api.md#list_core_v1_namespaced_endpoints) | **GET** /api/v1/namespaces/{namespace}/endpoints | +[**list_core_v1_namespaced_event**](CoreV1Api.md#list_core_v1_namespaced_event) | **GET** /api/v1/namespaces/{namespace}/events | +[**list_core_v1_namespaced_limit_range**](CoreV1Api.md#list_core_v1_namespaced_limit_range) | **GET** /api/v1/namespaces/{namespace}/limitranges | +[**list_core_v1_namespaced_persistent_volume_claim**](CoreV1Api.md#list_core_v1_namespaced_persistent_volume_claim) | **GET** /api/v1/namespaces/{namespace}/persistentvolumeclaims | +[**list_core_v1_namespaced_pod**](CoreV1Api.md#list_core_v1_namespaced_pod) | **GET** /api/v1/namespaces/{namespace}/pods | +[**list_core_v1_namespaced_pod_template**](CoreV1Api.md#list_core_v1_namespaced_pod_template) | **GET** /api/v1/namespaces/{namespace}/podtemplates | +[**list_core_v1_namespaced_replication_controller**](CoreV1Api.md#list_core_v1_namespaced_replication_controller) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers | +[**list_core_v1_namespaced_resource_quota**](CoreV1Api.md#list_core_v1_namespaced_resource_quota) | **GET** /api/v1/namespaces/{namespace}/resourcequotas | +[**list_core_v1_namespaced_secret**](CoreV1Api.md#list_core_v1_namespaced_secret) | **GET** /api/v1/namespaces/{namespace}/secrets | +[**list_core_v1_namespaced_service**](CoreV1Api.md#list_core_v1_namespaced_service) | **GET** /api/v1/namespaces/{namespace}/services | +[**list_core_v1_namespaced_service_account**](CoreV1Api.md#list_core_v1_namespaced_service_account) | **GET** /api/v1/namespaces/{namespace}/serviceaccounts | +[**list_core_v1_node**](CoreV1Api.md#list_core_v1_node) | **GET** /api/v1/nodes | +[**list_core_v1_persistent_volume**](CoreV1Api.md#list_core_v1_persistent_volume) | **GET** /api/v1/persistentvolumes | +[**list_core_v1_persistent_volume_claim_for_all_namespaces**](CoreV1Api.md#list_core_v1_persistent_volume_claim_for_all_namespaces) | **GET** /api/v1/persistentvolumeclaims | +[**list_core_v1_pod_for_all_namespaces**](CoreV1Api.md#list_core_v1_pod_for_all_namespaces) | **GET** /api/v1/pods | +[**list_core_v1_pod_template_for_all_namespaces**](CoreV1Api.md#list_core_v1_pod_template_for_all_namespaces) | **GET** /api/v1/podtemplates | +[**list_core_v1_replication_controller_for_all_namespaces**](CoreV1Api.md#list_core_v1_replication_controller_for_all_namespaces) | **GET** /api/v1/replicationcontrollers | +[**list_core_v1_resource_quota_for_all_namespaces**](CoreV1Api.md#list_core_v1_resource_quota_for_all_namespaces) | **GET** /api/v1/resourcequotas | +[**list_core_v1_secret_for_all_namespaces**](CoreV1Api.md#list_core_v1_secret_for_all_namespaces) | **GET** /api/v1/secrets | +[**list_core_v1_service_account_for_all_namespaces**](CoreV1Api.md#list_core_v1_service_account_for_all_namespaces) | **GET** /api/v1/serviceaccounts | +[**list_core_v1_service_for_all_namespaces**](CoreV1Api.md#list_core_v1_service_for_all_namespaces) | **GET** /api/v1/services | +[**patch_core_v1_namespace**](CoreV1Api.md#patch_core_v1_namespace) | **PATCH** /api/v1/namespaces/{name} | +[**patch_core_v1_namespace_status**](CoreV1Api.md#patch_core_v1_namespace_status) | **PATCH** /api/v1/namespaces/{name}/status | +[**patch_core_v1_namespaced_config_map**](CoreV1Api.md#patch_core_v1_namespaced_config_map) | **PATCH** /api/v1/namespaces/{namespace}/configmaps/{name} | +[**patch_core_v1_namespaced_endpoints**](CoreV1Api.md#patch_core_v1_namespaced_endpoints) | **PATCH** /api/v1/namespaces/{namespace}/endpoints/{name} | +[**patch_core_v1_namespaced_event**](CoreV1Api.md#patch_core_v1_namespaced_event) | **PATCH** /api/v1/namespaces/{namespace}/events/{name} | +[**patch_core_v1_namespaced_limit_range**](CoreV1Api.md#patch_core_v1_namespaced_limit_range) | **PATCH** /api/v1/namespaces/{namespace}/limitranges/{name} | +[**patch_core_v1_namespaced_persistent_volume_claim**](CoreV1Api.md#patch_core_v1_namespaced_persistent_volume_claim) | **PATCH** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | +[**patch_core_v1_namespaced_persistent_volume_claim_status**](CoreV1Api.md#patch_core_v1_namespaced_persistent_volume_claim_status) | **PATCH** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | +[**patch_core_v1_namespaced_pod**](CoreV1Api.md#patch_core_v1_namespaced_pod) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name} | +[**patch_core_v1_namespaced_pod_status**](CoreV1Api.md#patch_core_v1_namespaced_pod_status) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name}/status | +[**patch_core_v1_namespaced_pod_template**](CoreV1Api.md#patch_core_v1_namespaced_pod_template) | **PATCH** /api/v1/namespaces/{namespace}/podtemplates/{name} | +[**patch_core_v1_namespaced_replication_controller**](CoreV1Api.md#patch_core_v1_namespaced_replication_controller) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | +[**patch_core_v1_namespaced_replication_controller_status**](CoreV1Api.md#patch_core_v1_namespaced_replication_controller_status) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | +[**patch_core_v1_namespaced_resource_quota**](CoreV1Api.md#patch_core_v1_namespaced_resource_quota) | **PATCH** /api/v1/namespaces/{namespace}/resourcequotas/{name} | +[**patch_core_v1_namespaced_resource_quota_status**](CoreV1Api.md#patch_core_v1_namespaced_resource_quota_status) | **PATCH** /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | +[**patch_core_v1_namespaced_scale_scale**](CoreV1Api.md#patch_core_v1_namespaced_scale_scale) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | +[**patch_core_v1_namespaced_secret**](CoreV1Api.md#patch_core_v1_namespaced_secret) | **PATCH** /api/v1/namespaces/{namespace}/secrets/{name} | +[**patch_core_v1_namespaced_service**](CoreV1Api.md#patch_core_v1_namespaced_service) | **PATCH** /api/v1/namespaces/{namespace}/services/{name} | +[**patch_core_v1_namespaced_service_account**](CoreV1Api.md#patch_core_v1_namespaced_service_account) | **PATCH** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | +[**patch_core_v1_namespaced_service_status**](CoreV1Api.md#patch_core_v1_namespaced_service_status) | **PATCH** /api/v1/namespaces/{namespace}/services/{name}/status | +[**patch_core_v1_node**](CoreV1Api.md#patch_core_v1_node) | **PATCH** /api/v1/nodes/{name} | +[**patch_core_v1_node_status**](CoreV1Api.md#patch_core_v1_node_status) | **PATCH** /api/v1/nodes/{name}/status | +[**patch_core_v1_persistent_volume**](CoreV1Api.md#patch_core_v1_persistent_volume) | **PATCH** /api/v1/persistentvolumes/{name} | +[**patch_core_v1_persistent_volume_status**](CoreV1Api.md#patch_core_v1_persistent_volume_status) | **PATCH** /api/v1/persistentvolumes/{name}/status | +[**proxy_core_v1_delete_namespaced_pod**](CoreV1Api.md#proxy_core_v1_delete_namespaced_pod) | **DELETE** /api/v1/proxy/namespaces/{namespace}/pods/{name} | +[**proxy_core_v1_delete_namespaced_pod_with_path**](CoreV1Api.md#proxy_core_v1_delete_namespaced_pod_with_path) | **DELETE** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | +[**proxy_core_v1_delete_namespaced_service**](CoreV1Api.md#proxy_core_v1_delete_namespaced_service) | **DELETE** /api/v1/proxy/namespaces/{namespace}/services/{name} | +[**proxy_core_v1_delete_namespaced_service_with_path**](CoreV1Api.md#proxy_core_v1_delete_namespaced_service_with_path) | **DELETE** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | +[**proxy_core_v1_delete_node**](CoreV1Api.md#proxy_core_v1_delete_node) | **DELETE** /api/v1/proxy/nodes/{name} | +[**proxy_core_v1_delete_node_with_path**](CoreV1Api.md#proxy_core_v1_delete_node_with_path) | **DELETE** /api/v1/proxy/nodes/{name}/{path} | +[**proxy_core_v1_get_namespaced_pod**](CoreV1Api.md#proxy_core_v1_get_namespaced_pod) | **GET** /api/v1/proxy/namespaces/{namespace}/pods/{name} | +[**proxy_core_v1_get_namespaced_pod_with_path**](CoreV1Api.md#proxy_core_v1_get_namespaced_pod_with_path) | **GET** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | +[**proxy_core_v1_get_namespaced_service**](CoreV1Api.md#proxy_core_v1_get_namespaced_service) | **GET** /api/v1/proxy/namespaces/{namespace}/services/{name} | +[**proxy_core_v1_get_namespaced_service_with_path**](CoreV1Api.md#proxy_core_v1_get_namespaced_service_with_path) | **GET** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | +[**proxy_core_v1_get_node**](CoreV1Api.md#proxy_core_v1_get_node) | **GET** /api/v1/proxy/nodes/{name} | +[**proxy_core_v1_get_node_with_path**](CoreV1Api.md#proxy_core_v1_get_node_with_path) | **GET** /api/v1/proxy/nodes/{name}/{path} | +[**proxy_core_v1_head_namespaced_pod**](CoreV1Api.md#proxy_core_v1_head_namespaced_pod) | **HEAD** /api/v1/proxy/namespaces/{namespace}/pods/{name} | +[**proxy_core_v1_head_namespaced_pod_with_path**](CoreV1Api.md#proxy_core_v1_head_namespaced_pod_with_path) | **HEAD** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | +[**proxy_core_v1_head_namespaced_service**](CoreV1Api.md#proxy_core_v1_head_namespaced_service) | **HEAD** /api/v1/proxy/namespaces/{namespace}/services/{name} | +[**proxy_core_v1_head_namespaced_service_with_path**](CoreV1Api.md#proxy_core_v1_head_namespaced_service_with_path) | **HEAD** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | +[**proxy_core_v1_head_node**](CoreV1Api.md#proxy_core_v1_head_node) | **HEAD** /api/v1/proxy/nodes/{name} | +[**proxy_core_v1_head_node_with_path**](CoreV1Api.md#proxy_core_v1_head_node_with_path) | **HEAD** /api/v1/proxy/nodes/{name}/{path} | +[**proxy_core_v1_options_namespaced_pod**](CoreV1Api.md#proxy_core_v1_options_namespaced_pod) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/pods/{name} | +[**proxy_core_v1_options_namespaced_pod_with_path**](CoreV1Api.md#proxy_core_v1_options_namespaced_pod_with_path) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | +[**proxy_core_v1_options_namespaced_service**](CoreV1Api.md#proxy_core_v1_options_namespaced_service) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/services/{name} | +[**proxy_core_v1_options_namespaced_service_with_path**](CoreV1Api.md#proxy_core_v1_options_namespaced_service_with_path) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | +[**proxy_core_v1_options_node**](CoreV1Api.md#proxy_core_v1_options_node) | **OPTIONS** /api/v1/proxy/nodes/{name} | +[**proxy_core_v1_options_node_with_path**](CoreV1Api.md#proxy_core_v1_options_node_with_path) | **OPTIONS** /api/v1/proxy/nodes/{name}/{path} | +[**proxy_core_v1_post_namespaced_pod**](CoreV1Api.md#proxy_core_v1_post_namespaced_pod) | **POST** /api/v1/proxy/namespaces/{namespace}/pods/{name} | +[**proxy_core_v1_post_namespaced_pod_with_path**](CoreV1Api.md#proxy_core_v1_post_namespaced_pod_with_path) | **POST** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | +[**proxy_core_v1_post_namespaced_service**](CoreV1Api.md#proxy_core_v1_post_namespaced_service) | **POST** /api/v1/proxy/namespaces/{namespace}/services/{name} | +[**proxy_core_v1_post_namespaced_service_with_path**](CoreV1Api.md#proxy_core_v1_post_namespaced_service_with_path) | **POST** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | +[**proxy_core_v1_post_node**](CoreV1Api.md#proxy_core_v1_post_node) | **POST** /api/v1/proxy/nodes/{name} | +[**proxy_core_v1_post_node_with_path**](CoreV1Api.md#proxy_core_v1_post_node_with_path) | **POST** /api/v1/proxy/nodes/{name}/{path} | +[**proxy_core_v1_put_namespaced_pod**](CoreV1Api.md#proxy_core_v1_put_namespaced_pod) | **PUT** /api/v1/proxy/namespaces/{namespace}/pods/{name} | +[**proxy_core_v1_put_namespaced_pod_with_path**](CoreV1Api.md#proxy_core_v1_put_namespaced_pod_with_path) | **PUT** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | +[**proxy_core_v1_put_namespaced_service**](CoreV1Api.md#proxy_core_v1_put_namespaced_service) | **PUT** /api/v1/proxy/namespaces/{namespace}/services/{name} | +[**proxy_core_v1_put_namespaced_service_with_path**](CoreV1Api.md#proxy_core_v1_put_namespaced_service_with_path) | **PUT** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | +[**proxy_core_v1_put_node**](CoreV1Api.md#proxy_core_v1_put_node) | **PUT** /api/v1/proxy/nodes/{name} | +[**proxy_core_v1_put_node_with_path**](CoreV1Api.md#proxy_core_v1_put_node_with_path) | **PUT** /api/v1/proxy/nodes/{name}/{path} | +[**read_core_v1_component_status**](CoreV1Api.md#read_core_v1_component_status) | **GET** /api/v1/componentstatuses/{name} | +[**read_core_v1_namespace**](CoreV1Api.md#read_core_v1_namespace) | **GET** /api/v1/namespaces/{name} | +[**read_core_v1_namespace_status**](CoreV1Api.md#read_core_v1_namespace_status) | **GET** /api/v1/namespaces/{name}/status | +[**read_core_v1_namespaced_config_map**](CoreV1Api.md#read_core_v1_namespaced_config_map) | **GET** /api/v1/namespaces/{namespace}/configmaps/{name} | +[**read_core_v1_namespaced_endpoints**](CoreV1Api.md#read_core_v1_namespaced_endpoints) | **GET** /api/v1/namespaces/{namespace}/endpoints/{name} | +[**read_core_v1_namespaced_event**](CoreV1Api.md#read_core_v1_namespaced_event) | **GET** /api/v1/namespaces/{namespace}/events/{name} | +[**read_core_v1_namespaced_limit_range**](CoreV1Api.md#read_core_v1_namespaced_limit_range) | **GET** /api/v1/namespaces/{namespace}/limitranges/{name} | +[**read_core_v1_namespaced_persistent_volume_claim**](CoreV1Api.md#read_core_v1_namespaced_persistent_volume_claim) | **GET** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | +[**read_core_v1_namespaced_persistent_volume_claim_status**](CoreV1Api.md#read_core_v1_namespaced_persistent_volume_claim_status) | **GET** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | +[**read_core_v1_namespaced_pod**](CoreV1Api.md#read_core_v1_namespaced_pod) | **GET** /api/v1/namespaces/{namespace}/pods/{name} | +[**read_core_v1_namespaced_pod_log**](CoreV1Api.md#read_core_v1_namespaced_pod_log) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/log | +[**read_core_v1_namespaced_pod_status**](CoreV1Api.md#read_core_v1_namespaced_pod_status) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/status | +[**read_core_v1_namespaced_pod_template**](CoreV1Api.md#read_core_v1_namespaced_pod_template) | **GET** /api/v1/namespaces/{namespace}/podtemplates/{name} | +[**read_core_v1_namespaced_replication_controller**](CoreV1Api.md#read_core_v1_namespaced_replication_controller) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | +[**read_core_v1_namespaced_replication_controller_status**](CoreV1Api.md#read_core_v1_namespaced_replication_controller_status) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | +[**read_core_v1_namespaced_resource_quota**](CoreV1Api.md#read_core_v1_namespaced_resource_quota) | **GET** /api/v1/namespaces/{namespace}/resourcequotas/{name} | +[**read_core_v1_namespaced_resource_quota_status**](CoreV1Api.md#read_core_v1_namespaced_resource_quota_status) | **GET** /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | +[**read_core_v1_namespaced_scale_scale**](CoreV1Api.md#read_core_v1_namespaced_scale_scale) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | +[**read_core_v1_namespaced_secret**](CoreV1Api.md#read_core_v1_namespaced_secret) | **GET** /api/v1/namespaces/{namespace}/secrets/{name} | +[**read_core_v1_namespaced_service**](CoreV1Api.md#read_core_v1_namespaced_service) | **GET** /api/v1/namespaces/{namespace}/services/{name} | +[**read_core_v1_namespaced_service_account**](CoreV1Api.md#read_core_v1_namespaced_service_account) | **GET** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | +[**read_core_v1_namespaced_service_status**](CoreV1Api.md#read_core_v1_namespaced_service_status) | **GET** /api/v1/namespaces/{namespace}/services/{name}/status | +[**read_core_v1_node**](CoreV1Api.md#read_core_v1_node) | **GET** /api/v1/nodes/{name} | +[**read_core_v1_node_status**](CoreV1Api.md#read_core_v1_node_status) | **GET** /api/v1/nodes/{name}/status | +[**read_core_v1_persistent_volume**](CoreV1Api.md#read_core_v1_persistent_volume) | **GET** /api/v1/persistentvolumes/{name} | +[**read_core_v1_persistent_volume_status**](CoreV1Api.md#read_core_v1_persistent_volume_status) | **GET** /api/v1/persistentvolumes/{name}/status | +[**replace_core_v1_namespace**](CoreV1Api.md#replace_core_v1_namespace) | **PUT** /api/v1/namespaces/{name} | +[**replace_core_v1_namespace_finalize**](CoreV1Api.md#replace_core_v1_namespace_finalize) | **PUT** /api/v1/namespaces/{name}/finalize | +[**replace_core_v1_namespace_status**](CoreV1Api.md#replace_core_v1_namespace_status) | **PUT** /api/v1/namespaces/{name}/status | +[**replace_core_v1_namespaced_config_map**](CoreV1Api.md#replace_core_v1_namespaced_config_map) | **PUT** /api/v1/namespaces/{namespace}/configmaps/{name} | +[**replace_core_v1_namespaced_endpoints**](CoreV1Api.md#replace_core_v1_namespaced_endpoints) | **PUT** /api/v1/namespaces/{namespace}/endpoints/{name} | +[**replace_core_v1_namespaced_event**](CoreV1Api.md#replace_core_v1_namespaced_event) | **PUT** /api/v1/namespaces/{namespace}/events/{name} | +[**replace_core_v1_namespaced_limit_range**](CoreV1Api.md#replace_core_v1_namespaced_limit_range) | **PUT** /api/v1/namespaces/{namespace}/limitranges/{name} | +[**replace_core_v1_namespaced_persistent_volume_claim**](CoreV1Api.md#replace_core_v1_namespaced_persistent_volume_claim) | **PUT** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | +[**replace_core_v1_namespaced_persistent_volume_claim_status**](CoreV1Api.md#replace_core_v1_namespaced_persistent_volume_claim_status) | **PUT** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | +[**replace_core_v1_namespaced_pod**](CoreV1Api.md#replace_core_v1_namespaced_pod) | **PUT** /api/v1/namespaces/{namespace}/pods/{name} | +[**replace_core_v1_namespaced_pod_status**](CoreV1Api.md#replace_core_v1_namespaced_pod_status) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/status | +[**replace_core_v1_namespaced_pod_template**](CoreV1Api.md#replace_core_v1_namespaced_pod_template) | **PUT** /api/v1/namespaces/{namespace}/podtemplates/{name} | +[**replace_core_v1_namespaced_replication_controller**](CoreV1Api.md#replace_core_v1_namespaced_replication_controller) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | +[**replace_core_v1_namespaced_replication_controller_status**](CoreV1Api.md#replace_core_v1_namespaced_replication_controller_status) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | +[**replace_core_v1_namespaced_resource_quota**](CoreV1Api.md#replace_core_v1_namespaced_resource_quota) | **PUT** /api/v1/namespaces/{namespace}/resourcequotas/{name} | +[**replace_core_v1_namespaced_resource_quota_status**](CoreV1Api.md#replace_core_v1_namespaced_resource_quota_status) | **PUT** /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | +[**replace_core_v1_namespaced_scale_scale**](CoreV1Api.md#replace_core_v1_namespaced_scale_scale) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | +[**replace_core_v1_namespaced_secret**](CoreV1Api.md#replace_core_v1_namespaced_secret) | **PUT** /api/v1/namespaces/{namespace}/secrets/{name} | +[**replace_core_v1_namespaced_service**](CoreV1Api.md#replace_core_v1_namespaced_service) | **PUT** /api/v1/namespaces/{namespace}/services/{name} | +[**replace_core_v1_namespaced_service_account**](CoreV1Api.md#replace_core_v1_namespaced_service_account) | **PUT** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | +[**replace_core_v1_namespaced_service_status**](CoreV1Api.md#replace_core_v1_namespaced_service_status) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/status | +[**replace_core_v1_node**](CoreV1Api.md#replace_core_v1_node) | **PUT** /api/v1/nodes/{name} | +[**replace_core_v1_node_status**](CoreV1Api.md#replace_core_v1_node_status) | **PUT** /api/v1/nodes/{name}/status | +[**replace_core_v1_persistent_volume**](CoreV1Api.md#replace_core_v1_persistent_volume) | **PUT** /api/v1/persistentvolumes/{name} | +[**replace_core_v1_persistent_volume_status**](CoreV1Api.md#replace_core_v1_persistent_volume_status) | **PUT** /api/v1/persistentvolumes/{name}/status | +[**watch_core_v1_config_map_list_for_all_namespaces**](CoreV1Api.md#watch_core_v1_config_map_list_for_all_namespaces) | **GET** /api/v1/watch/configmaps | +[**watch_core_v1_endpoints_list_for_all_namespaces**](CoreV1Api.md#watch_core_v1_endpoints_list_for_all_namespaces) | **GET** /api/v1/watch/endpoints | +[**watch_core_v1_event_list_for_all_namespaces**](CoreV1Api.md#watch_core_v1_event_list_for_all_namespaces) | **GET** /api/v1/watch/events | +[**watch_core_v1_limit_range_list_for_all_namespaces**](CoreV1Api.md#watch_core_v1_limit_range_list_for_all_namespaces) | **GET** /api/v1/watch/limitranges | +[**watch_core_v1_namespace**](CoreV1Api.md#watch_core_v1_namespace) | **GET** /api/v1/watch/namespaces/{name} | +[**watch_core_v1_namespace_list**](CoreV1Api.md#watch_core_v1_namespace_list) | **GET** /api/v1/watch/namespaces | +[**watch_core_v1_namespaced_config_map**](CoreV1Api.md#watch_core_v1_namespaced_config_map) | **GET** /api/v1/watch/namespaces/{namespace}/configmaps/{name} | +[**watch_core_v1_namespaced_config_map_list**](CoreV1Api.md#watch_core_v1_namespaced_config_map_list) | **GET** /api/v1/watch/namespaces/{namespace}/configmaps | +[**watch_core_v1_namespaced_endpoints**](CoreV1Api.md#watch_core_v1_namespaced_endpoints) | **GET** /api/v1/watch/namespaces/{namespace}/endpoints/{name} | +[**watch_core_v1_namespaced_endpoints_list**](CoreV1Api.md#watch_core_v1_namespaced_endpoints_list) | **GET** /api/v1/watch/namespaces/{namespace}/endpoints | +[**watch_core_v1_namespaced_event**](CoreV1Api.md#watch_core_v1_namespaced_event) | **GET** /api/v1/watch/namespaces/{namespace}/events/{name} | +[**watch_core_v1_namespaced_event_list**](CoreV1Api.md#watch_core_v1_namespaced_event_list) | **GET** /api/v1/watch/namespaces/{namespace}/events | +[**watch_core_v1_namespaced_limit_range**](CoreV1Api.md#watch_core_v1_namespaced_limit_range) | **GET** /api/v1/watch/namespaces/{namespace}/limitranges/{name} | +[**watch_core_v1_namespaced_limit_range_list**](CoreV1Api.md#watch_core_v1_namespaced_limit_range_list) | **GET** /api/v1/watch/namespaces/{namespace}/limitranges | +[**watch_core_v1_namespaced_persistent_volume_claim**](CoreV1Api.md#watch_core_v1_namespaced_persistent_volume_claim) | **GET** /api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name} | +[**watch_core_v1_namespaced_persistent_volume_claim_list**](CoreV1Api.md#watch_core_v1_namespaced_persistent_volume_claim_list) | **GET** /api/v1/watch/namespaces/{namespace}/persistentvolumeclaims | +[**watch_core_v1_namespaced_pod**](CoreV1Api.md#watch_core_v1_namespaced_pod) | **GET** /api/v1/watch/namespaces/{namespace}/pods/{name} | +[**watch_core_v1_namespaced_pod_list**](CoreV1Api.md#watch_core_v1_namespaced_pod_list) | **GET** /api/v1/watch/namespaces/{namespace}/pods | +[**watch_core_v1_namespaced_pod_template**](CoreV1Api.md#watch_core_v1_namespaced_pod_template) | **GET** /api/v1/watch/namespaces/{namespace}/podtemplates/{name} | +[**watch_core_v1_namespaced_pod_template_list**](CoreV1Api.md#watch_core_v1_namespaced_pod_template_list) | **GET** /api/v1/watch/namespaces/{namespace}/podtemplates | +[**watch_core_v1_namespaced_replication_controller**](CoreV1Api.md#watch_core_v1_namespaced_replication_controller) | **GET** /api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name} | +[**watch_core_v1_namespaced_replication_controller_list**](CoreV1Api.md#watch_core_v1_namespaced_replication_controller_list) | **GET** /api/v1/watch/namespaces/{namespace}/replicationcontrollers | +[**watch_core_v1_namespaced_resource_quota**](CoreV1Api.md#watch_core_v1_namespaced_resource_quota) | **GET** /api/v1/watch/namespaces/{namespace}/resourcequotas/{name} | +[**watch_core_v1_namespaced_resource_quota_list**](CoreV1Api.md#watch_core_v1_namespaced_resource_quota_list) | **GET** /api/v1/watch/namespaces/{namespace}/resourcequotas | +[**watch_core_v1_namespaced_secret**](CoreV1Api.md#watch_core_v1_namespaced_secret) | **GET** /api/v1/watch/namespaces/{namespace}/secrets/{name} | +[**watch_core_v1_namespaced_secret_list**](CoreV1Api.md#watch_core_v1_namespaced_secret_list) | **GET** /api/v1/watch/namespaces/{namespace}/secrets | +[**watch_core_v1_namespaced_service**](CoreV1Api.md#watch_core_v1_namespaced_service) | **GET** /api/v1/watch/namespaces/{namespace}/services/{name} | +[**watch_core_v1_namespaced_service_account**](CoreV1Api.md#watch_core_v1_namespaced_service_account) | **GET** /api/v1/watch/namespaces/{namespace}/serviceaccounts/{name} | +[**watch_core_v1_namespaced_service_account_list**](CoreV1Api.md#watch_core_v1_namespaced_service_account_list) | **GET** /api/v1/watch/namespaces/{namespace}/serviceaccounts | +[**watch_core_v1_namespaced_service_list**](CoreV1Api.md#watch_core_v1_namespaced_service_list) | **GET** /api/v1/watch/namespaces/{namespace}/services | +[**watch_core_v1_node**](CoreV1Api.md#watch_core_v1_node) | **GET** /api/v1/watch/nodes/{name} | +[**watch_core_v1_node_list**](CoreV1Api.md#watch_core_v1_node_list) | **GET** /api/v1/watch/nodes | +[**watch_core_v1_persistent_volume**](CoreV1Api.md#watch_core_v1_persistent_volume) | **GET** /api/v1/watch/persistentvolumes/{name} | +[**watch_core_v1_persistent_volume_claim_list_for_all_namespaces**](CoreV1Api.md#watch_core_v1_persistent_volume_claim_list_for_all_namespaces) | **GET** /api/v1/watch/persistentvolumeclaims | +[**watch_core_v1_persistent_volume_list**](CoreV1Api.md#watch_core_v1_persistent_volume_list) | **GET** /api/v1/watch/persistentvolumes | +[**watch_core_v1_pod_list_for_all_namespaces**](CoreV1Api.md#watch_core_v1_pod_list_for_all_namespaces) | **GET** /api/v1/watch/pods | +[**watch_core_v1_pod_template_list_for_all_namespaces**](CoreV1Api.md#watch_core_v1_pod_template_list_for_all_namespaces) | **GET** /api/v1/watch/podtemplates | +[**watch_core_v1_replication_controller_list_for_all_namespaces**](CoreV1Api.md#watch_core_v1_replication_controller_list_for_all_namespaces) | **GET** /api/v1/watch/replicationcontrollers | +[**watch_core_v1_resource_quota_list_for_all_namespaces**](CoreV1Api.md#watch_core_v1_resource_quota_list_for_all_namespaces) | **GET** /api/v1/watch/resourcequotas | +[**watch_core_v1_secret_list_for_all_namespaces**](CoreV1Api.md#watch_core_v1_secret_list_for_all_namespaces) | **GET** /api/v1/watch/secrets | +[**watch_core_v1_service_account_list_for_all_namespaces**](CoreV1Api.md#watch_core_v1_service_account_list_for_all_namespaces) | **GET** /api/v1/watch/serviceaccounts | +[**watch_core_v1_service_list_for_all_namespaces**](CoreV1Api.md#watch_core_v1_service_list_for_all_namespaces) | **GET** /api/v1/watch/services | + + +# **connect_core_v1_delete_namespaced_pod_proxy** +> str connect_core_v1_delete_namespaced_pod_proxy(name, namespace, path=path) + + + +connect DELETE requests to proxy of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) + +try: + api_response = api_instance.connect_core_v1_delete_namespaced_pod_proxy(name, namespace, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_delete_namespaced_pod_proxy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| Path is the URL path to use for the current proxy request to pod. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_delete_namespaced_pod_proxy_with_path** +> str connect_core_v1_delete_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + + + +connect DELETE requests to proxy of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) + +try: + api_response = api_instance.connect_core_v1_delete_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_delete_namespaced_pod_proxy_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the URL path to use for the current proxy request to pod. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_delete_namespaced_service_proxy** +> str connect_core_v1_delete_namespaced_service_proxy(name, namespace, path=path) + + + +connect DELETE requests to proxy of Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) + +try: + api_response = api_instance.connect_core_v1_delete_namespaced_service_proxy(name, namespace, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_delete_namespaced_service_proxy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_delete_namespaced_service_proxy_with_path** +> str connect_core_v1_delete_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + + + +connect DELETE requests to proxy of Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) + +try: + api_response = api_instance.connect_core_v1_delete_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_delete_namespaced_service_proxy_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_delete_node_proxy** +> str connect_core_v1_delete_node_proxy(name, path=path) + + + +connect DELETE requests to proxy of Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) + +try: + api_response = api_instance.connect_core_v1_delete_node_proxy(name, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_delete_node_proxy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **path** | **str**| Path is the URL path to use for the current proxy request to node. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_delete_node_proxy_with_path** +> str connect_core_v1_delete_node_proxy_with_path(name, path, path2=path2) + + + +connect DELETE requests to proxy of Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) + +try: + api_response = api_instance.connect_core_v1_delete_node_proxy_with_path(name, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_delete_node_proxy_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the URL path to use for the current proxy request to node. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_get_namespaced_pod_attach** +> str connect_core_v1_get_namespaced_pod_attach(name, namespace, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) + + + +connect GET requests to attach of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +container = 'container_example' # str | The container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) +stderr = true # bool | Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. (optional) +stdin = true # bool | Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. (optional) +stdout = true # bool | Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional) +tty = true # bool | TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) + +try: + api_response = api_instance.connect_core_v1_get_namespaced_pod_attach(name, namespace, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_get_namespaced_pod_attach: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **container** | **str**| The container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] + **stderr** | **bool**| Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. | [optional] + **stdin** | **bool**| Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. | [optional] + **stdout** | **bool**| Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. | [optional] + **tty** | **bool**| TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_get_namespaced_pod_exec** +> str connect_core_v1_get_namespaced_pod_exec(name, namespace, command=command, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) + + + +connect GET requests to exec of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +command = 'command_example' # str | Command is the remote command to execute. argv array. Not executed within a shell. (optional) +container = 'container_example' # str | Container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) +stderr = true # bool | Redirect the standard error stream of the pod for this call. Defaults to true. (optional) +stdin = true # bool | Redirect the standard input stream of the pod for this call. Defaults to false. (optional) +stdout = true # bool | Redirect the standard output stream of the pod for this call. Defaults to true. (optional) +tty = true # bool | TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) + +try: + api_response = api_instance.connect_core_v1_get_namespaced_pod_exec(name, namespace, command=command, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_get_namespaced_pod_exec: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **command** | **str**| Command is the remote command to execute. argv array. Not executed within a shell. | [optional] + **container** | **str**| Container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] + **stderr** | **bool**| Redirect the standard error stream of the pod for this call. Defaults to true. | [optional] + **stdin** | **bool**| Redirect the standard input stream of the pod for this call. Defaults to false. | [optional] + **stdout** | **bool**| Redirect the standard output stream of the pod for this call. Defaults to true. | [optional] + **tty** | **bool**| TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_get_namespaced_pod_portforward** +> str connect_core_v1_get_namespaced_pod_portforward(name, namespace) + + + +connect GET requests to portforward of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.connect_core_v1_get_namespaced_pod_portforward(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_get_namespaced_pod_portforward: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_get_namespaced_pod_proxy** +> str connect_core_v1_get_namespaced_pod_proxy(name, namespace, path=path) + + + +connect GET requests to proxy of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) + +try: + api_response = api_instance.connect_core_v1_get_namespaced_pod_proxy(name, namespace, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_get_namespaced_pod_proxy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| Path is the URL path to use for the current proxy request to pod. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_get_namespaced_pod_proxy_with_path** +> str connect_core_v1_get_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + + + +connect GET requests to proxy of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) + +try: + api_response = api_instance.connect_core_v1_get_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_get_namespaced_pod_proxy_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the URL path to use for the current proxy request to pod. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_get_namespaced_service_proxy** +> str connect_core_v1_get_namespaced_service_proxy(name, namespace, path=path) + + + +connect GET requests to proxy of Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) + +try: + api_response = api_instance.connect_core_v1_get_namespaced_service_proxy(name, namespace, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_get_namespaced_service_proxy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_get_namespaced_service_proxy_with_path** +> str connect_core_v1_get_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + + + +connect GET requests to proxy of Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) + +try: + api_response = api_instance.connect_core_v1_get_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_get_namespaced_service_proxy_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_get_node_proxy** +> str connect_core_v1_get_node_proxy(name, path=path) + + + +connect GET requests to proxy of Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) + +try: + api_response = api_instance.connect_core_v1_get_node_proxy(name, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_get_node_proxy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **path** | **str**| Path is the URL path to use for the current proxy request to node. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_get_node_proxy_with_path** +> str connect_core_v1_get_node_proxy_with_path(name, path, path2=path2) + + + +connect GET requests to proxy of Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) + +try: + api_response = api_instance.connect_core_v1_get_node_proxy_with_path(name, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_get_node_proxy_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the URL path to use for the current proxy request to node. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_head_namespaced_pod_proxy** +> str connect_core_v1_head_namespaced_pod_proxy(name, namespace, path=path) + + + +connect HEAD requests to proxy of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) + +try: + api_response = api_instance.connect_core_v1_head_namespaced_pod_proxy(name, namespace, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_head_namespaced_pod_proxy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| Path is the URL path to use for the current proxy request to pod. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_head_namespaced_pod_proxy_with_path** +> str connect_core_v1_head_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + + + +connect HEAD requests to proxy of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) + +try: + api_response = api_instance.connect_core_v1_head_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_head_namespaced_pod_proxy_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the URL path to use for the current proxy request to pod. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_head_namespaced_service_proxy** +> str connect_core_v1_head_namespaced_service_proxy(name, namespace, path=path) + + + +connect HEAD requests to proxy of Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) + +try: + api_response = api_instance.connect_core_v1_head_namespaced_service_proxy(name, namespace, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_head_namespaced_service_proxy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_head_namespaced_service_proxy_with_path** +> str connect_core_v1_head_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + + + +connect HEAD requests to proxy of Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) + +try: + api_response = api_instance.connect_core_v1_head_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_head_namespaced_service_proxy_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_head_node_proxy** +> str connect_core_v1_head_node_proxy(name, path=path) + + + +connect HEAD requests to proxy of Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) + +try: + api_response = api_instance.connect_core_v1_head_node_proxy(name, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_head_node_proxy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **path** | **str**| Path is the URL path to use for the current proxy request to node. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_head_node_proxy_with_path** +> str connect_core_v1_head_node_proxy_with_path(name, path, path2=path2) + + + +connect HEAD requests to proxy of Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) + +try: + api_response = api_instance.connect_core_v1_head_node_proxy_with_path(name, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_head_node_proxy_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the URL path to use for the current proxy request to node. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_options_namespaced_pod_proxy** +> str connect_core_v1_options_namespaced_pod_proxy(name, namespace, path=path) + + + +connect OPTIONS requests to proxy of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) + +try: + api_response = api_instance.connect_core_v1_options_namespaced_pod_proxy(name, namespace, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_options_namespaced_pod_proxy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| Path is the URL path to use for the current proxy request to pod. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_options_namespaced_pod_proxy_with_path** +> str connect_core_v1_options_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + + + +connect OPTIONS requests to proxy of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) + +try: + api_response = api_instance.connect_core_v1_options_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_options_namespaced_pod_proxy_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the URL path to use for the current proxy request to pod. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_options_namespaced_service_proxy** +> str connect_core_v1_options_namespaced_service_proxy(name, namespace, path=path) + + + +connect OPTIONS requests to proxy of Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) + +try: + api_response = api_instance.connect_core_v1_options_namespaced_service_proxy(name, namespace, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_options_namespaced_service_proxy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_options_namespaced_service_proxy_with_path** +> str connect_core_v1_options_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + + + +connect OPTIONS requests to proxy of Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) + +try: + api_response = api_instance.connect_core_v1_options_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_options_namespaced_service_proxy_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_options_node_proxy** +> str connect_core_v1_options_node_proxy(name, path=path) + + + +connect OPTIONS requests to proxy of Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) + +try: + api_response = api_instance.connect_core_v1_options_node_proxy(name, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_options_node_proxy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **path** | **str**| Path is the URL path to use for the current proxy request to node. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_options_node_proxy_with_path** +> str connect_core_v1_options_node_proxy_with_path(name, path, path2=path2) + + + +connect OPTIONS requests to proxy of Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) + +try: + api_response = api_instance.connect_core_v1_options_node_proxy_with_path(name, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_options_node_proxy_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the URL path to use for the current proxy request to node. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_post_namespaced_pod_attach** +> str connect_core_v1_post_namespaced_pod_attach(name, namespace, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) + + + +connect POST requests to attach of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +container = 'container_example' # str | The container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) +stderr = true # bool | Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. (optional) +stdin = true # bool | Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. (optional) +stdout = true # bool | Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional) +tty = true # bool | TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) + +try: + api_response = api_instance.connect_core_v1_post_namespaced_pod_attach(name, namespace, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_post_namespaced_pod_attach: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **container** | **str**| The container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] + **stderr** | **bool**| Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. | [optional] + **stdin** | **bool**| Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. | [optional] + **stdout** | **bool**| Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. | [optional] + **tty** | **bool**| TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_post_namespaced_pod_exec** +> str connect_core_v1_post_namespaced_pod_exec(name, namespace, command=command, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) + + + +connect POST requests to exec of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +command = 'command_example' # str | Command is the remote command to execute. argv array. Not executed within a shell. (optional) +container = 'container_example' # str | Container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) +stderr = true # bool | Redirect the standard error stream of the pod for this call. Defaults to true. (optional) +stdin = true # bool | Redirect the standard input stream of the pod for this call. Defaults to false. (optional) +stdout = true # bool | Redirect the standard output stream of the pod for this call. Defaults to true. (optional) +tty = true # bool | TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) + +try: + api_response = api_instance.connect_core_v1_post_namespaced_pod_exec(name, namespace, command=command, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_post_namespaced_pod_exec: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **command** | **str**| Command is the remote command to execute. argv array. Not executed within a shell. | [optional] + **container** | **str**| Container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] + **stderr** | **bool**| Redirect the standard error stream of the pod for this call. Defaults to true. | [optional] + **stdin** | **bool**| Redirect the standard input stream of the pod for this call. Defaults to false. | [optional] + **stdout** | **bool**| Redirect the standard output stream of the pod for this call. Defaults to true. | [optional] + **tty** | **bool**| TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_post_namespaced_pod_portforward** +> str connect_core_v1_post_namespaced_pod_portforward(name, namespace) + + + +connect POST requests to portforward of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.connect_core_v1_post_namespaced_pod_portforward(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_post_namespaced_pod_portforward: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_post_namespaced_pod_proxy** +> str connect_core_v1_post_namespaced_pod_proxy(name, namespace, path=path) + + + +connect POST requests to proxy of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) + +try: + api_response = api_instance.connect_core_v1_post_namespaced_pod_proxy(name, namespace, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_post_namespaced_pod_proxy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| Path is the URL path to use for the current proxy request to pod. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_post_namespaced_pod_proxy_with_path** +> str connect_core_v1_post_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + + + +connect POST requests to proxy of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) + +try: + api_response = api_instance.connect_core_v1_post_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_post_namespaced_pod_proxy_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the URL path to use for the current proxy request to pod. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_post_namespaced_service_proxy** +> str connect_core_v1_post_namespaced_service_proxy(name, namespace, path=path) + + + +connect POST requests to proxy of Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) + +try: + api_response = api_instance.connect_core_v1_post_namespaced_service_proxy(name, namespace, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_post_namespaced_service_proxy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_post_namespaced_service_proxy_with_path** +> str connect_core_v1_post_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + + + +connect POST requests to proxy of Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) + +try: + api_response = api_instance.connect_core_v1_post_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_post_namespaced_service_proxy_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_post_node_proxy** +> str connect_core_v1_post_node_proxy(name, path=path) + + + +connect POST requests to proxy of Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) + +try: + api_response = api_instance.connect_core_v1_post_node_proxy(name, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_post_node_proxy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **path** | **str**| Path is the URL path to use for the current proxy request to node. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_post_node_proxy_with_path** +> str connect_core_v1_post_node_proxy_with_path(name, path, path2=path2) + + + +connect POST requests to proxy of Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) + +try: + api_response = api_instance.connect_core_v1_post_node_proxy_with_path(name, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_post_node_proxy_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the URL path to use for the current proxy request to node. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_put_namespaced_pod_proxy** +> str connect_core_v1_put_namespaced_pod_proxy(name, namespace, path=path) + + + +connect PUT requests to proxy of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) + +try: + api_response = api_instance.connect_core_v1_put_namespaced_pod_proxy(name, namespace, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_put_namespaced_pod_proxy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| Path is the URL path to use for the current proxy request to pod. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_put_namespaced_pod_proxy_with_path** +> str connect_core_v1_put_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + + + +connect PUT requests to proxy of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) + +try: + api_response = api_instance.connect_core_v1_put_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_put_namespaced_pod_proxy_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the URL path to use for the current proxy request to pod. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_put_namespaced_service_proxy** +> str connect_core_v1_put_namespaced_service_proxy(name, namespace, path=path) + + + +connect PUT requests to proxy of Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) + +try: + api_response = api_instance.connect_core_v1_put_namespaced_service_proxy(name, namespace, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_put_namespaced_service_proxy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_put_namespaced_service_proxy_with_path** +> str connect_core_v1_put_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + + + +connect PUT requests to proxy of Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) + +try: + api_response = api_instance.connect_core_v1_put_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_put_namespaced_service_proxy_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_put_node_proxy** +> str connect_core_v1_put_node_proxy(name, path=path) + + + +connect PUT requests to proxy of Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) + +try: + api_response = api_instance.connect_core_v1_put_node_proxy(name, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_put_node_proxy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **path** | **str**| Path is the URL path to use for the current proxy request to node. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_core_v1_put_node_proxy_with_path** +> str connect_core_v1_put_node_proxy_with_path(name, path, path2=path2) + + + +connect PUT requests to proxy of Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) + +try: + api_response = api_instance.connect_core_v1_put_node_proxy_with_path(name, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->connect_core_v1_put_node_proxy_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the URL path to use for the current proxy request to node. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_core_v1_namespace** +> V1Namespace create_core_v1_namespace(body, pretty=pretty) + + + +create a Namespace + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +body = k8sclient.V1Namespace() # V1Namespace | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_core_v1_namespace(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_core_v1_namespace: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Namespace**](V1Namespace.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Namespace**](V1Namespace.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_core_v1_namespaced_binding** +> V1Binding create_core_v1_namespaced_binding(body, namespace, pretty=pretty) + + + +create a Binding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +body = k8sclient.V1Binding() # V1Binding | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_core_v1_namespaced_binding(body, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_core_v1_namespaced_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Binding**](V1Binding.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Binding**](V1Binding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_core_v1_namespaced_binding_binding** +> V1Binding create_core_v1_namespaced_binding_binding(body, name, namespace, pretty=pretty) + + + +create binding of a Binding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +body = k8sclient.V1Binding() # V1Binding | +name = 'name_example' # str | name of the Binding +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_core_v1_namespaced_binding_binding(body, name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_core_v1_namespaced_binding_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Binding**](V1Binding.md)| | + **name** | **str**| name of the Binding | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Binding**](V1Binding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_core_v1_namespaced_config_map** +> V1ConfigMap create_core_v1_namespaced_config_map(namespace, body, pretty=pretty) + + + +create a ConfigMap + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1ConfigMap() # V1ConfigMap | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_core_v1_namespaced_config_map(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_core_v1_namespaced_config_map: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1ConfigMap**](V1ConfigMap.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ConfigMap**](V1ConfigMap.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_core_v1_namespaced_endpoints** +> V1Endpoints create_core_v1_namespaced_endpoints(namespace, body, pretty=pretty) + + + +create Endpoints + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1Endpoints() # V1Endpoints | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_core_v1_namespaced_endpoints(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_core_v1_namespaced_endpoints: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Endpoints**](V1Endpoints.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Endpoints**](V1Endpoints.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_core_v1_namespaced_event** +> V1Event create_core_v1_namespaced_event(namespace, body, pretty=pretty) + + + +create an Event + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1Event() # V1Event | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_core_v1_namespaced_event(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_core_v1_namespaced_event: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Event**](V1Event.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Event**](V1Event.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_core_v1_namespaced_eviction_eviction** +> V1alpha1Eviction create_core_v1_namespaced_eviction_eviction(body, name, namespace, pretty=pretty) + + + +create eviction of an Eviction + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +body = k8sclient.V1alpha1Eviction() # V1alpha1Eviction | +name = 'name_example' # str | name of the Eviction +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_core_v1_namespaced_eviction_eviction(body, name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_core_v1_namespaced_eviction_eviction: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1Eviction**](V1alpha1Eviction.md)| | + **name** | **str**| name of the Eviction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1Eviction**](V1alpha1Eviction.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_core_v1_namespaced_limit_range** +> V1LimitRange create_core_v1_namespaced_limit_range(namespace, body, pretty=pretty) + + + +create a LimitRange + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1LimitRange() # V1LimitRange | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_core_v1_namespaced_limit_range(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_core_v1_namespaced_limit_range: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1LimitRange**](V1LimitRange.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1LimitRange**](V1LimitRange.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_core_v1_namespaced_persistent_volume_claim** +> V1PersistentVolumeClaim create_core_v1_namespaced_persistent_volume_claim(namespace, body, pretty=pretty) + + + +create a PersistentVolumeClaim + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1PersistentVolumeClaim() # V1PersistentVolumeClaim | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_core_v1_namespaced_persistent_volume_claim(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_core_v1_namespaced_persistent_volume_claim: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_core_v1_namespaced_pod** +> V1Pod create_core_v1_namespaced_pod(namespace, body, pretty=pretty) + + + +create a Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1Pod() # V1Pod | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_core_v1_namespaced_pod(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_core_v1_namespaced_pod: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Pod**](V1Pod.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Pod**](V1Pod.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_core_v1_namespaced_pod_template** +> V1PodTemplate create_core_v1_namespaced_pod_template(namespace, body, pretty=pretty) + + + +create a PodTemplate + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1PodTemplate() # V1PodTemplate | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_core_v1_namespaced_pod_template(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_core_v1_namespaced_pod_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1PodTemplate**](V1PodTemplate.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PodTemplate**](V1PodTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_core_v1_namespaced_replication_controller** +> V1ReplicationController create_core_v1_namespaced_replication_controller(namespace, body, pretty=pretty) + + + +create a ReplicationController + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1ReplicationController() # V1ReplicationController | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_core_v1_namespaced_replication_controller(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_core_v1_namespaced_replication_controller: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1ReplicationController**](V1ReplicationController.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ReplicationController**](V1ReplicationController.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_core_v1_namespaced_resource_quota** +> V1ResourceQuota create_core_v1_namespaced_resource_quota(namespace, body, pretty=pretty) + + + +create a ResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1ResourceQuota() # V1ResourceQuota | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_core_v1_namespaced_resource_quota(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_core_v1_namespaced_resource_quota: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1ResourceQuota**](V1ResourceQuota.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ResourceQuota**](V1ResourceQuota.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_core_v1_namespaced_secret** +> V1Secret create_core_v1_namespaced_secret(namespace, body, pretty=pretty) + + + +create a Secret + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1Secret() # V1Secret | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_core_v1_namespaced_secret(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_core_v1_namespaced_secret: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Secret**](V1Secret.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Secret**](V1Secret.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_core_v1_namespaced_service** +> V1Service create_core_v1_namespaced_service(namespace, body, pretty=pretty) + + + +create a Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1Service() # V1Service | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_core_v1_namespaced_service(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_core_v1_namespaced_service: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Service**](V1Service.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Service**](V1Service.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_core_v1_namespaced_service_account** +> V1ServiceAccount create_core_v1_namespaced_service_account(namespace, body, pretty=pretty) + + + +create a ServiceAccount + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1ServiceAccount() # V1ServiceAccount | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_core_v1_namespaced_service_account(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_core_v1_namespaced_service_account: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1ServiceAccount**](V1ServiceAccount.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ServiceAccount**](V1ServiceAccount.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_core_v1_node** +> V1Node create_core_v1_node(body, pretty=pretty) + + + +create a Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +body = k8sclient.V1Node() # V1Node | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_core_v1_node(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_core_v1_node: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Node**](V1Node.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Node**](V1Node.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_core_v1_persistent_volume** +> V1PersistentVolume create_core_v1_persistent_volume(body, pretty=pretty) + + + +create a PersistentVolume + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +body = k8sclient.V1PersistentVolume() # V1PersistentVolume | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_core_v1_persistent_volume(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_core_v1_persistent_volume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1PersistentVolume**](V1PersistentVolume.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PersistentVolume**](V1PersistentVolume.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_collection_namespace** +> UnversionedStatus delete_core_v1_collection_namespace(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Namespace + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_core_v1_collection_namespace(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_collection_namespace: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_collection_namespaced_config_map** +> UnversionedStatus delete_core_v1_collection_namespaced_config_map(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of ConfigMap + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_core_v1_collection_namespaced_config_map(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_collection_namespaced_config_map: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_collection_namespaced_endpoints** +> UnversionedStatus delete_core_v1_collection_namespaced_endpoints(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Endpoints + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_core_v1_collection_namespaced_endpoints(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_collection_namespaced_endpoints: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_collection_namespaced_event** +> UnversionedStatus delete_core_v1_collection_namespaced_event(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Event + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_core_v1_collection_namespaced_event(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_collection_namespaced_event: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_collection_namespaced_limit_range** +> UnversionedStatus delete_core_v1_collection_namespaced_limit_range(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of LimitRange + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_core_v1_collection_namespaced_limit_range(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_collection_namespaced_limit_range: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_collection_namespaced_persistent_volume_claim** +> UnversionedStatus delete_core_v1_collection_namespaced_persistent_volume_claim(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of PersistentVolumeClaim + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_core_v1_collection_namespaced_persistent_volume_claim(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_collection_namespaced_persistent_volume_claim: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_collection_namespaced_pod** +> UnversionedStatus delete_core_v1_collection_namespaced_pod(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_core_v1_collection_namespaced_pod(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_collection_namespaced_pod: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_collection_namespaced_pod_template** +> UnversionedStatus delete_core_v1_collection_namespaced_pod_template(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of PodTemplate + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_core_v1_collection_namespaced_pod_template(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_collection_namespaced_pod_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_collection_namespaced_replication_controller** +> UnversionedStatus delete_core_v1_collection_namespaced_replication_controller(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of ReplicationController + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_core_v1_collection_namespaced_replication_controller(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_collection_namespaced_replication_controller: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_collection_namespaced_resource_quota** +> UnversionedStatus delete_core_v1_collection_namespaced_resource_quota(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of ResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_core_v1_collection_namespaced_resource_quota(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_collection_namespaced_resource_quota: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_collection_namespaced_secret** +> UnversionedStatus delete_core_v1_collection_namespaced_secret(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Secret + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_core_v1_collection_namespaced_secret(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_collection_namespaced_secret: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_collection_namespaced_service_account** +> UnversionedStatus delete_core_v1_collection_namespaced_service_account(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of ServiceAccount + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_core_v1_collection_namespaced_service_account(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_collection_namespaced_service_account: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_collection_node** +> UnversionedStatus delete_core_v1_collection_node(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_core_v1_collection_node(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_collection_node: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_collection_persistent_volume** +> UnversionedStatus delete_core_v1_collection_persistent_volume(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of PersistentVolume + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_core_v1_collection_persistent_volume(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_collection_persistent_volume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_namespace** +> UnversionedStatus delete_core_v1_namespace(name, body, pretty=pretty) + + + +delete a Namespace + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Namespace +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_core_v1_namespace(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_namespace: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Namespace | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_namespaced_config_map** +> UnversionedStatus delete_core_v1_namespaced_config_map(name, namespace, body, pretty=pretty) + + + +delete a ConfigMap + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ConfigMap +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_core_v1_namespaced_config_map(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_namespaced_config_map: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ConfigMap | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_namespaced_endpoints** +> UnversionedStatus delete_core_v1_namespaced_endpoints(name, namespace, body, pretty=pretty) + + + +delete Endpoints + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Endpoints +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_core_v1_namespaced_endpoints(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_namespaced_endpoints: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Endpoints | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_namespaced_event** +> UnversionedStatus delete_core_v1_namespaced_event(name, namespace, body, pretty=pretty) + + + +delete an Event + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Event +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_core_v1_namespaced_event(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_namespaced_event: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Event | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_namespaced_limit_range** +> UnversionedStatus delete_core_v1_namespaced_limit_range(name, namespace, body, pretty=pretty) + + + +delete a LimitRange + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the LimitRange +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_core_v1_namespaced_limit_range(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_namespaced_limit_range: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the LimitRange | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_namespaced_persistent_volume_claim** +> UnversionedStatus delete_core_v1_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty) + + + +delete a PersistentVolumeClaim + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PersistentVolumeClaim +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_core_v1_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_namespaced_persistent_volume_claim: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PersistentVolumeClaim | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_namespaced_pod** +> UnversionedStatus delete_core_v1_namespaced_pod(name, namespace, body, pretty=pretty) + + + +delete a Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_core_v1_namespaced_pod(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_namespaced_pod: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_namespaced_pod_template** +> UnversionedStatus delete_core_v1_namespaced_pod_template(name, namespace, body, pretty=pretty) + + + +delete a PodTemplate + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PodTemplate +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_core_v1_namespaced_pod_template(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_namespaced_pod_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodTemplate | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_namespaced_replication_controller** +> UnversionedStatus delete_core_v1_namespaced_replication_controller(name, namespace, body, pretty=pretty) + + + +delete a ReplicationController + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ReplicationController +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_core_v1_namespaced_replication_controller(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_namespaced_replication_controller: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ReplicationController | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_namespaced_resource_quota** +> UnversionedStatus delete_core_v1_namespaced_resource_quota(name, namespace, body, pretty=pretty) + + + +delete a ResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ResourceQuota +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_core_v1_namespaced_resource_quota(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_namespaced_resource_quota: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ResourceQuota | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_namespaced_secret** +> UnversionedStatus delete_core_v1_namespaced_secret(name, namespace, body, pretty=pretty) + + + +delete a Secret + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Secret +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_core_v1_namespaced_secret(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_namespaced_secret: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Secret | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_namespaced_service** +> UnversionedStatus delete_core_v1_namespaced_service(name, namespace, pretty=pretty) + + + +delete a Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_core_v1_namespaced_service(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_namespaced_service: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_namespaced_service_account** +> UnversionedStatus delete_core_v1_namespaced_service_account(name, namespace, body, pretty=pretty) + + + +delete a ServiceAccount + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ServiceAccount +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_core_v1_namespaced_service_account(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_namespaced_service_account: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ServiceAccount | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_node** +> UnversionedStatus delete_core_v1_node(name, body, pretty=pretty) + + + +delete a Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_core_v1_node(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_node: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_core_v1_persistent_volume** +> UnversionedStatus delete_core_v1_persistent_volume(name, body, pretty=pretty) + + + +delete a PersistentVolume + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PersistentVolume +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_core_v1_persistent_volume(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_core_v1_persistent_volume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PersistentVolume | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_core_v1_api_resources** +> UnversionedAPIResourceList get_core_v1_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() + +try: + api_response = api_instance.get_core_v1_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->get_core_v1_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_component_status** +> V1ComponentStatusList list_core_v1_component_status(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list objects of kind ComponentStatus + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_component_status(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_component_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ComponentStatusList**](V1ComponentStatusList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_config_map_for_all_namespaces** +> V1ConfigMapList list_core_v1_config_map_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ConfigMap + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_config_map_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_config_map_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ConfigMapList**](V1ConfigMapList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_endpoints_for_all_namespaces** +> V1EndpointsList list_core_v1_endpoints_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Endpoints + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_endpoints_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_endpoints_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1EndpointsList**](V1EndpointsList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_event_for_all_namespaces** +> V1EventList list_core_v1_event_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Event + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_event_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_event_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1EventList**](V1EventList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_limit_range_for_all_namespaces** +> V1LimitRangeList list_core_v1_limit_range_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind LimitRange + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_limit_range_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_limit_range_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1LimitRangeList**](V1LimitRangeList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_namespace** +> V1NamespaceList list_core_v1_namespace(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Namespace + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_namespace(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_namespace: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1NamespaceList**](V1NamespaceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_namespaced_config_map** +> V1ConfigMapList list_core_v1_namespaced_config_map(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ConfigMap + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_namespaced_config_map(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_namespaced_config_map: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ConfigMapList**](V1ConfigMapList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_namespaced_endpoints** +> V1EndpointsList list_core_v1_namespaced_endpoints(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Endpoints + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_namespaced_endpoints(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_namespaced_endpoints: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1EndpointsList**](V1EndpointsList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_namespaced_event** +> V1EventList list_core_v1_namespaced_event(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Event + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_namespaced_event(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_namespaced_event: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1EventList**](V1EventList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_namespaced_limit_range** +> V1LimitRangeList list_core_v1_namespaced_limit_range(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind LimitRange + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_namespaced_limit_range(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_namespaced_limit_range: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1LimitRangeList**](V1LimitRangeList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_namespaced_persistent_volume_claim** +> V1PersistentVolumeClaimList list_core_v1_namespaced_persistent_volume_claim(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind PersistentVolumeClaim + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_namespaced_persistent_volume_claim(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_namespaced_persistent_volume_claim: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1PersistentVolumeClaimList**](V1PersistentVolumeClaimList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_namespaced_pod** +> V1PodList list_core_v1_namespaced_pod(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_namespaced_pod(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_namespaced_pod: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1PodList**](V1PodList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_namespaced_pod_template** +> V1PodTemplateList list_core_v1_namespaced_pod_template(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind PodTemplate + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_namespaced_pod_template(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_namespaced_pod_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1PodTemplateList**](V1PodTemplateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_namespaced_replication_controller** +> V1ReplicationControllerList list_core_v1_namespaced_replication_controller(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ReplicationController + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_namespaced_replication_controller(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_namespaced_replication_controller: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ReplicationControllerList**](V1ReplicationControllerList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_namespaced_resource_quota** +> V1ResourceQuotaList list_core_v1_namespaced_resource_quota(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_namespaced_resource_quota(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_namespaced_resource_quota: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ResourceQuotaList**](V1ResourceQuotaList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_namespaced_secret** +> V1SecretList list_core_v1_namespaced_secret(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Secret + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_namespaced_secret(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_namespaced_secret: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1SecretList**](V1SecretList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_namespaced_service** +> V1ServiceList list_core_v1_namespaced_service(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_namespaced_service(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_namespaced_service: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ServiceList**](V1ServiceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_namespaced_service_account** +> V1ServiceAccountList list_core_v1_namespaced_service_account(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ServiceAccount + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_namespaced_service_account(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_namespaced_service_account: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ServiceAccountList**](V1ServiceAccountList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_node** +> V1NodeList list_core_v1_node(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_node(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_node: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1NodeList**](V1NodeList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_persistent_volume** +> V1PersistentVolumeList list_core_v1_persistent_volume(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind PersistentVolume + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_persistent_volume(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_persistent_volume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1PersistentVolumeList**](V1PersistentVolumeList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_persistent_volume_claim_for_all_namespaces** +> V1PersistentVolumeClaimList list_core_v1_persistent_volume_claim_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind PersistentVolumeClaim + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_persistent_volume_claim_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_persistent_volume_claim_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1PersistentVolumeClaimList**](V1PersistentVolumeClaimList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_pod_for_all_namespaces** +> V1PodList list_core_v1_pod_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_pod_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_pod_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1PodList**](V1PodList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_pod_template_for_all_namespaces** +> V1PodTemplateList list_core_v1_pod_template_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind PodTemplate + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_pod_template_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_pod_template_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1PodTemplateList**](V1PodTemplateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_replication_controller_for_all_namespaces** +> V1ReplicationControllerList list_core_v1_replication_controller_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ReplicationController + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_replication_controller_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_replication_controller_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ReplicationControllerList**](V1ReplicationControllerList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_resource_quota_for_all_namespaces** +> V1ResourceQuotaList list_core_v1_resource_quota_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_resource_quota_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_resource_quota_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ResourceQuotaList**](V1ResourceQuotaList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_secret_for_all_namespaces** +> V1SecretList list_core_v1_secret_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Secret + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_secret_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_secret_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1SecretList**](V1SecretList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_service_account_for_all_namespaces** +> V1ServiceAccountList list_core_v1_service_account_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ServiceAccount + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_service_account_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_service_account_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ServiceAccountList**](V1ServiceAccountList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_core_v1_service_for_all_namespaces** +> V1ServiceList list_core_v1_service_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_core_v1_service_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->list_core_v1_service_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ServiceList**](V1ServiceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespace** +> V1Namespace patch_core_v1_namespace(name, body, pretty=pretty) + + + +partially update the specified Namespace + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Namespace +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespace(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespace: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Namespace | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Namespace**](V1Namespace.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespace_status** +> V1Namespace patch_core_v1_namespace_status(name, body, pretty=pretty) + + + +partially update status of the specified Namespace + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Namespace +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespace_status(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespace_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Namespace | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Namespace**](V1Namespace.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespaced_config_map** +> V1ConfigMap patch_core_v1_namespaced_config_map(name, namespace, body, pretty=pretty) + + + +partially update the specified ConfigMap + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ConfigMap +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespaced_config_map(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespaced_config_map: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ConfigMap | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ConfigMap**](V1ConfigMap.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespaced_endpoints** +> V1Endpoints patch_core_v1_namespaced_endpoints(name, namespace, body, pretty=pretty) + + + +partially update the specified Endpoints + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Endpoints +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespaced_endpoints(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespaced_endpoints: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Endpoints | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Endpoints**](V1Endpoints.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespaced_event** +> V1Event patch_core_v1_namespaced_event(name, namespace, body, pretty=pretty) + + + +partially update the specified Event + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Event +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespaced_event(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespaced_event: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Event | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Event**](V1Event.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespaced_limit_range** +> V1LimitRange patch_core_v1_namespaced_limit_range(name, namespace, body, pretty=pretty) + + + +partially update the specified LimitRange + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the LimitRange +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespaced_limit_range(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespaced_limit_range: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the LimitRange | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1LimitRange**](V1LimitRange.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespaced_persistent_volume_claim** +> V1PersistentVolumeClaim patch_core_v1_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty) + + + +partially update the specified PersistentVolumeClaim + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PersistentVolumeClaim +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespaced_persistent_volume_claim: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PersistentVolumeClaim | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespaced_persistent_volume_claim_status** +> V1PersistentVolumeClaim patch_core_v1_namespaced_persistent_volume_claim_status(name, namespace, body, pretty=pretty) + + + +partially update status of the specified PersistentVolumeClaim + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PersistentVolumeClaim +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespaced_persistent_volume_claim_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespaced_persistent_volume_claim_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PersistentVolumeClaim | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespaced_pod** +> V1Pod patch_core_v1_namespaced_pod(name, namespace, body, pretty=pretty) + + + +partially update the specified Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespaced_pod(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespaced_pod: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Pod**](V1Pod.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespaced_pod_status** +> V1Pod patch_core_v1_namespaced_pod_status(name, namespace, body, pretty=pretty) + + + +partially update status of the specified Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespaced_pod_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespaced_pod_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Pod**](V1Pod.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespaced_pod_template** +> V1PodTemplate patch_core_v1_namespaced_pod_template(name, namespace, body, pretty=pretty) + + + +partially update the specified PodTemplate + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PodTemplate +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespaced_pod_template(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespaced_pod_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodTemplate | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PodTemplate**](V1PodTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespaced_replication_controller** +> V1ReplicationController patch_core_v1_namespaced_replication_controller(name, namespace, body, pretty=pretty) + + + +partially update the specified ReplicationController + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ReplicationController +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespaced_replication_controller(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespaced_replication_controller: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ReplicationController | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ReplicationController**](V1ReplicationController.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespaced_replication_controller_status** +> V1ReplicationController patch_core_v1_namespaced_replication_controller_status(name, namespace, body, pretty=pretty) + + + +partially update status of the specified ReplicationController + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ReplicationController +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespaced_replication_controller_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespaced_replication_controller_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ReplicationController | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ReplicationController**](V1ReplicationController.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespaced_resource_quota** +> V1ResourceQuota patch_core_v1_namespaced_resource_quota(name, namespace, body, pretty=pretty) + + + +partially update the specified ResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ResourceQuota +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespaced_resource_quota(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespaced_resource_quota: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ResourceQuota | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ResourceQuota**](V1ResourceQuota.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespaced_resource_quota_status** +> V1ResourceQuota patch_core_v1_namespaced_resource_quota_status(name, namespace, body, pretty=pretty) + + + +partially update status of the specified ResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ResourceQuota +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespaced_resource_quota_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespaced_resource_quota_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ResourceQuota | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ResourceQuota**](V1ResourceQuota.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespaced_scale_scale** +> V1Scale patch_core_v1_namespaced_scale_scale(name, namespace, body, pretty=pretty) + + + +partially update scale of the specified Scale + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespaced_scale_scale(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespaced_scale_scale: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Scale | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Scale**](V1Scale.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespaced_secret** +> V1Secret patch_core_v1_namespaced_secret(name, namespace, body, pretty=pretty) + + + +partially update the specified Secret + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Secret +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespaced_secret(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespaced_secret: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Secret | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Secret**](V1Secret.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespaced_service** +> V1Service patch_core_v1_namespaced_service(name, namespace, body, pretty=pretty) + + + +partially update the specified Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespaced_service(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespaced_service: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Service**](V1Service.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespaced_service_account** +> V1ServiceAccount patch_core_v1_namespaced_service_account(name, namespace, body, pretty=pretty) + + + +partially update the specified ServiceAccount + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ServiceAccount +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespaced_service_account(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespaced_service_account: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ServiceAccount | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ServiceAccount**](V1ServiceAccount.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_namespaced_service_status** +> V1Service patch_core_v1_namespaced_service_status(name, namespace, body, pretty=pretty) + + + +partially update status of the specified Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_namespaced_service_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_namespaced_service_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Service**](V1Service.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_node** +> V1Node patch_core_v1_node(name, body, pretty=pretty) + + + +partially update the specified Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_node(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_node: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Node**](V1Node.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_node_status** +> V1Node patch_core_v1_node_status(name, body, pretty=pretty) + + + +partially update status of the specified Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_node_status(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_node_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Node**](V1Node.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_persistent_volume** +> V1PersistentVolume patch_core_v1_persistent_volume(name, body, pretty=pretty) + + + +partially update the specified PersistentVolume + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PersistentVolume +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_persistent_volume(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_persistent_volume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PersistentVolume | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PersistentVolume**](V1PersistentVolume.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_core_v1_persistent_volume_status** +> V1PersistentVolume patch_core_v1_persistent_volume_status(name, body, pretty=pretty) + + + +partially update status of the specified PersistentVolume + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PersistentVolume +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_core_v1_persistent_volume_status(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->patch_core_v1_persistent_volume_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PersistentVolume | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PersistentVolume**](V1PersistentVolume.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_delete_namespaced_pod** +> str proxy_core_v1_delete_namespaced_pod(name, namespace) + + + +proxy DELETE requests to Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.proxy_core_v1_delete_namespaced_pod(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_delete_namespaced_pod: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_delete_namespaced_pod_with_path** +> str proxy_core_v1_delete_namespaced_pod_with_path(name, namespace, path) + + + +proxy DELETE requests to Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_core_v1_delete_namespaced_pod_with_path(name, namespace, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_delete_namespaced_pod_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_delete_namespaced_service** +> str proxy_core_v1_delete_namespaced_service(name, namespace) + + + +proxy DELETE requests to Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.proxy_core_v1_delete_namespaced_service(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_delete_namespaced_service: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_delete_namespaced_service_with_path** +> str proxy_core_v1_delete_namespaced_service_with_path(name, namespace, path) + + + +proxy DELETE requests to Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_core_v1_delete_namespaced_service_with_path(name, namespace, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_delete_namespaced_service_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_delete_node** +> str proxy_core_v1_delete_node(name) + + + +proxy DELETE requests to Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node + +try: + api_response = api_instance.proxy_core_v1_delete_node(name) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_delete_node: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_delete_node_with_path** +> str proxy_core_v1_delete_node_with_path(name, path) + + + +proxy DELETE requests to Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_core_v1_delete_node_with_path(name, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_delete_node_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **path** | **str**| path to the resource | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_get_namespaced_pod** +> str proxy_core_v1_get_namespaced_pod(name, namespace) + + + +proxy GET requests to Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.proxy_core_v1_get_namespaced_pod(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_get_namespaced_pod: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_get_namespaced_pod_with_path** +> str proxy_core_v1_get_namespaced_pod_with_path(name, namespace, path) + + + +proxy GET requests to Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_core_v1_get_namespaced_pod_with_path(name, namespace, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_get_namespaced_pod_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_get_namespaced_service** +> str proxy_core_v1_get_namespaced_service(name, namespace) + + + +proxy GET requests to Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.proxy_core_v1_get_namespaced_service(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_get_namespaced_service: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_get_namespaced_service_with_path** +> str proxy_core_v1_get_namespaced_service_with_path(name, namespace, path) + + + +proxy GET requests to Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_core_v1_get_namespaced_service_with_path(name, namespace, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_get_namespaced_service_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_get_node** +> str proxy_core_v1_get_node(name) + + + +proxy GET requests to Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node + +try: + api_response = api_instance.proxy_core_v1_get_node(name) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_get_node: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_get_node_with_path** +> str proxy_core_v1_get_node_with_path(name, path) + + + +proxy GET requests to Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_core_v1_get_node_with_path(name, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_get_node_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **path** | **str**| path to the resource | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_head_namespaced_pod** +> str proxy_core_v1_head_namespaced_pod(name, namespace) + + + +proxy HEAD requests to Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.proxy_core_v1_head_namespaced_pod(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_head_namespaced_pod: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_head_namespaced_pod_with_path** +> str proxy_core_v1_head_namespaced_pod_with_path(name, namespace, path) + + + +proxy HEAD requests to Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_core_v1_head_namespaced_pod_with_path(name, namespace, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_head_namespaced_pod_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_head_namespaced_service** +> str proxy_core_v1_head_namespaced_service(name, namespace) + + + +proxy HEAD requests to Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.proxy_core_v1_head_namespaced_service(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_head_namespaced_service: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_head_namespaced_service_with_path** +> str proxy_core_v1_head_namespaced_service_with_path(name, namespace, path) + + + +proxy HEAD requests to Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_core_v1_head_namespaced_service_with_path(name, namespace, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_head_namespaced_service_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_head_node** +> str proxy_core_v1_head_node(name) + + + +proxy HEAD requests to Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node + +try: + api_response = api_instance.proxy_core_v1_head_node(name) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_head_node: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_head_node_with_path** +> str proxy_core_v1_head_node_with_path(name, path) + + + +proxy HEAD requests to Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_core_v1_head_node_with_path(name, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_head_node_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **path** | **str**| path to the resource | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_options_namespaced_pod** +> str proxy_core_v1_options_namespaced_pod(name, namespace) + + + +proxy OPTIONS requests to Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.proxy_core_v1_options_namespaced_pod(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_options_namespaced_pod: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_options_namespaced_pod_with_path** +> str proxy_core_v1_options_namespaced_pod_with_path(name, namespace, path) + + + +proxy OPTIONS requests to Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_core_v1_options_namespaced_pod_with_path(name, namespace, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_options_namespaced_pod_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_options_namespaced_service** +> str proxy_core_v1_options_namespaced_service(name, namespace) + + + +proxy OPTIONS requests to Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.proxy_core_v1_options_namespaced_service(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_options_namespaced_service: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_options_namespaced_service_with_path** +> str proxy_core_v1_options_namespaced_service_with_path(name, namespace, path) + + + +proxy OPTIONS requests to Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_core_v1_options_namespaced_service_with_path(name, namespace, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_options_namespaced_service_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_options_node** +> str proxy_core_v1_options_node(name) + + + +proxy OPTIONS requests to Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node + +try: + api_response = api_instance.proxy_core_v1_options_node(name) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_options_node: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_options_node_with_path** +> str proxy_core_v1_options_node_with_path(name, path) + + + +proxy OPTIONS requests to Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_core_v1_options_node_with_path(name, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_options_node_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **path** | **str**| path to the resource | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_post_namespaced_pod** +> str proxy_core_v1_post_namespaced_pod(name, namespace) + + + +proxy POST requests to Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.proxy_core_v1_post_namespaced_pod(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_post_namespaced_pod: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_post_namespaced_pod_with_path** +> str proxy_core_v1_post_namespaced_pod_with_path(name, namespace, path) + + + +proxy POST requests to Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_core_v1_post_namespaced_pod_with_path(name, namespace, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_post_namespaced_pod_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_post_namespaced_service** +> str proxy_core_v1_post_namespaced_service(name, namespace) + + + +proxy POST requests to Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.proxy_core_v1_post_namespaced_service(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_post_namespaced_service: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_post_namespaced_service_with_path** +> str proxy_core_v1_post_namespaced_service_with_path(name, namespace, path) + + + +proxy POST requests to Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_core_v1_post_namespaced_service_with_path(name, namespace, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_post_namespaced_service_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_post_node** +> str proxy_core_v1_post_node(name) + + + +proxy POST requests to Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node + +try: + api_response = api_instance.proxy_core_v1_post_node(name) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_post_node: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_post_node_with_path** +> str proxy_core_v1_post_node_with_path(name, path) + + + +proxy POST requests to Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_core_v1_post_node_with_path(name, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_post_node_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **path** | **str**| path to the resource | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_put_namespaced_pod** +> str proxy_core_v1_put_namespaced_pod(name, namespace) + + + +proxy PUT requests to Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.proxy_core_v1_put_namespaced_pod(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_put_namespaced_pod: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_put_namespaced_pod_with_path** +> str proxy_core_v1_put_namespaced_pod_with_path(name, namespace, path) + + + +proxy PUT requests to Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_core_v1_put_namespaced_pod_with_path(name, namespace, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_put_namespaced_pod_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_put_namespaced_service** +> str proxy_core_v1_put_namespaced_service(name, namespace) + + + +proxy PUT requests to Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.proxy_core_v1_put_namespaced_service(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_put_namespaced_service: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_put_namespaced_service_with_path** +> str proxy_core_v1_put_namespaced_service_with_path(name, namespace, path) + + + +proxy PUT requests to Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_core_v1_put_namespaced_service_with_path(name, namespace, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_put_namespaced_service_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_put_node** +> str proxy_core_v1_put_node(name) + + + +proxy PUT requests to Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node + +try: + api_response = api_instance.proxy_core_v1_put_node(name) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_put_node: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **proxy_core_v1_put_node_with_path** +> str proxy_core_v1_put_node_with_path(name, path) + + + +proxy PUT requests to Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_core_v1_put_node_with_path(name, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_core_v1_put_node_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **path** | **str**| path to the resource | + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_component_status** +> V1ComponentStatus read_core_v1_component_status(name, pretty=pretty) + + + +read the specified ComponentStatus + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ComponentStatus +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_core_v1_component_status(name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_component_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ComponentStatus | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ComponentStatus**](V1ComponentStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespace** +> V1Namespace read_core_v1_namespace(name, pretty=pretty, exact=exact, export=export) + + + +read the specified Namespace + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Namespace +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_core_v1_namespace(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespace: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Namespace | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1Namespace**](V1Namespace.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespace_status** +> V1Namespace read_core_v1_namespace_status(name, pretty=pretty) + + + +read status of the specified Namespace + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Namespace +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_core_v1_namespace_status(name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespace_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Namespace | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Namespace**](V1Namespace.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_config_map** +> V1ConfigMap read_core_v1_namespaced_config_map(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified ConfigMap + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ConfigMap +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_config_map(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_config_map: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ConfigMap | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1ConfigMap**](V1ConfigMap.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_endpoints** +> V1Endpoints read_core_v1_namespaced_endpoints(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified Endpoints + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Endpoints +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_endpoints(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_endpoints: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Endpoints | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1Endpoints**](V1Endpoints.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_event** +> V1Event read_core_v1_namespaced_event(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified Event + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Event +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_event(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_event: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Event | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1Event**](V1Event.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_limit_range** +> V1LimitRange read_core_v1_namespaced_limit_range(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified LimitRange + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the LimitRange +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_limit_range(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_limit_range: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the LimitRange | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1LimitRange**](V1LimitRange.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_persistent_volume_claim** +> V1PersistentVolumeClaim read_core_v1_namespaced_persistent_volume_claim(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified PersistentVolumeClaim + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PersistentVolumeClaim +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_persistent_volume_claim(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_persistent_volume_claim: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PersistentVolumeClaim | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_persistent_volume_claim_status** +> V1PersistentVolumeClaim read_core_v1_namespaced_persistent_volume_claim_status(name, namespace, pretty=pretty) + + + +read status of the specified PersistentVolumeClaim + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PersistentVolumeClaim +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_persistent_volume_claim_status(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_persistent_volume_claim_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PersistentVolumeClaim | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_pod** +> V1Pod read_core_v1_namespaced_pod(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_pod(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_pod: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1Pod**](V1Pod.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_pod_log** +> V1Pod read_core_v1_namespaced_pod_log(name, namespace, container=container, follow=follow, limit_bytes=limit_bytes, pretty=pretty, previous=previous, since_seconds=since_seconds, since_time=since_time, tail_lines=tail_lines, timestamps=timestamps) + + + +read log of the specified Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +container = 'container_example' # str | The container for which to stream logs. Defaults to only container if there is one container in the pod. (optional) +follow = true # bool | Follow the log stream of the pod. Defaults to false. (optional) +limit_bytes = 56 # int | If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +previous = true # bool | Return previous terminated container logs. Defaults to false. (optional) +since_seconds = 56 # int | A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. (optional) +since_time = 'since_time_example' # str | An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. (optional) +tail_lines = 56 # int | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime (optional) +timestamps = true # bool | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_pod_log(name, namespace, container=container, follow=follow, limit_bytes=limit_bytes, pretty=pretty, previous=previous, since_seconds=since_seconds, since_time=since_time, tail_lines=tail_lines, timestamps=timestamps) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_pod_log: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **container** | **str**| The container for which to stream logs. Defaults to only container if there is one container in the pod. | [optional] + **follow** | **bool**| Follow the log stream of the pod. Defaults to false. | [optional] + **limit_bytes** | **int**| If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **previous** | **bool**| Return previous terminated container logs. Defaults to false. | [optional] + **since_seconds** | **int**| A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. | [optional] + **since_time** | **str**| An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. | [optional] + **tail_lines** | **int**| If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime | [optional] + **timestamps** | **bool**| If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. | [optional] + +### Return type + +[**V1Pod**](V1Pod.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: text/plain, application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_pod_status** +> V1Pod read_core_v1_namespaced_pod_status(name, namespace, pretty=pretty) + + + +read status of the specified Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_pod_status(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_pod_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Pod**](V1Pod.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_pod_template** +> V1PodTemplate read_core_v1_namespaced_pod_template(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified PodTemplate + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PodTemplate +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_pod_template(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_pod_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodTemplate | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1PodTemplate**](V1PodTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_replication_controller** +> V1ReplicationController read_core_v1_namespaced_replication_controller(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified ReplicationController + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ReplicationController +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_replication_controller(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_replication_controller: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ReplicationController | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1ReplicationController**](V1ReplicationController.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_replication_controller_status** +> V1ReplicationController read_core_v1_namespaced_replication_controller_status(name, namespace, pretty=pretty) + + + +read status of the specified ReplicationController + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ReplicationController +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_replication_controller_status(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_replication_controller_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ReplicationController | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ReplicationController**](V1ReplicationController.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_resource_quota** +> V1ResourceQuota read_core_v1_namespaced_resource_quota(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified ResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ResourceQuota +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_resource_quota(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_resource_quota: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ResourceQuota | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1ResourceQuota**](V1ResourceQuota.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_resource_quota_status** +> V1ResourceQuota read_core_v1_namespaced_resource_quota_status(name, namespace, pretty=pretty) + + + +read status of the specified ResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ResourceQuota +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_resource_quota_status(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_resource_quota_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ResourceQuota | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ResourceQuota**](V1ResourceQuota.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_scale_scale** +> V1Scale read_core_v1_namespaced_scale_scale(name, namespace, pretty=pretty) + + + +read scale of the specified Scale + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_scale_scale(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_scale_scale: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Scale | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Scale**](V1Scale.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_secret** +> V1Secret read_core_v1_namespaced_secret(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified Secret + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Secret +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_secret(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_secret: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Secret | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1Secret**](V1Secret.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_service** +> V1Service read_core_v1_namespaced_service(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_service(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_service: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1Service**](V1Service.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_service_account** +> V1ServiceAccount read_core_v1_namespaced_service_account(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified ServiceAccount + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ServiceAccount +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_service_account(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_service_account: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ServiceAccount | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1ServiceAccount**](V1ServiceAccount.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_namespaced_service_status** +> V1Service read_core_v1_namespaced_service_status(name, namespace, pretty=pretty) + + + +read status of the specified Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_core_v1_namespaced_service_status(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_namespaced_service_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Service**](V1Service.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_node** +> V1Node read_core_v1_node(name, pretty=pretty, exact=exact, export=export) + + + +read the specified Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_core_v1_node(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_node: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1Node**](V1Node.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_node_status** +> V1Node read_core_v1_node_status(name, pretty=pretty) + + + +read status of the specified Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_core_v1_node_status(name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_node_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Node**](V1Node.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_persistent_volume** +> V1PersistentVolume read_core_v1_persistent_volume(name, pretty=pretty, exact=exact, export=export) + + + +read the specified PersistentVolume + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PersistentVolume +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_core_v1_persistent_volume(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_persistent_volume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PersistentVolume | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1PersistentVolume**](V1PersistentVolume.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_core_v1_persistent_volume_status** +> V1PersistentVolume read_core_v1_persistent_volume_status(name, pretty=pretty) + + + +read status of the specified PersistentVolume + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PersistentVolume +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_core_v1_persistent_volume_status(name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_core_v1_persistent_volume_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PersistentVolume | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PersistentVolume**](V1PersistentVolume.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespace** +> V1Namespace replace_core_v1_namespace(name, body, pretty=pretty) + + + +replace the specified Namespace + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Namespace +body = k8sclient.V1Namespace() # V1Namespace | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespace(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespace: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Namespace | + **body** | [**V1Namespace**](V1Namespace.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Namespace**](V1Namespace.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespace_finalize** +> V1Namespace replace_core_v1_namespace_finalize(body, name, pretty=pretty) + + + +replace finalize of the specified Namespace + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +body = k8sclient.V1Namespace() # V1Namespace | +name = 'name_example' # str | name of the Namespace +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespace_finalize(body, name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespace_finalize: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Namespace**](V1Namespace.md)| | + **name** | **str**| name of the Namespace | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Namespace**](V1Namespace.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespace_status** +> V1Namespace replace_core_v1_namespace_status(name, body, pretty=pretty) + + + +replace status of the specified Namespace + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Namespace +body = k8sclient.V1Namespace() # V1Namespace | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespace_status(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespace_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Namespace | + **body** | [**V1Namespace**](V1Namespace.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Namespace**](V1Namespace.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespaced_config_map** +> V1ConfigMap replace_core_v1_namespaced_config_map(name, namespace, body, pretty=pretty) + + + +replace the specified ConfigMap + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ConfigMap +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1ConfigMap() # V1ConfigMap | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespaced_config_map(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespaced_config_map: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ConfigMap | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1ConfigMap**](V1ConfigMap.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ConfigMap**](V1ConfigMap.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespaced_endpoints** +> V1Endpoints replace_core_v1_namespaced_endpoints(name, namespace, body, pretty=pretty) + + + +replace the specified Endpoints + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Endpoints +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1Endpoints() # V1Endpoints | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespaced_endpoints(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespaced_endpoints: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Endpoints | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Endpoints**](V1Endpoints.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Endpoints**](V1Endpoints.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespaced_event** +> V1Event replace_core_v1_namespaced_event(name, namespace, body, pretty=pretty) + + + +replace the specified Event + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Event +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1Event() # V1Event | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespaced_event(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespaced_event: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Event | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Event**](V1Event.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Event**](V1Event.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespaced_limit_range** +> V1LimitRange replace_core_v1_namespaced_limit_range(name, namespace, body, pretty=pretty) + + + +replace the specified LimitRange + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the LimitRange +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1LimitRange() # V1LimitRange | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespaced_limit_range(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespaced_limit_range: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the LimitRange | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1LimitRange**](V1LimitRange.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1LimitRange**](V1LimitRange.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespaced_persistent_volume_claim** +> V1PersistentVolumeClaim replace_core_v1_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty) + + + +replace the specified PersistentVolumeClaim + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PersistentVolumeClaim +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1PersistentVolumeClaim() # V1PersistentVolumeClaim | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespaced_persistent_volume_claim: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PersistentVolumeClaim | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespaced_persistent_volume_claim_status** +> V1PersistentVolumeClaim replace_core_v1_namespaced_persistent_volume_claim_status(name, namespace, body, pretty=pretty) + + + +replace status of the specified PersistentVolumeClaim + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PersistentVolumeClaim +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1PersistentVolumeClaim() # V1PersistentVolumeClaim | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespaced_persistent_volume_claim_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespaced_persistent_volume_claim_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PersistentVolumeClaim | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespaced_pod** +> V1Pod replace_core_v1_namespaced_pod(name, namespace, body, pretty=pretty) + + + +replace the specified Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1Pod() # V1Pod | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespaced_pod(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespaced_pod: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Pod**](V1Pod.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Pod**](V1Pod.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespaced_pod_status** +> V1Pod replace_core_v1_namespaced_pod_status(name, namespace, body, pretty=pretty) + + + +replace status of the specified Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1Pod() # V1Pod | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespaced_pod_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespaced_pod_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Pod**](V1Pod.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Pod**](V1Pod.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespaced_pod_template** +> V1PodTemplate replace_core_v1_namespaced_pod_template(name, namespace, body, pretty=pretty) + + + +replace the specified PodTemplate + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PodTemplate +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1PodTemplate() # V1PodTemplate | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespaced_pod_template(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespaced_pod_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodTemplate | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1PodTemplate**](V1PodTemplate.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PodTemplate**](V1PodTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespaced_replication_controller** +> V1ReplicationController replace_core_v1_namespaced_replication_controller(name, namespace, body, pretty=pretty) + + + +replace the specified ReplicationController + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ReplicationController +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1ReplicationController() # V1ReplicationController | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespaced_replication_controller(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespaced_replication_controller: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ReplicationController | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1ReplicationController**](V1ReplicationController.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ReplicationController**](V1ReplicationController.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespaced_replication_controller_status** +> V1ReplicationController replace_core_v1_namespaced_replication_controller_status(name, namespace, body, pretty=pretty) + + + +replace status of the specified ReplicationController + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ReplicationController +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1ReplicationController() # V1ReplicationController | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespaced_replication_controller_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespaced_replication_controller_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ReplicationController | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1ReplicationController**](V1ReplicationController.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ReplicationController**](V1ReplicationController.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespaced_resource_quota** +> V1ResourceQuota replace_core_v1_namespaced_resource_quota(name, namespace, body, pretty=pretty) + + + +replace the specified ResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ResourceQuota +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1ResourceQuota() # V1ResourceQuota | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespaced_resource_quota(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespaced_resource_quota: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ResourceQuota | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1ResourceQuota**](V1ResourceQuota.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ResourceQuota**](V1ResourceQuota.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespaced_resource_quota_status** +> V1ResourceQuota replace_core_v1_namespaced_resource_quota_status(name, namespace, body, pretty=pretty) + + + +replace status of the specified ResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ResourceQuota +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1ResourceQuota() # V1ResourceQuota | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespaced_resource_quota_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespaced_resource_quota_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ResourceQuota | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1ResourceQuota**](V1ResourceQuota.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ResourceQuota**](V1ResourceQuota.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespaced_scale_scale** +> V1Scale replace_core_v1_namespaced_scale_scale(name, namespace, body, pretty=pretty) + + + +replace scale of the specified Scale + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1Scale() # V1Scale | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespaced_scale_scale(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespaced_scale_scale: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Scale | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Scale**](V1Scale.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Scale**](V1Scale.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespaced_secret** +> V1Secret replace_core_v1_namespaced_secret(name, namespace, body, pretty=pretty) + + + +replace the specified Secret + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Secret +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1Secret() # V1Secret | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespaced_secret(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespaced_secret: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Secret | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Secret**](V1Secret.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Secret**](V1Secret.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespaced_service** +> V1Service replace_core_v1_namespaced_service(name, namespace, body, pretty=pretty) + + + +replace the specified Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1Service() # V1Service | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespaced_service(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespaced_service: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Service**](V1Service.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Service**](V1Service.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespaced_service_account** +> V1ServiceAccount replace_core_v1_namespaced_service_account(name, namespace, body, pretty=pretty) + + + +replace the specified ServiceAccount + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ServiceAccount +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1ServiceAccount() # V1ServiceAccount | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespaced_service_account(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespaced_service_account: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ServiceAccount | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1ServiceAccount**](V1ServiceAccount.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ServiceAccount**](V1ServiceAccount.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_namespaced_service_status** +> V1Service replace_core_v1_namespaced_service_status(name, namespace, body, pretty=pretty) + + + +replace status of the specified Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1Service() # V1Service | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_namespaced_service_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_namespaced_service_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Service**](V1Service.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Service**](V1Service.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_node** +> V1Node replace_core_v1_node(name, body, pretty=pretty) + + + +replace the specified Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +body = k8sclient.V1Node() # V1Node | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_node(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_node: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **body** | [**V1Node**](V1Node.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Node**](V1Node.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_node_status** +> V1Node replace_core_v1_node_status(name, body, pretty=pretty) + + + +replace status of the specified Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +body = k8sclient.V1Node() # V1Node | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_node_status(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_node_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **body** | [**V1Node**](V1Node.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Node**](V1Node.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_persistent_volume** +> V1PersistentVolume replace_core_v1_persistent_volume(name, body, pretty=pretty) + + + +replace the specified PersistentVolume + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PersistentVolume +body = k8sclient.V1PersistentVolume() # V1PersistentVolume | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_persistent_volume(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_persistent_volume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PersistentVolume | + **body** | [**V1PersistentVolume**](V1PersistentVolume.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PersistentVolume**](V1PersistentVolume.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_core_v1_persistent_volume_status** +> V1PersistentVolume replace_core_v1_persistent_volume_status(name, body, pretty=pretty) + + + +replace status of the specified PersistentVolume + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PersistentVolume +body = k8sclient.V1PersistentVolume() # V1PersistentVolume | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_core_v1_persistent_volume_status(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_core_v1_persistent_volume_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PersistentVolume | + **body** | [**V1PersistentVolume**](V1PersistentVolume.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PersistentVolume**](V1PersistentVolume.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_config_map_list_for_all_namespaces** +> VersionedEvent watch_core_v1_config_map_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of ConfigMap + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_config_map_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_config_map_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_endpoints_list_for_all_namespaces** +> VersionedEvent watch_core_v1_endpoints_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Endpoints + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_endpoints_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_endpoints_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_event_list_for_all_namespaces** +> VersionedEvent watch_core_v1_event_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Event + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_event_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_event_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_limit_range_list_for_all_namespaces** +> VersionedEvent watch_core_v1_limit_range_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of LimitRange + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_limit_range_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_limit_range_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespace** +> VersionedEvent watch_core_v1_namespace(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind Namespace + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Namespace +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespace(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespace: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Namespace | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespace_list** +> VersionedEvent watch_core_v1_namespace_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Namespace + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespace_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespace_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_config_map** +> VersionedEvent watch_core_v1_namespaced_config_map(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind ConfigMap + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ConfigMap +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_config_map(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_config_map: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ConfigMap | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_config_map_list** +> VersionedEvent watch_core_v1_namespaced_config_map_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of ConfigMap + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_config_map_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_config_map_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_endpoints** +> VersionedEvent watch_core_v1_namespaced_endpoints(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind Endpoints + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Endpoints +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_endpoints(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_endpoints: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Endpoints | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_endpoints_list** +> VersionedEvent watch_core_v1_namespaced_endpoints_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Endpoints + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_endpoints_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_endpoints_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_event** +> VersionedEvent watch_core_v1_namespaced_event(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind Event + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Event +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_event(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_event: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Event | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_event_list** +> VersionedEvent watch_core_v1_namespaced_event_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Event + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_event_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_event_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_limit_range** +> VersionedEvent watch_core_v1_namespaced_limit_range(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind LimitRange + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the LimitRange +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_limit_range(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_limit_range: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the LimitRange | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_limit_range_list** +> VersionedEvent watch_core_v1_namespaced_limit_range_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of LimitRange + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_limit_range_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_limit_range_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_persistent_volume_claim** +> VersionedEvent watch_core_v1_namespaced_persistent_volume_claim(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind PersistentVolumeClaim + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PersistentVolumeClaim +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_persistent_volume_claim(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_persistent_volume_claim: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PersistentVolumeClaim | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_persistent_volume_claim_list** +> VersionedEvent watch_core_v1_namespaced_persistent_volume_claim_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of PersistentVolumeClaim + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_persistent_volume_claim_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_persistent_volume_claim_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_pod** +> VersionedEvent watch_core_v1_namespaced_pod(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Pod +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_pod(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_pod: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Pod | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_pod_list** +> VersionedEvent watch_core_v1_namespaced_pod_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_pod_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_pod_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_pod_template** +> VersionedEvent watch_core_v1_namespaced_pod_template(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind PodTemplate + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PodTemplate +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_pod_template(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_pod_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodTemplate | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_pod_template_list** +> VersionedEvent watch_core_v1_namespaced_pod_template_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of PodTemplate + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_pod_template_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_pod_template_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_replication_controller** +> VersionedEvent watch_core_v1_namespaced_replication_controller(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind ReplicationController + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ReplicationController +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_replication_controller(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_replication_controller: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ReplicationController | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_replication_controller_list** +> VersionedEvent watch_core_v1_namespaced_replication_controller_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of ReplicationController + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_replication_controller_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_replication_controller_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_resource_quota** +> VersionedEvent watch_core_v1_namespaced_resource_quota(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind ResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ResourceQuota +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_resource_quota(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_resource_quota: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ResourceQuota | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_resource_quota_list** +> VersionedEvent watch_core_v1_namespaced_resource_quota_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of ResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_resource_quota_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_resource_quota_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_secret** +> VersionedEvent watch_core_v1_namespaced_secret(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind Secret + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Secret +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_secret(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_secret: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Secret | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_secret_list** +> VersionedEvent watch_core_v1_namespaced_secret_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Secret + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_secret_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_secret_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_service** +> VersionedEvent watch_core_v1_namespaced_service(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_service(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_service: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_service_account** +> VersionedEvent watch_core_v1_namespaced_service_account(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind ServiceAccount + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the ServiceAccount +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_service_account(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_service_account: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ServiceAccount | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_service_account_list** +> VersionedEvent watch_core_v1_namespaced_service_account_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of ServiceAccount + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_service_account_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_service_account_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_namespaced_service_list** +> VersionedEvent watch_core_v1_namespaced_service_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_namespaced_service_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_namespaced_service_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_node** +> VersionedEvent watch_core_v1_node(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the Node +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_node(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_node: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Node | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_node_list** +> VersionedEvent watch_core_v1_node_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Node + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_node_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_node_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_persistent_volume** +> VersionedEvent watch_core_v1_persistent_volume(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind PersistentVolume + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +name = 'name_example' # str | name of the PersistentVolume +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_persistent_volume(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_persistent_volume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PersistentVolume | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_persistent_volume_claim_list_for_all_namespaces** +> VersionedEvent watch_core_v1_persistent_volume_claim_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of PersistentVolumeClaim + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_persistent_volume_claim_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_persistent_volume_claim_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_persistent_volume_list** +> VersionedEvent watch_core_v1_persistent_volume_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of PersistentVolume + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_persistent_volume_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_persistent_volume_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_pod_list_for_all_namespaces** +> VersionedEvent watch_core_v1_pod_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Pod + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_pod_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_pod_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_pod_template_list_for_all_namespaces** +> VersionedEvent watch_core_v1_pod_template_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of PodTemplate + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_pod_template_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_pod_template_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_replication_controller_list_for_all_namespaces** +> VersionedEvent watch_core_v1_replication_controller_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of ReplicationController + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_replication_controller_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_replication_controller_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_resource_quota_list_for_all_namespaces** +> VersionedEvent watch_core_v1_resource_quota_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of ResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_resource_quota_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_resource_quota_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_secret_list_for_all_namespaces** +> VersionedEvent watch_core_v1_secret_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Secret + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_secret_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_secret_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_service_account_list_for_all_namespaces** +> VersionedEvent watch_core_v1_service_account_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of ServiceAccount + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_service_account_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_service_account_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_core_v1_service_list_for_all_namespaces** +> VersionedEvent watch_core_v1_service_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Service + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.CoreV1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_core_v1_service_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->watch_core_v1_service_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ExtensionsApi.md b/docs/ExtensionsApi.md new file mode 100644 index 000000000..17660da66 --- /dev/null +++ b/docs/ExtensionsApi.md @@ -0,0 +1,57 @@ +# k8sclient.ExtensionsApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_extensions_api_group**](ExtensionsApi.md#get_extensions_api_group) | **GET** /apis/extensions/ | + + +# **get_extensions_api_group** +> UnversionedAPIGroup get_extensions_api_group() + + + +get information of a group + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsApi() + +try: + api_response = api_instance.get_extensions_api_group() + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsApi->get_extensions_api_group: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIGroup**](UnversionedAPIGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ExtensionsV1beta1Api.md b/docs/ExtensionsV1beta1Api.md new file mode 100644 index 000000000..424199ef2 --- /dev/null +++ b/docs/ExtensionsV1beta1Api.md @@ -0,0 +1,7011 @@ +# k8sclient.ExtensionsV1beta1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_extensions_v1beta1_namespaced_daemon_set**](ExtensionsV1beta1Api.md#create_extensions_v1beta1_namespaced_daemon_set) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | +[**create_extensions_v1beta1_namespaced_deployment**](ExtensionsV1beta1Api.md#create_extensions_v1beta1_namespaced_deployment) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | +[**create_extensions_v1beta1_namespaced_deployment_rollback_rollback**](ExtensionsV1beta1Api.md#create_extensions_v1beta1_namespaced_deployment_rollback_rollback) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback | +[**create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers | +[**create_extensions_v1beta1_namespaced_ingress**](ExtensionsV1beta1Api.md#create_extensions_v1beta1_namespaced_ingress) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | +[**create_extensions_v1beta1_namespaced_job**](ExtensionsV1beta1Api.md#create_extensions_v1beta1_namespaced_job) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/jobs | +[**create_extensions_v1beta1_namespaced_network_policy**](ExtensionsV1beta1Api.md#create_extensions_v1beta1_namespaced_network_policy) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | +[**create_extensions_v1beta1_namespaced_replica_set**](ExtensionsV1beta1Api.md#create_extensions_v1beta1_namespaced_replica_set) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | +[**create_extensions_v1beta1_third_party_resource**](ExtensionsV1beta1Api.md#create_extensions_v1beta1_third_party_resource) | **POST** /apis/extensions/v1beta1/thirdpartyresources | +[**delete_extensions_v1beta1_collection_namespaced_daemon_set**](ExtensionsV1beta1Api.md#delete_extensions_v1beta1_collection_namespaced_daemon_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | +[**delete_extensions_v1beta1_collection_namespaced_deployment**](ExtensionsV1beta1Api.md#delete_extensions_v1beta1_collection_namespaced_deployment) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | +[**delete_extensions_v1beta1_collection_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#delete_extensions_v1beta1_collection_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers | +[**delete_extensions_v1beta1_collection_namespaced_ingress**](ExtensionsV1beta1Api.md#delete_extensions_v1beta1_collection_namespaced_ingress) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | +[**delete_extensions_v1beta1_collection_namespaced_job**](ExtensionsV1beta1Api.md#delete_extensions_v1beta1_collection_namespaced_job) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/jobs | +[**delete_extensions_v1beta1_collection_namespaced_network_policy**](ExtensionsV1beta1Api.md#delete_extensions_v1beta1_collection_namespaced_network_policy) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | +[**delete_extensions_v1beta1_collection_namespaced_replica_set**](ExtensionsV1beta1Api.md#delete_extensions_v1beta1_collection_namespaced_replica_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | +[**delete_extensions_v1beta1_collection_third_party_resource**](ExtensionsV1beta1Api.md#delete_extensions_v1beta1_collection_third_party_resource) | **DELETE** /apis/extensions/v1beta1/thirdpartyresources | +[**delete_extensions_v1beta1_namespaced_daemon_set**](ExtensionsV1beta1Api.md#delete_extensions_v1beta1_namespaced_daemon_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | +[**delete_extensions_v1beta1_namespaced_deployment**](ExtensionsV1beta1Api.md#delete_extensions_v1beta1_namespaced_deployment) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | +[**delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +[**delete_extensions_v1beta1_namespaced_ingress**](ExtensionsV1beta1Api.md#delete_extensions_v1beta1_namespaced_ingress) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | +[**delete_extensions_v1beta1_namespaced_job**](ExtensionsV1beta1Api.md#delete_extensions_v1beta1_namespaced_job) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | +[**delete_extensions_v1beta1_namespaced_network_policy**](ExtensionsV1beta1Api.md#delete_extensions_v1beta1_namespaced_network_policy) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | +[**delete_extensions_v1beta1_namespaced_replica_set**](ExtensionsV1beta1Api.md#delete_extensions_v1beta1_namespaced_replica_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | +[**delete_extensions_v1beta1_third_party_resource**](ExtensionsV1beta1Api.md#delete_extensions_v1beta1_third_party_resource) | **DELETE** /apis/extensions/v1beta1/thirdpartyresources/{name} | +[**get_extensions_v1beta1_api_resources**](ExtensionsV1beta1Api.md#get_extensions_v1beta1_api_resources) | **GET** /apis/extensions/v1beta1/ | +[**list_extensions_v1beta1_daemon_set_for_all_namespaces**](ExtensionsV1beta1Api.md#list_extensions_v1beta1_daemon_set_for_all_namespaces) | **GET** /apis/extensions/v1beta1/daemonsets | +[**list_extensions_v1beta1_deployment_for_all_namespaces**](ExtensionsV1beta1Api.md#list_extensions_v1beta1_deployment_for_all_namespaces) | **GET** /apis/extensions/v1beta1/deployments | +[**list_extensions_v1beta1_horizontal_pod_autoscaler_for_all_namespaces**](ExtensionsV1beta1Api.md#list_extensions_v1beta1_horizontal_pod_autoscaler_for_all_namespaces) | **GET** /apis/extensions/v1beta1/horizontalpodautoscalers | +[**list_extensions_v1beta1_ingress_for_all_namespaces**](ExtensionsV1beta1Api.md#list_extensions_v1beta1_ingress_for_all_namespaces) | **GET** /apis/extensions/v1beta1/ingresses | +[**list_extensions_v1beta1_job_for_all_namespaces**](ExtensionsV1beta1Api.md#list_extensions_v1beta1_job_for_all_namespaces) | **GET** /apis/extensions/v1beta1/jobs | +[**list_extensions_v1beta1_namespaced_daemon_set**](ExtensionsV1beta1Api.md#list_extensions_v1beta1_namespaced_daemon_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | +[**list_extensions_v1beta1_namespaced_deployment**](ExtensionsV1beta1Api.md#list_extensions_v1beta1_namespaced_deployment) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | +[**list_extensions_v1beta1_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#list_extensions_v1beta1_namespaced_horizontal_pod_autoscaler) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers | +[**list_extensions_v1beta1_namespaced_ingress**](ExtensionsV1beta1Api.md#list_extensions_v1beta1_namespaced_ingress) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | +[**list_extensions_v1beta1_namespaced_job**](ExtensionsV1beta1Api.md#list_extensions_v1beta1_namespaced_job) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/jobs | +[**list_extensions_v1beta1_namespaced_network_policy**](ExtensionsV1beta1Api.md#list_extensions_v1beta1_namespaced_network_policy) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | +[**list_extensions_v1beta1_namespaced_replica_set**](ExtensionsV1beta1Api.md#list_extensions_v1beta1_namespaced_replica_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | +[**list_extensions_v1beta1_network_policy_for_all_namespaces**](ExtensionsV1beta1Api.md#list_extensions_v1beta1_network_policy_for_all_namespaces) | **GET** /apis/extensions/v1beta1/networkpolicies | +[**list_extensions_v1beta1_replica_set_for_all_namespaces**](ExtensionsV1beta1Api.md#list_extensions_v1beta1_replica_set_for_all_namespaces) | **GET** /apis/extensions/v1beta1/replicasets | +[**list_extensions_v1beta1_third_party_resource**](ExtensionsV1beta1Api.md#list_extensions_v1beta1_third_party_resource) | **GET** /apis/extensions/v1beta1/thirdpartyresources | +[**patch_extensions_v1beta1_namespaced_daemon_set**](ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_daemon_set) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | +[**patch_extensions_v1beta1_namespaced_daemon_set_status**](ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_daemon_set_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status | +[**patch_extensions_v1beta1_namespaced_deployment**](ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_deployment) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | +[**patch_extensions_v1beta1_namespaced_deployment_status**](ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_deployment_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | +[**patch_extensions_v1beta1_namespaced_deployments_scale**](ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_deployments_scale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | +[**patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +[**patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status**](ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | +[**patch_extensions_v1beta1_namespaced_ingress**](ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_ingress) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | +[**patch_extensions_v1beta1_namespaced_ingress_status**](ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_ingress_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | +[**patch_extensions_v1beta1_namespaced_job**](ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_job) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | +[**patch_extensions_v1beta1_namespaced_job_status**](ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_job_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status | +[**patch_extensions_v1beta1_namespaced_network_policy**](ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_network_policy) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | +[**patch_extensions_v1beta1_namespaced_replica_set**](ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_replica_set) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | +[**patch_extensions_v1beta1_namespaced_replica_set_status**](ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_replica_set_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | +[**patch_extensions_v1beta1_namespaced_replicasets_scale**](ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_replicasets_scale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale | +[**patch_extensions_v1beta1_namespaced_replicationcontrollers_scale**](ExtensionsV1beta1Api.md#patch_extensions_v1beta1_namespaced_replicationcontrollers_scale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | +[**patch_extensions_v1beta1_third_party_resource**](ExtensionsV1beta1Api.md#patch_extensions_v1beta1_third_party_resource) | **PATCH** /apis/extensions/v1beta1/thirdpartyresources/{name} | +[**read_extensions_v1beta1_namespaced_daemon_set**](ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_daemon_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | +[**read_extensions_v1beta1_namespaced_daemon_set_status**](ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_daemon_set_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status | +[**read_extensions_v1beta1_namespaced_deployment**](ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_deployment) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | +[**read_extensions_v1beta1_namespaced_deployment_status**](ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_deployment_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | +[**read_extensions_v1beta1_namespaced_deployments_scale**](ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_deployments_scale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | +[**read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +[**read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status**](ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | +[**read_extensions_v1beta1_namespaced_ingress**](ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_ingress) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | +[**read_extensions_v1beta1_namespaced_ingress_status**](ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_ingress_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | +[**read_extensions_v1beta1_namespaced_job**](ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_job) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | +[**read_extensions_v1beta1_namespaced_job_status**](ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_job_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status | +[**read_extensions_v1beta1_namespaced_network_policy**](ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_network_policy) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | +[**read_extensions_v1beta1_namespaced_replica_set**](ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_replica_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | +[**read_extensions_v1beta1_namespaced_replica_set_status**](ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_replica_set_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | +[**read_extensions_v1beta1_namespaced_replicasets_scale**](ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_replicasets_scale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale | +[**read_extensions_v1beta1_namespaced_replicationcontrollers_scale**](ExtensionsV1beta1Api.md#read_extensions_v1beta1_namespaced_replicationcontrollers_scale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | +[**read_extensions_v1beta1_third_party_resource**](ExtensionsV1beta1Api.md#read_extensions_v1beta1_third_party_resource) | **GET** /apis/extensions/v1beta1/thirdpartyresources/{name} | +[**replace_extensions_v1beta1_namespaced_daemon_set**](ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_daemon_set) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | +[**replace_extensions_v1beta1_namespaced_daemon_set_status**](ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_daemon_set_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status | +[**replace_extensions_v1beta1_namespaced_deployment**](ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_deployment) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | +[**replace_extensions_v1beta1_namespaced_deployment_status**](ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_deployment_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | +[**replace_extensions_v1beta1_namespaced_deployments_scale**](ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_deployments_scale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | +[**replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +[**replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status**](ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | +[**replace_extensions_v1beta1_namespaced_ingress**](ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_ingress) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | +[**replace_extensions_v1beta1_namespaced_ingress_status**](ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_ingress_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | +[**replace_extensions_v1beta1_namespaced_job**](ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_job) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | +[**replace_extensions_v1beta1_namespaced_job_status**](ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_job_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status | +[**replace_extensions_v1beta1_namespaced_network_policy**](ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_network_policy) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | +[**replace_extensions_v1beta1_namespaced_replica_set**](ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_replica_set) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | +[**replace_extensions_v1beta1_namespaced_replica_set_status**](ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_replica_set_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | +[**replace_extensions_v1beta1_namespaced_replicasets_scale**](ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_replicasets_scale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale | +[**replace_extensions_v1beta1_namespaced_replicationcontrollers_scale**](ExtensionsV1beta1Api.md#replace_extensions_v1beta1_namespaced_replicationcontrollers_scale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | +[**replace_extensions_v1beta1_third_party_resource**](ExtensionsV1beta1Api.md#replace_extensions_v1beta1_third_party_resource) | **PUT** /apis/extensions/v1beta1/thirdpartyresources/{name} | +[**watch_extensions_v1beta1_daemon_set_list_for_all_namespaces**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_daemon_set_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/daemonsets | +[**watch_extensions_v1beta1_deployment_list_for_all_namespaces**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_deployment_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/deployments | +[**watch_extensions_v1beta1_horizontal_pod_autoscaler_list_for_all_namespaces**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_horizontal_pod_autoscaler_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/horizontalpodautoscalers | +[**watch_extensions_v1beta1_ingress_list_for_all_namespaces**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_ingress_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/ingresses | +[**watch_extensions_v1beta1_job_list_for_all_namespaces**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_job_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/jobs | +[**watch_extensions_v1beta1_namespaced_daemon_set**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_daemon_set) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets/{name} | +[**watch_extensions_v1beta1_namespaced_daemon_set_list**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_daemon_set_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets | +[**watch_extensions_v1beta1_namespaced_deployment**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_deployment) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments/{name} | +[**watch_extensions_v1beta1_namespaced_deployment_list**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_deployment_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments | +[**watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name} | +[**watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_list**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers | +[**watch_extensions_v1beta1_namespaced_ingress**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_ingress) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses/{name} | +[**watch_extensions_v1beta1_namespaced_ingress_list**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_ingress_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses | +[**watch_extensions_v1beta1_namespaced_job**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_job) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs/{name} | +[**watch_extensions_v1beta1_namespaced_job_list**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_job_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs | +[**watch_extensions_v1beta1_namespaced_network_policy**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_network_policy) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies/{name} | +[**watch_extensions_v1beta1_namespaced_network_policy_list**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_network_policy_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies | +[**watch_extensions_v1beta1_namespaced_replica_set**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_replica_set) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets/{name} | +[**watch_extensions_v1beta1_namespaced_replica_set_list**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_namespaced_replica_set_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets | +[**watch_extensions_v1beta1_network_policy_list_for_all_namespaces**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_network_policy_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/networkpolicies | +[**watch_extensions_v1beta1_replica_set_list_for_all_namespaces**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_replica_set_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/replicasets | +[**watch_extensions_v1beta1_third_party_resource**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_third_party_resource) | **GET** /apis/extensions/v1beta1/watch/thirdpartyresources/{name} | +[**watch_extensions_v1beta1_third_party_resource_list**](ExtensionsV1beta1Api.md#watch_extensions_v1beta1_third_party_resource_list) | **GET** /apis/extensions/v1beta1/watch/thirdpartyresources | + + +# **create_extensions_v1beta1_namespaced_daemon_set** +> V1beta1DaemonSet create_extensions_v1beta1_namespaced_daemon_set(namespace, body, pretty=pretty) + + + +create a DaemonSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1DaemonSet() # V1beta1DaemonSet | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_extensions_v1beta1_namespaced_daemon_set(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->create_extensions_v1beta1_namespaced_daemon_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1DaemonSet**](V1beta1DaemonSet.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1DaemonSet**](V1beta1DaemonSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_extensions_v1beta1_namespaced_deployment** +> V1beta1Deployment create_extensions_v1beta1_namespaced_deployment(namespace, body, pretty=pretty) + + + +create a Deployment + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1Deployment() # V1beta1Deployment | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_extensions_v1beta1_namespaced_deployment(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->create_extensions_v1beta1_namespaced_deployment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Deployment**](V1beta1Deployment.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Deployment**](V1beta1Deployment.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_extensions_v1beta1_namespaced_deployment_rollback_rollback** +> V1beta1DeploymentRollback create_extensions_v1beta1_namespaced_deployment_rollback_rollback(body, name, namespace, pretty=pretty) + + + +create rollback of a DeploymentRollback + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +body = k8sclient.V1beta1DeploymentRollback() # V1beta1DeploymentRollback | +name = 'name_example' # str | name of the DeploymentRollback +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_extensions_v1beta1_namespaced_deployment_rollback_rollback(body, name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->create_extensions_v1beta1_namespaced_deployment_rollback_rollback: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1DeploymentRollback**](V1beta1DeploymentRollback.md)| | + **name** | **str**| name of the DeploymentRollback | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1DeploymentRollback**](V1beta1DeploymentRollback.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler** +> V1beta1HorizontalPodAutoscaler create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty) + + + +create a HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1HorizontalPodAutoscaler() # V1beta1HorizontalPodAutoscaler | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_extensions_v1beta1_namespaced_ingress** +> V1beta1Ingress create_extensions_v1beta1_namespaced_ingress(namespace, body, pretty=pretty) + + + +create an Ingress + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1Ingress() # V1beta1Ingress | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_extensions_v1beta1_namespaced_ingress(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->create_extensions_v1beta1_namespaced_ingress: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Ingress**](V1beta1Ingress.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Ingress**](V1beta1Ingress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_extensions_v1beta1_namespaced_job** +> V1beta1Job create_extensions_v1beta1_namespaced_job(namespace, body, pretty=pretty) + + + +create a Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1Job() # V1beta1Job | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_extensions_v1beta1_namespaced_job(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->create_extensions_v1beta1_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Job**](V1beta1Job.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Job**](V1beta1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_extensions_v1beta1_namespaced_network_policy** +> V1beta1NetworkPolicy create_extensions_v1beta1_namespaced_network_policy(namespace, body, pretty=pretty) + + + +create a NetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1NetworkPolicy() # V1beta1NetworkPolicy | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_extensions_v1beta1_namespaced_network_policy(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->create_extensions_v1beta1_namespaced_network_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_extensions_v1beta1_namespaced_replica_set** +> V1beta1ReplicaSet create_extensions_v1beta1_namespaced_replica_set(namespace, body, pretty=pretty) + + + +create a ReplicaSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1ReplicaSet() # V1beta1ReplicaSet | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_extensions_v1beta1_namespaced_replica_set(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->create_extensions_v1beta1_namespaced_replica_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1ReplicaSet**](V1beta1ReplicaSet.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_extensions_v1beta1_third_party_resource** +> V1beta1ThirdPartyResource create_extensions_v1beta1_third_party_resource(body, pretty=pretty) + + + +create a ThirdPartyResource + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +body = k8sclient.V1beta1ThirdPartyResource() # V1beta1ThirdPartyResource | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_extensions_v1beta1_third_party_resource(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->create_extensions_v1beta1_third_party_resource: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_extensions_v1beta1_collection_namespaced_daemon_set** +> UnversionedStatus delete_extensions_v1beta1_collection_namespaced_daemon_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of DaemonSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_extensions_v1beta1_collection_namespaced_daemon_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_extensions_v1beta1_collection_namespaced_daemon_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_extensions_v1beta1_collection_namespaced_deployment** +> UnversionedStatus delete_extensions_v1beta1_collection_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Deployment + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_extensions_v1beta1_collection_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_extensions_v1beta1_collection_namespaced_deployment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_extensions_v1beta1_collection_namespaced_horizontal_pod_autoscaler** +> UnversionedStatus delete_extensions_v1beta1_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_extensions_v1beta1_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_extensions_v1beta1_collection_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_extensions_v1beta1_collection_namespaced_ingress** +> UnversionedStatus delete_extensions_v1beta1_collection_namespaced_ingress(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Ingress + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_extensions_v1beta1_collection_namespaced_ingress(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_extensions_v1beta1_collection_namespaced_ingress: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_extensions_v1beta1_collection_namespaced_job** +> UnversionedStatus delete_extensions_v1beta1_collection_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_extensions_v1beta1_collection_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_extensions_v1beta1_collection_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_extensions_v1beta1_collection_namespaced_network_policy** +> UnversionedStatus delete_extensions_v1beta1_collection_namespaced_network_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of NetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_extensions_v1beta1_collection_namespaced_network_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_extensions_v1beta1_collection_namespaced_network_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_extensions_v1beta1_collection_namespaced_replica_set** +> UnversionedStatus delete_extensions_v1beta1_collection_namespaced_replica_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of ReplicaSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_extensions_v1beta1_collection_namespaced_replica_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_extensions_v1beta1_collection_namespaced_replica_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_extensions_v1beta1_collection_third_party_resource** +> UnversionedStatus delete_extensions_v1beta1_collection_third_party_resource(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of ThirdPartyResource + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_extensions_v1beta1_collection_third_party_resource(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_extensions_v1beta1_collection_third_party_resource: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_extensions_v1beta1_namespaced_daemon_set** +> UnversionedStatus delete_extensions_v1beta1_namespaced_daemon_set(name, namespace, body, pretty=pretty) + + + +delete a DaemonSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the DaemonSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_extensions_v1beta1_namespaced_daemon_set(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_extensions_v1beta1_namespaced_daemon_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DaemonSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_extensions_v1beta1_namespaced_deployment** +> UnversionedStatus delete_extensions_v1beta1_namespaced_deployment(name, namespace, body, pretty=pretty) + + + +delete a Deployment + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Deployment +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_extensions_v1beta1_namespaced_deployment(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_extensions_v1beta1_namespaced_deployment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Deployment | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler** +> UnversionedStatus delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + + + +delete a HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_extensions_v1beta1_namespaced_ingress** +> UnversionedStatus delete_extensions_v1beta1_namespaced_ingress(name, namespace, body, pretty=pretty) + + + +delete an Ingress + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Ingress +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_extensions_v1beta1_namespaced_ingress(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_extensions_v1beta1_namespaced_ingress: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Ingress | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_extensions_v1beta1_namespaced_job** +> UnversionedStatus delete_extensions_v1beta1_namespaced_job(name, namespace, body, pretty=pretty) + + + +delete a Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_extensions_v1beta1_namespaced_job(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_extensions_v1beta1_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_extensions_v1beta1_namespaced_network_policy** +> UnversionedStatus delete_extensions_v1beta1_namespaced_network_policy(name, namespace, body, pretty=pretty) + + + +delete a NetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the NetworkPolicy +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_extensions_v1beta1_namespaced_network_policy(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_extensions_v1beta1_namespaced_network_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the NetworkPolicy | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_extensions_v1beta1_namespaced_replica_set** +> UnversionedStatus delete_extensions_v1beta1_namespaced_replica_set(name, namespace, body, pretty=pretty) + + + +delete a ReplicaSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the ReplicaSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_extensions_v1beta1_namespaced_replica_set(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_extensions_v1beta1_namespaced_replica_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ReplicaSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_extensions_v1beta1_third_party_resource** +> UnversionedStatus delete_extensions_v1beta1_third_party_resource(name, body, pretty=pretty) + + + +delete a ThirdPartyResource + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the ThirdPartyResource +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_extensions_v1beta1_third_party_resource(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_extensions_v1beta1_third_party_resource: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ThirdPartyResource | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_extensions_v1beta1_api_resources** +> UnversionedAPIResourceList get_extensions_v1beta1_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() + +try: + api_response = api_instance.get_extensions_v1beta1_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->get_extensions_v1beta1_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_extensions_v1beta1_daemon_set_for_all_namespaces** +> V1beta1DaemonSetList list_extensions_v1beta1_daemon_set_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind DaemonSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_extensions_v1beta1_daemon_set_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_extensions_v1beta1_daemon_set_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1DaemonSetList**](V1beta1DaemonSetList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_extensions_v1beta1_deployment_for_all_namespaces** +> V1beta1DeploymentList list_extensions_v1beta1_deployment_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Deployment + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_extensions_v1beta1_deployment_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_extensions_v1beta1_deployment_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1DeploymentList**](V1beta1DeploymentList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_extensions_v1beta1_horizontal_pod_autoscaler_for_all_namespaces** +> V1beta1HorizontalPodAutoscalerList list_extensions_v1beta1_horizontal_pod_autoscaler_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_extensions_v1beta1_horizontal_pod_autoscaler_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_extensions_v1beta1_horizontal_pod_autoscaler_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1HorizontalPodAutoscalerList**](V1beta1HorizontalPodAutoscalerList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_extensions_v1beta1_ingress_for_all_namespaces** +> V1beta1IngressList list_extensions_v1beta1_ingress_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Ingress + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_extensions_v1beta1_ingress_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_extensions_v1beta1_ingress_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1IngressList**](V1beta1IngressList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_extensions_v1beta1_job_for_all_namespaces** +> V1beta1JobList list_extensions_v1beta1_job_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_extensions_v1beta1_job_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_extensions_v1beta1_job_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1JobList**](V1beta1JobList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_extensions_v1beta1_namespaced_daemon_set** +> V1beta1DaemonSetList list_extensions_v1beta1_namespaced_daemon_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind DaemonSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_extensions_v1beta1_namespaced_daemon_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_extensions_v1beta1_namespaced_daemon_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1DaemonSetList**](V1beta1DaemonSetList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_extensions_v1beta1_namespaced_deployment** +> V1beta1DeploymentList list_extensions_v1beta1_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Deployment + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_extensions_v1beta1_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_extensions_v1beta1_namespaced_deployment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1DeploymentList**](V1beta1DeploymentList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_extensions_v1beta1_namespaced_horizontal_pod_autoscaler** +> V1beta1HorizontalPodAutoscalerList list_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_extensions_v1beta1_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1HorizontalPodAutoscalerList**](V1beta1HorizontalPodAutoscalerList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_extensions_v1beta1_namespaced_ingress** +> V1beta1IngressList list_extensions_v1beta1_namespaced_ingress(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Ingress + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_extensions_v1beta1_namespaced_ingress(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_extensions_v1beta1_namespaced_ingress: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1IngressList**](V1beta1IngressList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_extensions_v1beta1_namespaced_job** +> V1beta1JobList list_extensions_v1beta1_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_extensions_v1beta1_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_extensions_v1beta1_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1JobList**](V1beta1JobList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_extensions_v1beta1_namespaced_network_policy** +> V1beta1NetworkPolicyList list_extensions_v1beta1_namespaced_network_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind NetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_extensions_v1beta1_namespaced_network_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_extensions_v1beta1_namespaced_network_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1NetworkPolicyList**](V1beta1NetworkPolicyList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_extensions_v1beta1_namespaced_replica_set** +> V1beta1ReplicaSetList list_extensions_v1beta1_namespaced_replica_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ReplicaSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_extensions_v1beta1_namespaced_replica_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_extensions_v1beta1_namespaced_replica_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1ReplicaSetList**](V1beta1ReplicaSetList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_extensions_v1beta1_network_policy_for_all_namespaces** +> V1beta1NetworkPolicyList list_extensions_v1beta1_network_policy_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind NetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_extensions_v1beta1_network_policy_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_extensions_v1beta1_network_policy_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1NetworkPolicyList**](V1beta1NetworkPolicyList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_extensions_v1beta1_replica_set_for_all_namespaces** +> V1beta1ReplicaSetList list_extensions_v1beta1_replica_set_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ReplicaSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_extensions_v1beta1_replica_set_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_extensions_v1beta1_replica_set_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1ReplicaSetList**](V1beta1ReplicaSetList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_extensions_v1beta1_third_party_resource** +> V1beta1ThirdPartyResourceList list_extensions_v1beta1_third_party_resource(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ThirdPartyResource + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_extensions_v1beta1_third_party_resource(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_extensions_v1beta1_third_party_resource: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1ThirdPartyResourceList**](V1beta1ThirdPartyResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_extensions_v1beta1_namespaced_daemon_set** +> V1beta1DaemonSet patch_extensions_v1beta1_namespaced_daemon_set(name, namespace, body, pretty=pretty) + + + +partially update the specified DaemonSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the DaemonSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_extensions_v1beta1_namespaced_daemon_set(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_extensions_v1beta1_namespaced_daemon_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DaemonSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1DaemonSet**](V1beta1DaemonSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_extensions_v1beta1_namespaced_daemon_set_status** +> V1beta1DaemonSet patch_extensions_v1beta1_namespaced_daemon_set_status(name, namespace, body, pretty=pretty) + + + +partially update status of the specified DaemonSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the DaemonSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_extensions_v1beta1_namespaced_daemon_set_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_extensions_v1beta1_namespaced_daemon_set_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DaemonSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1DaemonSet**](V1beta1DaemonSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_extensions_v1beta1_namespaced_deployment** +> V1beta1Deployment patch_extensions_v1beta1_namespaced_deployment(name, namespace, body, pretty=pretty) + + + +partially update the specified Deployment + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Deployment +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_extensions_v1beta1_namespaced_deployment(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_extensions_v1beta1_namespaced_deployment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Deployment | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Deployment**](V1beta1Deployment.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_extensions_v1beta1_namespaced_deployment_status** +> V1beta1Deployment patch_extensions_v1beta1_namespaced_deployment_status(name, namespace, body, pretty=pretty) + + + +partially update status of the specified Deployment + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Deployment +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_extensions_v1beta1_namespaced_deployment_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_extensions_v1beta1_namespaced_deployment_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Deployment | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Deployment**](V1beta1Deployment.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_extensions_v1beta1_namespaced_deployments_scale** +> V1beta1Scale patch_extensions_v1beta1_namespaced_deployments_scale(name, namespace, body, pretty=pretty) + + + +partially update scale of the specified Scale + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_extensions_v1beta1_namespaced_deployments_scale(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_extensions_v1beta1_namespaced_deployments_scale: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Scale | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Scale**](V1beta1Scale.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler** +> V1beta1HorizontalPodAutoscaler patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + + + +partially update the specified HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status** +> V1beta1HorizontalPodAutoscaler patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) + + + +partially update status of the specified HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_extensions_v1beta1_namespaced_ingress** +> V1beta1Ingress patch_extensions_v1beta1_namespaced_ingress(name, namespace, body, pretty=pretty) + + + +partially update the specified Ingress + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Ingress +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_extensions_v1beta1_namespaced_ingress(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_extensions_v1beta1_namespaced_ingress: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Ingress | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Ingress**](V1beta1Ingress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_extensions_v1beta1_namespaced_ingress_status** +> V1beta1Ingress patch_extensions_v1beta1_namespaced_ingress_status(name, namespace, body, pretty=pretty) + + + +partially update status of the specified Ingress + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Ingress +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_extensions_v1beta1_namespaced_ingress_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_extensions_v1beta1_namespaced_ingress_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Ingress | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Ingress**](V1beta1Ingress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_extensions_v1beta1_namespaced_job** +> V1beta1Job patch_extensions_v1beta1_namespaced_job(name, namespace, body, pretty=pretty) + + + +partially update the specified Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_extensions_v1beta1_namespaced_job(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_extensions_v1beta1_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Job**](V1beta1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_extensions_v1beta1_namespaced_job_status** +> V1beta1Job patch_extensions_v1beta1_namespaced_job_status(name, namespace, body, pretty=pretty) + + + +partially update status of the specified Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_extensions_v1beta1_namespaced_job_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_extensions_v1beta1_namespaced_job_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Job**](V1beta1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_extensions_v1beta1_namespaced_network_policy** +> V1beta1NetworkPolicy patch_extensions_v1beta1_namespaced_network_policy(name, namespace, body, pretty=pretty) + + + +partially update the specified NetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the NetworkPolicy +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_extensions_v1beta1_namespaced_network_policy(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_extensions_v1beta1_namespaced_network_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the NetworkPolicy | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_extensions_v1beta1_namespaced_replica_set** +> V1beta1ReplicaSet patch_extensions_v1beta1_namespaced_replica_set(name, namespace, body, pretty=pretty) + + + +partially update the specified ReplicaSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the ReplicaSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_extensions_v1beta1_namespaced_replica_set(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_extensions_v1beta1_namespaced_replica_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ReplicaSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_extensions_v1beta1_namespaced_replica_set_status** +> V1beta1ReplicaSet patch_extensions_v1beta1_namespaced_replica_set_status(name, namespace, body, pretty=pretty) + + + +partially update status of the specified ReplicaSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the ReplicaSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_extensions_v1beta1_namespaced_replica_set_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_extensions_v1beta1_namespaced_replica_set_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ReplicaSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_extensions_v1beta1_namespaced_replicasets_scale** +> V1beta1Scale patch_extensions_v1beta1_namespaced_replicasets_scale(name, namespace, body, pretty=pretty) + + + +partially update scale of the specified Scale + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_extensions_v1beta1_namespaced_replicasets_scale(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_extensions_v1beta1_namespaced_replicasets_scale: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Scale | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Scale**](V1beta1Scale.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_extensions_v1beta1_namespaced_replicationcontrollers_scale** +> V1beta1Scale patch_extensions_v1beta1_namespaced_replicationcontrollers_scale(name, namespace, body, pretty=pretty) + + + +partially update scale of the specified Scale + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_extensions_v1beta1_namespaced_replicationcontrollers_scale(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_extensions_v1beta1_namespaced_replicationcontrollers_scale: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Scale | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Scale**](V1beta1Scale.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_extensions_v1beta1_third_party_resource** +> V1beta1ThirdPartyResource patch_extensions_v1beta1_third_party_resource(name, body, pretty=pretty) + + + +partially update the specified ThirdPartyResource + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the ThirdPartyResource +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_extensions_v1beta1_third_party_resource(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_extensions_v1beta1_third_party_resource: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ThirdPartyResource | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_extensions_v1beta1_namespaced_daemon_set** +> V1beta1DaemonSet read_extensions_v1beta1_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified DaemonSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the DaemonSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_extensions_v1beta1_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_extensions_v1beta1_namespaced_daemon_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DaemonSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1beta1DaemonSet**](V1beta1DaemonSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_extensions_v1beta1_namespaced_daemon_set_status** +> V1beta1DaemonSet read_extensions_v1beta1_namespaced_daemon_set_status(name, namespace, pretty=pretty) + + + +read status of the specified DaemonSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the DaemonSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_extensions_v1beta1_namespaced_daemon_set_status(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_extensions_v1beta1_namespaced_daemon_set_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DaemonSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1DaemonSet**](V1beta1DaemonSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_extensions_v1beta1_namespaced_deployment** +> V1beta1Deployment read_extensions_v1beta1_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified Deployment + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Deployment +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_extensions_v1beta1_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_extensions_v1beta1_namespaced_deployment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Deployment | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1beta1Deployment**](V1beta1Deployment.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_extensions_v1beta1_namespaced_deployment_status** +> V1beta1Deployment read_extensions_v1beta1_namespaced_deployment_status(name, namespace, pretty=pretty) + + + +read status of the specified Deployment + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Deployment +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_extensions_v1beta1_namespaced_deployment_status(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_extensions_v1beta1_namespaced_deployment_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Deployment | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Deployment**](V1beta1Deployment.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_extensions_v1beta1_namespaced_deployments_scale** +> V1beta1Scale read_extensions_v1beta1_namespaced_deployments_scale(name, namespace, pretty=pretty) + + + +read scale of the specified Scale + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_extensions_v1beta1_namespaced_deployments_scale(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_extensions_v1beta1_namespaced_deployments_scale: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Scale | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Scale**](V1beta1Scale.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler** +> V1beta1HorizontalPodAutoscaler read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status** +> V1beta1HorizontalPodAutoscaler read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) + + + +read status of the specified HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_extensions_v1beta1_namespaced_ingress** +> V1beta1Ingress read_extensions_v1beta1_namespaced_ingress(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified Ingress + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Ingress +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_extensions_v1beta1_namespaced_ingress(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_extensions_v1beta1_namespaced_ingress: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Ingress | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1beta1Ingress**](V1beta1Ingress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_extensions_v1beta1_namespaced_ingress_status** +> V1beta1Ingress read_extensions_v1beta1_namespaced_ingress_status(name, namespace, pretty=pretty) + + + +read status of the specified Ingress + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Ingress +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_extensions_v1beta1_namespaced_ingress_status(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_extensions_v1beta1_namespaced_ingress_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Ingress | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Ingress**](V1beta1Ingress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_extensions_v1beta1_namespaced_job** +> V1beta1Job read_extensions_v1beta1_namespaced_job(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_extensions_v1beta1_namespaced_job(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_extensions_v1beta1_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1beta1Job**](V1beta1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_extensions_v1beta1_namespaced_job_status** +> V1beta1Job read_extensions_v1beta1_namespaced_job_status(name, namespace, pretty=pretty) + + + +read status of the specified Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_extensions_v1beta1_namespaced_job_status(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_extensions_v1beta1_namespaced_job_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Job**](V1beta1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_extensions_v1beta1_namespaced_network_policy** +> V1beta1NetworkPolicy read_extensions_v1beta1_namespaced_network_policy(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified NetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the NetworkPolicy +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_extensions_v1beta1_namespaced_network_policy(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_extensions_v1beta1_namespaced_network_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the NetworkPolicy | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_extensions_v1beta1_namespaced_replica_set** +> V1beta1ReplicaSet read_extensions_v1beta1_namespaced_replica_set(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified ReplicaSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the ReplicaSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_extensions_v1beta1_namespaced_replica_set(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_extensions_v1beta1_namespaced_replica_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ReplicaSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_extensions_v1beta1_namespaced_replica_set_status** +> V1beta1ReplicaSet read_extensions_v1beta1_namespaced_replica_set_status(name, namespace, pretty=pretty) + + + +read status of the specified ReplicaSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the ReplicaSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_extensions_v1beta1_namespaced_replica_set_status(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_extensions_v1beta1_namespaced_replica_set_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ReplicaSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_extensions_v1beta1_namespaced_replicasets_scale** +> V1beta1Scale read_extensions_v1beta1_namespaced_replicasets_scale(name, namespace, pretty=pretty) + + + +read scale of the specified Scale + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_extensions_v1beta1_namespaced_replicasets_scale(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_extensions_v1beta1_namespaced_replicasets_scale: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Scale | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Scale**](V1beta1Scale.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_extensions_v1beta1_namespaced_replicationcontrollers_scale** +> V1beta1Scale read_extensions_v1beta1_namespaced_replicationcontrollers_scale(name, namespace, pretty=pretty) + + + +read scale of the specified Scale + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_extensions_v1beta1_namespaced_replicationcontrollers_scale(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_extensions_v1beta1_namespaced_replicationcontrollers_scale: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Scale | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Scale**](V1beta1Scale.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_extensions_v1beta1_third_party_resource** +> V1beta1ThirdPartyResource read_extensions_v1beta1_third_party_resource(name, pretty=pretty, exact=exact, export=export) + + + +read the specified ThirdPartyResource + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the ThirdPartyResource +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_extensions_v1beta1_third_party_resource(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_extensions_v1beta1_third_party_resource: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ThirdPartyResource | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_extensions_v1beta1_namespaced_daemon_set** +> V1beta1DaemonSet replace_extensions_v1beta1_namespaced_daemon_set(name, namespace, body, pretty=pretty) + + + +replace the specified DaemonSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the DaemonSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1DaemonSet() # V1beta1DaemonSet | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_extensions_v1beta1_namespaced_daemon_set(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_extensions_v1beta1_namespaced_daemon_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DaemonSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1DaemonSet**](V1beta1DaemonSet.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1DaemonSet**](V1beta1DaemonSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_extensions_v1beta1_namespaced_daemon_set_status** +> V1beta1DaemonSet replace_extensions_v1beta1_namespaced_daemon_set_status(name, namespace, body, pretty=pretty) + + + +replace status of the specified DaemonSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the DaemonSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1DaemonSet() # V1beta1DaemonSet | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_extensions_v1beta1_namespaced_daemon_set_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_extensions_v1beta1_namespaced_daemon_set_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DaemonSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1DaemonSet**](V1beta1DaemonSet.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1DaemonSet**](V1beta1DaemonSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_extensions_v1beta1_namespaced_deployment** +> V1beta1Deployment replace_extensions_v1beta1_namespaced_deployment(name, namespace, body, pretty=pretty) + + + +replace the specified Deployment + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Deployment +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1Deployment() # V1beta1Deployment | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_extensions_v1beta1_namespaced_deployment(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_extensions_v1beta1_namespaced_deployment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Deployment | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Deployment**](V1beta1Deployment.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Deployment**](V1beta1Deployment.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_extensions_v1beta1_namespaced_deployment_status** +> V1beta1Deployment replace_extensions_v1beta1_namespaced_deployment_status(name, namespace, body, pretty=pretty) + + + +replace status of the specified Deployment + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Deployment +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1Deployment() # V1beta1Deployment | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_extensions_v1beta1_namespaced_deployment_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_extensions_v1beta1_namespaced_deployment_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Deployment | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Deployment**](V1beta1Deployment.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Deployment**](V1beta1Deployment.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_extensions_v1beta1_namespaced_deployments_scale** +> V1beta1Scale replace_extensions_v1beta1_namespaced_deployments_scale(name, namespace, body, pretty=pretty) + + + +replace scale of the specified Scale + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1Scale() # V1beta1Scale | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_extensions_v1beta1_namespaced_deployments_scale(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_extensions_v1beta1_namespaced_deployments_scale: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Scale | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Scale**](V1beta1Scale.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Scale**](V1beta1Scale.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler** +> V1beta1HorizontalPodAutoscaler replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + + + +replace the specified HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1HorizontalPodAutoscaler() # V1beta1HorizontalPodAutoscaler | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status** +> V1beta1HorizontalPodAutoscaler replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) + + + +replace status of the specified HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1HorizontalPodAutoscaler() # V1beta1HorizontalPodAutoscaler | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_extensions_v1beta1_namespaced_ingress** +> V1beta1Ingress replace_extensions_v1beta1_namespaced_ingress(name, namespace, body, pretty=pretty) + + + +replace the specified Ingress + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Ingress +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1Ingress() # V1beta1Ingress | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_extensions_v1beta1_namespaced_ingress(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_extensions_v1beta1_namespaced_ingress: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Ingress | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Ingress**](V1beta1Ingress.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Ingress**](V1beta1Ingress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_extensions_v1beta1_namespaced_ingress_status** +> V1beta1Ingress replace_extensions_v1beta1_namespaced_ingress_status(name, namespace, body, pretty=pretty) + + + +replace status of the specified Ingress + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Ingress +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1Ingress() # V1beta1Ingress | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_extensions_v1beta1_namespaced_ingress_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_extensions_v1beta1_namespaced_ingress_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Ingress | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Ingress**](V1beta1Ingress.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Ingress**](V1beta1Ingress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_extensions_v1beta1_namespaced_job** +> V1beta1Job replace_extensions_v1beta1_namespaced_job(name, namespace, body, pretty=pretty) + + + +replace the specified Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1Job() # V1beta1Job | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_extensions_v1beta1_namespaced_job(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_extensions_v1beta1_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Job**](V1beta1Job.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Job**](V1beta1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_extensions_v1beta1_namespaced_job_status** +> V1beta1Job replace_extensions_v1beta1_namespaced_job_status(name, namespace, body, pretty=pretty) + + + +replace status of the specified Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1Job() # V1beta1Job | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_extensions_v1beta1_namespaced_job_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_extensions_v1beta1_namespaced_job_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Job**](V1beta1Job.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Job**](V1beta1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_extensions_v1beta1_namespaced_network_policy** +> V1beta1NetworkPolicy replace_extensions_v1beta1_namespaced_network_policy(name, namespace, body, pretty=pretty) + + + +replace the specified NetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the NetworkPolicy +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1NetworkPolicy() # V1beta1NetworkPolicy | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_extensions_v1beta1_namespaced_network_policy(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_extensions_v1beta1_namespaced_network_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the NetworkPolicy | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_extensions_v1beta1_namespaced_replica_set** +> V1beta1ReplicaSet replace_extensions_v1beta1_namespaced_replica_set(name, namespace, body, pretty=pretty) + + + +replace the specified ReplicaSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the ReplicaSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1ReplicaSet() # V1beta1ReplicaSet | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_extensions_v1beta1_namespaced_replica_set(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_extensions_v1beta1_namespaced_replica_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ReplicaSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1ReplicaSet**](V1beta1ReplicaSet.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_extensions_v1beta1_namespaced_replica_set_status** +> V1beta1ReplicaSet replace_extensions_v1beta1_namespaced_replica_set_status(name, namespace, body, pretty=pretty) + + + +replace status of the specified ReplicaSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the ReplicaSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1ReplicaSet() # V1beta1ReplicaSet | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_extensions_v1beta1_namespaced_replica_set_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_extensions_v1beta1_namespaced_replica_set_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ReplicaSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1ReplicaSet**](V1beta1ReplicaSet.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_extensions_v1beta1_namespaced_replicasets_scale** +> V1beta1Scale replace_extensions_v1beta1_namespaced_replicasets_scale(name, namespace, body, pretty=pretty) + + + +replace scale of the specified Scale + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1Scale() # V1beta1Scale | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_extensions_v1beta1_namespaced_replicasets_scale(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_extensions_v1beta1_namespaced_replicasets_scale: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Scale | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Scale**](V1beta1Scale.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Scale**](V1beta1Scale.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_extensions_v1beta1_namespaced_replicationcontrollers_scale** +> V1beta1Scale replace_extensions_v1beta1_namespaced_replicationcontrollers_scale(name, namespace, body, pretty=pretty) + + + +replace scale of the specified Scale + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1beta1Scale() # V1beta1Scale | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_extensions_v1beta1_namespaced_replicationcontrollers_scale(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_extensions_v1beta1_namespaced_replicationcontrollers_scale: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Scale | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Scale**](V1beta1Scale.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Scale**](V1beta1Scale.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_extensions_v1beta1_third_party_resource** +> V1beta1ThirdPartyResource replace_extensions_v1beta1_third_party_resource(name, body, pretty=pretty) + + + +replace the specified ThirdPartyResource + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the ThirdPartyResource +body = k8sclient.V1beta1ThirdPartyResource() # V1beta1ThirdPartyResource | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_extensions_v1beta1_third_party_resource(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_extensions_v1beta1_third_party_resource: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ThirdPartyResource | + **body** | [**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_daemon_set_list_for_all_namespaces** +> VersionedEvent watch_extensions_v1beta1_daemon_set_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of DaemonSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_daemon_set_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_daemon_set_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_deployment_list_for_all_namespaces** +> VersionedEvent watch_extensions_v1beta1_deployment_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Deployment + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_deployment_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_deployment_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_horizontal_pod_autoscaler_list_for_all_namespaces** +> VersionedEvent watch_extensions_v1beta1_horizontal_pod_autoscaler_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_horizontal_pod_autoscaler_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_horizontal_pod_autoscaler_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_ingress_list_for_all_namespaces** +> VersionedEvent watch_extensions_v1beta1_ingress_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Ingress + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_ingress_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_ingress_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_job_list_for_all_namespaces** +> VersionedEvent watch_extensions_v1beta1_job_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_job_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_job_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_namespaced_daemon_set** +> VersionedEvent watch_extensions_v1beta1_namespaced_daemon_set(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind DaemonSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the DaemonSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_namespaced_daemon_set(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_namespaced_daemon_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DaemonSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_namespaced_daemon_set_list** +> VersionedEvent watch_extensions_v1beta1_namespaced_daemon_set_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of DaemonSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_namespaced_daemon_set_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_namespaced_daemon_set_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_namespaced_deployment** +> VersionedEvent watch_extensions_v1beta1_namespaced_deployment(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind Deployment + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Deployment +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_namespaced_deployment(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_namespaced_deployment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Deployment | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_namespaced_deployment_list** +> VersionedEvent watch_extensions_v1beta1_namespaced_deployment_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Deployment + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_namespaced_deployment_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_namespaced_deployment_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler** +> VersionedEvent watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_list** +> VersionedEvent watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_namespaced_ingress** +> VersionedEvent watch_extensions_v1beta1_namespaced_ingress(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind Ingress + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Ingress +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_namespaced_ingress(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_namespaced_ingress: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Ingress | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_namespaced_ingress_list** +> VersionedEvent watch_extensions_v1beta1_namespaced_ingress_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Ingress + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_namespaced_ingress_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_namespaced_ingress_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_namespaced_job** +> VersionedEvent watch_extensions_v1beta1_namespaced_job(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_namespaced_job(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_namespaced_job_list** +> VersionedEvent watch_extensions_v1beta1_namespaced_job_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Job + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_namespaced_job_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_namespaced_job_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_namespaced_network_policy** +> VersionedEvent watch_extensions_v1beta1_namespaced_network_policy(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind NetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the NetworkPolicy +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_namespaced_network_policy(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_namespaced_network_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the NetworkPolicy | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_namespaced_network_policy_list** +> VersionedEvent watch_extensions_v1beta1_namespaced_network_policy_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of NetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_namespaced_network_policy_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_namespaced_network_policy_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_namespaced_replica_set** +> VersionedEvent watch_extensions_v1beta1_namespaced_replica_set(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind ReplicaSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the ReplicaSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_namespaced_replica_set(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_namespaced_replica_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ReplicaSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_namespaced_replica_set_list** +> VersionedEvent watch_extensions_v1beta1_namespaced_replica_set_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of ReplicaSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_namespaced_replica_set_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_namespaced_replica_set_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_network_policy_list_for_all_namespaces** +> VersionedEvent watch_extensions_v1beta1_network_policy_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of NetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_network_policy_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_network_policy_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_replica_set_list_for_all_namespaces** +> VersionedEvent watch_extensions_v1beta1_replica_set_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of ReplicaSet + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_replica_set_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_replica_set_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_third_party_resource** +> VersionedEvent watch_extensions_v1beta1_third_party_resource(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind ThirdPartyResource + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the ThirdPartyResource +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_third_party_resource(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_third_party_resource: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ThirdPartyResource | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_extensions_v1beta1_third_party_resource_list** +> VersionedEvent watch_extensions_v1beta1_third_party_resource_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of ThirdPartyResource + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.ExtensionsV1beta1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_extensions_v1beta1_third_party_resource_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->watch_extensions_v1beta1_third_party_resource_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/IntstrIntOrString.md b/docs/IntstrIntOrString.md new file mode 100644 index 000000000..c91598ac5 --- /dev/null +++ b/docs/IntstrIntOrString.md @@ -0,0 +1,9 @@ +# IntstrIntOrString + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LogsApi.md b/docs/LogsApi.md new file mode 100644 index 000000000..f2fbb4a8e --- /dev/null +++ b/docs/LogsApi.md @@ -0,0 +1,104 @@ +# k8sclient.LogsApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**log_file_handler**](LogsApi.md#log_file_handler) | **GET** /logs/{logpath} | +[**log_file_list_handler**](LogsApi.md#log_file_list_handler) | **GET** /logs/ | + + +# **log_file_handler** +> log_file_handler(logpath) + + + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.LogsApi() +logpath = 'logpath_example' # str | path to the log + +try: + api_instance.log_file_handler(logpath) +except ApiException as e: + print("Exception when calling LogsApi->log_file_handler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **logpath** | **str**| path to the log | + +### Return type + +void (empty response body) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **log_file_list_handler** +> log_file_list_handler() + + + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.LogsApi() + +try: + api_instance.log_file_list_handler() +except ApiException as e: + print("Exception when calling LogsApi->log_file_list_handler: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/PolicyApi.md b/docs/PolicyApi.md new file mode 100644 index 000000000..9221dea47 --- /dev/null +++ b/docs/PolicyApi.md @@ -0,0 +1,57 @@ +# k8sclient.PolicyApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_policy_api_group**](PolicyApi.md#get_policy_api_group) | **GET** /apis/policy/ | + + +# **get_policy_api_group** +> UnversionedAPIGroup get_policy_api_group() + + + +get information of a group + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.PolicyApi() + +try: + api_response = api_instance.get_policy_api_group() + pprint(api_response) +except ApiException as e: + print("Exception when calling PolicyApi->get_policy_api_group: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIGroup**](UnversionedAPIGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/PolicyV1alpha1Api.md b/docs/PolicyV1alpha1Api.md new file mode 100644 index 000000000..97178edf3 --- /dev/null +++ b/docs/PolicyV1alpha1Api.md @@ -0,0 +1,915 @@ +# k8sclient.PolicyV1alpha1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_policy_v1alpha1_namespaced_pod_disruption_budget**](PolicyV1alpha1Api.md#create_policy_v1alpha1_namespaced_pod_disruption_budget) | **POST** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets | +[**delete_policy_v1alpha1_collection_namespaced_pod_disruption_budget**](PolicyV1alpha1Api.md#delete_policy_v1alpha1_collection_namespaced_pod_disruption_budget) | **DELETE** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets | +[**delete_policy_v1alpha1_namespaced_pod_disruption_budget**](PolicyV1alpha1Api.md#delete_policy_v1alpha1_namespaced_pod_disruption_budget) | **DELETE** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name} | +[**get_policy_v1alpha1_api_resources**](PolicyV1alpha1Api.md#get_policy_v1alpha1_api_resources) | **GET** /apis/policy/v1alpha1/ | +[**list_policy_v1alpha1_namespaced_pod_disruption_budget**](PolicyV1alpha1Api.md#list_policy_v1alpha1_namespaced_pod_disruption_budget) | **GET** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets | +[**list_policy_v1alpha1_pod_disruption_budget_for_all_namespaces**](PolicyV1alpha1Api.md#list_policy_v1alpha1_pod_disruption_budget_for_all_namespaces) | **GET** /apis/policy/v1alpha1/poddisruptionbudgets | +[**patch_policy_v1alpha1_namespaced_pod_disruption_budget**](PolicyV1alpha1Api.md#patch_policy_v1alpha1_namespaced_pod_disruption_budget) | **PATCH** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name} | +[**patch_policy_v1alpha1_namespaced_pod_disruption_budget_status**](PolicyV1alpha1Api.md#patch_policy_v1alpha1_namespaced_pod_disruption_budget_status) | **PATCH** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | +[**read_policy_v1alpha1_namespaced_pod_disruption_budget**](PolicyV1alpha1Api.md#read_policy_v1alpha1_namespaced_pod_disruption_budget) | **GET** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name} | +[**read_policy_v1alpha1_namespaced_pod_disruption_budget_status**](PolicyV1alpha1Api.md#read_policy_v1alpha1_namespaced_pod_disruption_budget_status) | **GET** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | +[**replace_policy_v1alpha1_namespaced_pod_disruption_budget**](PolicyV1alpha1Api.md#replace_policy_v1alpha1_namespaced_pod_disruption_budget) | **PUT** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name} | +[**replace_policy_v1alpha1_namespaced_pod_disruption_budget_status**](PolicyV1alpha1Api.md#replace_policy_v1alpha1_namespaced_pod_disruption_budget_status) | **PUT** /apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | +[**watch_policy_v1alpha1_namespaced_pod_disruption_budget**](PolicyV1alpha1Api.md#watch_policy_v1alpha1_namespaced_pod_disruption_budget) | **GET** /apis/policy/v1alpha1/watch/namespaces/{namespace}/poddisruptionbudgets/{name} | +[**watch_policy_v1alpha1_namespaced_pod_disruption_budget_list**](PolicyV1alpha1Api.md#watch_policy_v1alpha1_namespaced_pod_disruption_budget_list) | **GET** /apis/policy/v1alpha1/watch/namespaces/{namespace}/poddisruptionbudgets | +[**watch_policy_v1alpha1_pod_disruption_budget_list_for_all_namespaces**](PolicyV1alpha1Api.md#watch_policy_v1alpha1_pod_disruption_budget_list_for_all_namespaces) | **GET** /apis/policy/v1alpha1/watch/poddisruptionbudgets | + + +# **create_policy_v1alpha1_namespaced_pod_disruption_budget** +> V1alpha1PodDisruptionBudget create_policy_v1alpha1_namespaced_pod_disruption_budget(namespace, body, pretty=pretty) + + + +create a PodDisruptionBudget + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.PolicyV1alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1alpha1PodDisruptionBudget() # V1alpha1PodDisruptionBudget | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_policy_v1alpha1_namespaced_pod_disruption_budget(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling PolicyV1alpha1Api->create_policy_v1alpha1_namespaced_pod_disruption_budget: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1PodDisruptionBudget**](V1alpha1PodDisruptionBudget.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1PodDisruptionBudget**](V1alpha1PodDisruptionBudget.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_policy_v1alpha1_collection_namespaced_pod_disruption_budget** +> UnversionedStatus delete_policy_v1alpha1_collection_namespaced_pod_disruption_budget(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of PodDisruptionBudget + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.PolicyV1alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_policy_v1alpha1_collection_namespaced_pod_disruption_budget(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling PolicyV1alpha1Api->delete_policy_v1alpha1_collection_namespaced_pod_disruption_budget: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_policy_v1alpha1_namespaced_pod_disruption_budget** +> UnversionedStatus delete_policy_v1alpha1_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty) + + + +delete a PodDisruptionBudget + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.PolicyV1alpha1Api() +name = 'name_example' # str | name of the PodDisruptionBudget +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_policy_v1alpha1_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling PolicyV1alpha1Api->delete_policy_v1alpha1_namespaced_pod_disruption_budget: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodDisruptionBudget | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_policy_v1alpha1_api_resources** +> UnversionedAPIResourceList get_policy_v1alpha1_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.PolicyV1alpha1Api() + +try: + api_response = api_instance.get_policy_v1alpha1_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling PolicyV1alpha1Api->get_policy_v1alpha1_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_policy_v1alpha1_namespaced_pod_disruption_budget** +> V1alpha1PodDisruptionBudgetList list_policy_v1alpha1_namespaced_pod_disruption_budget(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind PodDisruptionBudget + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.PolicyV1alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_policy_v1alpha1_namespaced_pod_disruption_budget(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling PolicyV1alpha1Api->list_policy_v1alpha1_namespaced_pod_disruption_budget: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1PodDisruptionBudgetList**](V1alpha1PodDisruptionBudgetList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_policy_v1alpha1_pod_disruption_budget_for_all_namespaces** +> V1alpha1PodDisruptionBudgetList list_policy_v1alpha1_pod_disruption_budget_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind PodDisruptionBudget + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.PolicyV1alpha1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_policy_v1alpha1_pod_disruption_budget_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling PolicyV1alpha1Api->list_policy_v1alpha1_pod_disruption_budget_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1PodDisruptionBudgetList**](V1alpha1PodDisruptionBudgetList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_policy_v1alpha1_namespaced_pod_disruption_budget** +> V1alpha1PodDisruptionBudget patch_policy_v1alpha1_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty) + + + +partially update the specified PodDisruptionBudget + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.PolicyV1alpha1Api() +name = 'name_example' # str | name of the PodDisruptionBudget +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_policy_v1alpha1_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling PolicyV1alpha1Api->patch_policy_v1alpha1_namespaced_pod_disruption_budget: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodDisruptionBudget | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1PodDisruptionBudget**](V1alpha1PodDisruptionBudget.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_policy_v1alpha1_namespaced_pod_disruption_budget_status** +> V1alpha1PodDisruptionBudget patch_policy_v1alpha1_namespaced_pod_disruption_budget_status(name, namespace, body, pretty=pretty) + + + +partially update status of the specified PodDisruptionBudget + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.PolicyV1alpha1Api() +name = 'name_example' # str | name of the PodDisruptionBudget +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_policy_v1alpha1_namespaced_pod_disruption_budget_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling PolicyV1alpha1Api->patch_policy_v1alpha1_namespaced_pod_disruption_budget_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodDisruptionBudget | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1PodDisruptionBudget**](V1alpha1PodDisruptionBudget.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_policy_v1alpha1_namespaced_pod_disruption_budget** +> V1alpha1PodDisruptionBudget read_policy_v1alpha1_namespaced_pod_disruption_budget(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified PodDisruptionBudget + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.PolicyV1alpha1Api() +name = 'name_example' # str | name of the PodDisruptionBudget +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_policy_v1alpha1_namespaced_pod_disruption_budget(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling PolicyV1alpha1Api->read_policy_v1alpha1_namespaced_pod_disruption_budget: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodDisruptionBudget | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1alpha1PodDisruptionBudget**](V1alpha1PodDisruptionBudget.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_policy_v1alpha1_namespaced_pod_disruption_budget_status** +> V1alpha1PodDisruptionBudget read_policy_v1alpha1_namespaced_pod_disruption_budget_status(name, namespace, pretty=pretty) + + + +read status of the specified PodDisruptionBudget + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.PolicyV1alpha1Api() +name = 'name_example' # str | name of the PodDisruptionBudget +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_policy_v1alpha1_namespaced_pod_disruption_budget_status(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling PolicyV1alpha1Api->read_policy_v1alpha1_namespaced_pod_disruption_budget_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodDisruptionBudget | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1PodDisruptionBudget**](V1alpha1PodDisruptionBudget.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_policy_v1alpha1_namespaced_pod_disruption_budget** +> V1alpha1PodDisruptionBudget replace_policy_v1alpha1_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty) + + + +replace the specified PodDisruptionBudget + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.PolicyV1alpha1Api() +name = 'name_example' # str | name of the PodDisruptionBudget +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1alpha1PodDisruptionBudget() # V1alpha1PodDisruptionBudget | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_policy_v1alpha1_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling PolicyV1alpha1Api->replace_policy_v1alpha1_namespaced_pod_disruption_budget: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodDisruptionBudget | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1PodDisruptionBudget**](V1alpha1PodDisruptionBudget.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1PodDisruptionBudget**](V1alpha1PodDisruptionBudget.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_policy_v1alpha1_namespaced_pod_disruption_budget_status** +> V1alpha1PodDisruptionBudget replace_policy_v1alpha1_namespaced_pod_disruption_budget_status(name, namespace, body, pretty=pretty) + + + +replace status of the specified PodDisruptionBudget + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.PolicyV1alpha1Api() +name = 'name_example' # str | name of the PodDisruptionBudget +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1alpha1PodDisruptionBudget() # V1alpha1PodDisruptionBudget | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_policy_v1alpha1_namespaced_pod_disruption_budget_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling PolicyV1alpha1Api->replace_policy_v1alpha1_namespaced_pod_disruption_budget_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodDisruptionBudget | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1PodDisruptionBudget**](V1alpha1PodDisruptionBudget.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1PodDisruptionBudget**](V1alpha1PodDisruptionBudget.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_policy_v1alpha1_namespaced_pod_disruption_budget** +> VersionedEvent watch_policy_v1alpha1_namespaced_pod_disruption_budget(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind PodDisruptionBudget + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.PolicyV1alpha1Api() +name = 'name_example' # str | name of the PodDisruptionBudget +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_policy_v1alpha1_namespaced_pod_disruption_budget(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling PolicyV1alpha1Api->watch_policy_v1alpha1_namespaced_pod_disruption_budget: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodDisruptionBudget | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_policy_v1alpha1_namespaced_pod_disruption_budget_list** +> VersionedEvent watch_policy_v1alpha1_namespaced_pod_disruption_budget_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of PodDisruptionBudget + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.PolicyV1alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_policy_v1alpha1_namespaced_pod_disruption_budget_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling PolicyV1alpha1Api->watch_policy_v1alpha1_namespaced_pod_disruption_budget_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_policy_v1alpha1_pod_disruption_budget_list_for_all_namespaces** +> VersionedEvent watch_policy_v1alpha1_pod_disruption_budget_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of PodDisruptionBudget + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.PolicyV1alpha1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_policy_v1alpha1_pod_disruption_budget_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling PolicyV1alpha1Api->watch_policy_v1alpha1_pod_disruption_budget_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/RbacAuthorizationApi.md b/docs/RbacAuthorizationApi.md new file mode 100644 index 000000000..9e9228175 --- /dev/null +++ b/docs/RbacAuthorizationApi.md @@ -0,0 +1,57 @@ +# k8sclient.RbacAuthorizationApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_rbac_authorization_api_group**](RbacAuthorizationApi.md#get_rbac_authorization_api_group) | **GET** /apis/rbac.authorization.k8s.io/ | + + +# **get_rbac_authorization_api_group** +> UnversionedAPIGroup get_rbac_authorization_api_group() + + + +get information of a group + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationApi() + +try: + api_response = api_instance.get_rbac_authorization_api_group() + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationApi->get_rbac_authorization_api_group: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIGroup**](UnversionedAPIGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/RbacAuthorizationV1alpha1Api.md b/docs/RbacAuthorizationV1alpha1Api.md new file mode 100644 index 000000000..1217f0b29 --- /dev/null +++ b/docs/RbacAuthorizationV1alpha1Api.md @@ -0,0 +1,2485 @@ +# k8sclient.RbacAuthorizationV1alpha1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_rbac_authorization_v1alpha1_cluster_role**](RbacAuthorizationV1alpha1Api.md#create_rbac_authorization_v1alpha1_cluster_role) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | +[**create_rbac_authorization_v1alpha1_cluster_role_binding**](RbacAuthorizationV1alpha1Api.md#create_rbac_authorization_v1alpha1_cluster_role_binding) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | +[**create_rbac_authorization_v1alpha1_namespaced_role**](RbacAuthorizationV1alpha1Api.md#create_rbac_authorization_v1alpha1_namespaced_role) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles | +[**create_rbac_authorization_v1alpha1_namespaced_role_binding**](RbacAuthorizationV1alpha1Api.md#create_rbac_authorization_v1alpha1_namespaced_role_binding) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings | +[**delete_rbac_authorization_v1alpha1_cluster_role**](RbacAuthorizationV1alpha1Api.md#delete_rbac_authorization_v1alpha1_cluster_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | +[**delete_rbac_authorization_v1alpha1_cluster_role_binding**](RbacAuthorizationV1alpha1Api.md#delete_rbac_authorization_v1alpha1_cluster_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | +[**delete_rbac_authorization_v1alpha1_collection_cluster_role**](RbacAuthorizationV1alpha1Api.md#delete_rbac_authorization_v1alpha1_collection_cluster_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | +[**delete_rbac_authorization_v1alpha1_collection_cluster_role_binding**](RbacAuthorizationV1alpha1Api.md#delete_rbac_authorization_v1alpha1_collection_cluster_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | +[**delete_rbac_authorization_v1alpha1_collection_namespaced_role**](RbacAuthorizationV1alpha1Api.md#delete_rbac_authorization_v1alpha1_collection_namespaced_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles | +[**delete_rbac_authorization_v1alpha1_collection_namespaced_role_binding**](RbacAuthorizationV1alpha1Api.md#delete_rbac_authorization_v1alpha1_collection_namespaced_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings | +[**delete_rbac_authorization_v1alpha1_namespaced_role**](RbacAuthorizationV1alpha1Api.md#delete_rbac_authorization_v1alpha1_namespaced_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | +[**delete_rbac_authorization_v1alpha1_namespaced_role_binding**](RbacAuthorizationV1alpha1Api.md#delete_rbac_authorization_v1alpha1_namespaced_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | +[**get_rbac_authorization_v1alpha1_api_resources**](RbacAuthorizationV1alpha1Api.md#get_rbac_authorization_v1alpha1_api_resources) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/ | +[**list_rbac_authorization_v1alpha1_cluster_role**](RbacAuthorizationV1alpha1Api.md#list_rbac_authorization_v1alpha1_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | +[**list_rbac_authorization_v1alpha1_cluster_role_binding**](RbacAuthorizationV1alpha1Api.md#list_rbac_authorization_v1alpha1_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | +[**list_rbac_authorization_v1alpha1_namespaced_role**](RbacAuthorizationV1alpha1Api.md#list_rbac_authorization_v1alpha1_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles | +[**list_rbac_authorization_v1alpha1_namespaced_role_binding**](RbacAuthorizationV1alpha1Api.md#list_rbac_authorization_v1alpha1_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings | +[**list_rbac_authorization_v1alpha1_role_binding_for_all_namespaces**](RbacAuthorizationV1alpha1Api.md#list_rbac_authorization_v1alpha1_role_binding_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/rolebindings | +[**list_rbac_authorization_v1alpha1_role_for_all_namespaces**](RbacAuthorizationV1alpha1Api.md#list_rbac_authorization_v1alpha1_role_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/roles | +[**patch_rbac_authorization_v1alpha1_cluster_role**](RbacAuthorizationV1alpha1Api.md#patch_rbac_authorization_v1alpha1_cluster_role) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | +[**patch_rbac_authorization_v1alpha1_cluster_role_binding**](RbacAuthorizationV1alpha1Api.md#patch_rbac_authorization_v1alpha1_cluster_role_binding) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | +[**patch_rbac_authorization_v1alpha1_namespaced_role**](RbacAuthorizationV1alpha1Api.md#patch_rbac_authorization_v1alpha1_namespaced_role) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | +[**patch_rbac_authorization_v1alpha1_namespaced_role_binding**](RbacAuthorizationV1alpha1Api.md#patch_rbac_authorization_v1alpha1_namespaced_role_binding) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | +[**read_rbac_authorization_v1alpha1_cluster_role**](RbacAuthorizationV1alpha1Api.md#read_rbac_authorization_v1alpha1_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | +[**read_rbac_authorization_v1alpha1_cluster_role_binding**](RbacAuthorizationV1alpha1Api.md#read_rbac_authorization_v1alpha1_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | +[**read_rbac_authorization_v1alpha1_namespaced_role**](RbacAuthorizationV1alpha1Api.md#read_rbac_authorization_v1alpha1_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | +[**read_rbac_authorization_v1alpha1_namespaced_role_binding**](RbacAuthorizationV1alpha1Api.md#read_rbac_authorization_v1alpha1_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | +[**replace_rbac_authorization_v1alpha1_cluster_role**](RbacAuthorizationV1alpha1Api.md#replace_rbac_authorization_v1alpha1_cluster_role) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | +[**replace_rbac_authorization_v1alpha1_cluster_role_binding**](RbacAuthorizationV1alpha1Api.md#replace_rbac_authorization_v1alpha1_cluster_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | +[**replace_rbac_authorization_v1alpha1_namespaced_role**](RbacAuthorizationV1alpha1Api.md#replace_rbac_authorization_v1alpha1_namespaced_role) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | +[**replace_rbac_authorization_v1alpha1_namespaced_role_binding**](RbacAuthorizationV1alpha1Api.md#replace_rbac_authorization_v1alpha1_namespaced_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | +[**watch_rbac_authorization_v1alpha1_cluster_role**](RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles/{name} | +[**watch_rbac_authorization_v1alpha1_cluster_role_binding**](RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings/{name} | +[**watch_rbac_authorization_v1alpha1_cluster_role_binding_list**](RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_cluster_role_binding_list) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings | +[**watch_rbac_authorization_v1alpha1_cluster_role_list**](RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_cluster_role_list) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles | +[**watch_rbac_authorization_v1alpha1_namespaced_role**](RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles/{name} | +[**watch_rbac_authorization_v1alpha1_namespaced_role_binding**](RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name} | +[**watch_rbac_authorization_v1alpha1_namespaced_role_binding_list**](RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_namespaced_role_binding_list) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings | +[**watch_rbac_authorization_v1alpha1_namespaced_role_list**](RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_namespaced_role_list) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles | +[**watch_rbac_authorization_v1alpha1_role_binding_list_for_all_namespaces**](RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_role_binding_list_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/rolebindings | +[**watch_rbac_authorization_v1alpha1_role_list_for_all_namespaces**](RbacAuthorizationV1alpha1Api.md#watch_rbac_authorization_v1alpha1_role_list_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/roles | + + +# **create_rbac_authorization_v1alpha1_cluster_role** +> V1alpha1ClusterRole create_rbac_authorization_v1alpha1_cluster_role(body, pretty=pretty) + + + +create a ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +body = k8sclient.V1alpha1ClusterRole() # V1alpha1ClusterRole | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_rbac_authorization_v1alpha1_cluster_role(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->create_rbac_authorization_v1alpha1_cluster_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1ClusterRole**](V1alpha1ClusterRole.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1ClusterRole**](V1alpha1ClusterRole.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_rbac_authorization_v1alpha1_cluster_role_binding** +> V1alpha1ClusterRoleBinding create_rbac_authorization_v1alpha1_cluster_role_binding(body, pretty=pretty) + + + +create a ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +body = k8sclient.V1alpha1ClusterRoleBinding() # V1alpha1ClusterRoleBinding | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_rbac_authorization_v1alpha1_cluster_role_binding(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->create_rbac_authorization_v1alpha1_cluster_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1ClusterRoleBinding**](V1alpha1ClusterRoleBinding.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1ClusterRoleBinding**](V1alpha1ClusterRoleBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_rbac_authorization_v1alpha1_namespaced_role** +> V1alpha1Role create_rbac_authorization_v1alpha1_namespaced_role(namespace, body, pretty=pretty) + + + +create a Role + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1alpha1Role() # V1alpha1Role | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_rbac_authorization_v1alpha1_namespaced_role(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->create_rbac_authorization_v1alpha1_namespaced_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1Role**](V1alpha1Role.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1Role**](V1alpha1Role.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_rbac_authorization_v1alpha1_namespaced_role_binding** +> V1alpha1RoleBinding create_rbac_authorization_v1alpha1_namespaced_role_binding(namespace, body, pretty=pretty) + + + +create a RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1alpha1RoleBinding() # V1alpha1RoleBinding | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_rbac_authorization_v1alpha1_namespaced_role_binding(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->create_rbac_authorization_v1alpha1_namespaced_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1RoleBinding**](V1alpha1RoleBinding.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1RoleBinding**](V1alpha1RoleBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_rbac_authorization_v1alpha1_cluster_role** +> UnversionedStatus delete_rbac_authorization_v1alpha1_cluster_role(name, body, pretty=pretty) + + + +delete a ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the ClusterRole +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_rbac_authorization_v1alpha1_cluster_role(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->delete_rbac_authorization_v1alpha1_cluster_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRole | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_rbac_authorization_v1alpha1_cluster_role_binding** +> UnversionedStatus delete_rbac_authorization_v1alpha1_cluster_role_binding(name, body, pretty=pretty) + + + +delete a ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the ClusterRoleBinding +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_rbac_authorization_v1alpha1_cluster_role_binding(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->delete_rbac_authorization_v1alpha1_cluster_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRoleBinding | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_rbac_authorization_v1alpha1_collection_cluster_role** +> UnversionedStatus delete_rbac_authorization_v1alpha1_collection_cluster_role(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_rbac_authorization_v1alpha1_collection_cluster_role(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->delete_rbac_authorization_v1alpha1_collection_cluster_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_rbac_authorization_v1alpha1_collection_cluster_role_binding** +> UnversionedStatus delete_rbac_authorization_v1alpha1_collection_cluster_role_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_rbac_authorization_v1alpha1_collection_cluster_role_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->delete_rbac_authorization_v1alpha1_collection_cluster_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_rbac_authorization_v1alpha1_collection_namespaced_role** +> UnversionedStatus delete_rbac_authorization_v1alpha1_collection_namespaced_role(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Role + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_rbac_authorization_v1alpha1_collection_namespaced_role(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->delete_rbac_authorization_v1alpha1_collection_namespaced_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_rbac_authorization_v1alpha1_collection_namespaced_role_binding** +> UnversionedStatus delete_rbac_authorization_v1alpha1_collection_namespaced_role_binding(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_rbac_authorization_v1alpha1_collection_namespaced_role_binding(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->delete_rbac_authorization_v1alpha1_collection_namespaced_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_rbac_authorization_v1alpha1_namespaced_role** +> UnversionedStatus delete_rbac_authorization_v1alpha1_namespaced_role(name, namespace, body, pretty=pretty) + + + +delete a Role + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the Role +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_rbac_authorization_v1alpha1_namespaced_role(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->delete_rbac_authorization_v1alpha1_namespaced_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Role | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_rbac_authorization_v1alpha1_namespaced_role_binding** +> UnversionedStatus delete_rbac_authorization_v1alpha1_namespaced_role_binding(name, namespace, body, pretty=pretty) + + + +delete a RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the RoleBinding +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_rbac_authorization_v1alpha1_namespaced_role_binding(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->delete_rbac_authorization_v1alpha1_namespaced_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the RoleBinding | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_rbac_authorization_v1alpha1_api_resources** +> UnversionedAPIResourceList get_rbac_authorization_v1alpha1_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() + +try: + api_response = api_instance.get_rbac_authorization_v1alpha1_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->get_rbac_authorization_v1alpha1_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_rbac_authorization_v1alpha1_cluster_role** +> V1alpha1ClusterRoleList list_rbac_authorization_v1alpha1_cluster_role(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_rbac_authorization_v1alpha1_cluster_role(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->list_rbac_authorization_v1alpha1_cluster_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1ClusterRoleList**](V1alpha1ClusterRoleList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_rbac_authorization_v1alpha1_cluster_role_binding** +> V1alpha1ClusterRoleBindingList list_rbac_authorization_v1alpha1_cluster_role_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_rbac_authorization_v1alpha1_cluster_role_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->list_rbac_authorization_v1alpha1_cluster_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1ClusterRoleBindingList**](V1alpha1ClusterRoleBindingList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_rbac_authorization_v1alpha1_namespaced_role** +> V1alpha1RoleList list_rbac_authorization_v1alpha1_namespaced_role(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Role + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_rbac_authorization_v1alpha1_namespaced_role(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->list_rbac_authorization_v1alpha1_namespaced_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1RoleList**](V1alpha1RoleList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_rbac_authorization_v1alpha1_namespaced_role_binding** +> V1alpha1RoleBindingList list_rbac_authorization_v1alpha1_namespaced_role_binding(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_rbac_authorization_v1alpha1_namespaced_role_binding(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->list_rbac_authorization_v1alpha1_namespaced_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1RoleBindingList**](V1alpha1RoleBindingList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_rbac_authorization_v1alpha1_role_binding_for_all_namespaces** +> V1alpha1RoleBindingList list_rbac_authorization_v1alpha1_role_binding_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_rbac_authorization_v1alpha1_role_binding_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->list_rbac_authorization_v1alpha1_role_binding_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1RoleBindingList**](V1alpha1RoleBindingList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_rbac_authorization_v1alpha1_role_for_all_namespaces** +> V1alpha1RoleList list_rbac_authorization_v1alpha1_role_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Role + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_rbac_authorization_v1alpha1_role_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->list_rbac_authorization_v1alpha1_role_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1RoleList**](V1alpha1RoleList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_rbac_authorization_v1alpha1_cluster_role** +> V1alpha1ClusterRole patch_rbac_authorization_v1alpha1_cluster_role(name, body, pretty=pretty) + + + +partially update the specified ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the ClusterRole +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_rbac_authorization_v1alpha1_cluster_role(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->patch_rbac_authorization_v1alpha1_cluster_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRole | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1ClusterRole**](V1alpha1ClusterRole.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_rbac_authorization_v1alpha1_cluster_role_binding** +> V1alpha1ClusterRoleBinding patch_rbac_authorization_v1alpha1_cluster_role_binding(name, body, pretty=pretty) + + + +partially update the specified ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the ClusterRoleBinding +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_rbac_authorization_v1alpha1_cluster_role_binding(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->patch_rbac_authorization_v1alpha1_cluster_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRoleBinding | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1ClusterRoleBinding**](V1alpha1ClusterRoleBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_rbac_authorization_v1alpha1_namespaced_role** +> V1alpha1Role patch_rbac_authorization_v1alpha1_namespaced_role(name, namespace, body, pretty=pretty) + + + +partially update the specified Role + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the Role +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_rbac_authorization_v1alpha1_namespaced_role(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->patch_rbac_authorization_v1alpha1_namespaced_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Role | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1Role**](V1alpha1Role.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_rbac_authorization_v1alpha1_namespaced_role_binding** +> V1alpha1RoleBinding patch_rbac_authorization_v1alpha1_namespaced_role_binding(name, namespace, body, pretty=pretty) + + + +partially update the specified RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the RoleBinding +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_rbac_authorization_v1alpha1_namespaced_role_binding(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->patch_rbac_authorization_v1alpha1_namespaced_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the RoleBinding | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1RoleBinding**](V1alpha1RoleBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_rbac_authorization_v1alpha1_cluster_role** +> V1alpha1ClusterRole read_rbac_authorization_v1alpha1_cluster_role(name, pretty=pretty) + + + +read the specified ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the ClusterRole +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_rbac_authorization_v1alpha1_cluster_role(name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->read_rbac_authorization_v1alpha1_cluster_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRole | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1ClusterRole**](V1alpha1ClusterRole.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_rbac_authorization_v1alpha1_cluster_role_binding** +> V1alpha1ClusterRoleBinding read_rbac_authorization_v1alpha1_cluster_role_binding(name, pretty=pretty) + + + +read the specified ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the ClusterRoleBinding +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_rbac_authorization_v1alpha1_cluster_role_binding(name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->read_rbac_authorization_v1alpha1_cluster_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRoleBinding | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1ClusterRoleBinding**](V1alpha1ClusterRoleBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_rbac_authorization_v1alpha1_namespaced_role** +> V1alpha1Role read_rbac_authorization_v1alpha1_namespaced_role(name, namespace, pretty=pretty) + + + +read the specified Role + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the Role +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_rbac_authorization_v1alpha1_namespaced_role(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->read_rbac_authorization_v1alpha1_namespaced_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Role | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1Role**](V1alpha1Role.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_rbac_authorization_v1alpha1_namespaced_role_binding** +> V1alpha1RoleBinding read_rbac_authorization_v1alpha1_namespaced_role_binding(name, namespace, pretty=pretty) + + + +read the specified RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the RoleBinding +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_rbac_authorization_v1alpha1_namespaced_role_binding(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->read_rbac_authorization_v1alpha1_namespaced_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the RoleBinding | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1RoleBinding**](V1alpha1RoleBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_rbac_authorization_v1alpha1_cluster_role** +> V1alpha1ClusterRole replace_rbac_authorization_v1alpha1_cluster_role(name, body, pretty=pretty) + + + +replace the specified ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the ClusterRole +body = k8sclient.V1alpha1ClusterRole() # V1alpha1ClusterRole | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_rbac_authorization_v1alpha1_cluster_role(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->replace_rbac_authorization_v1alpha1_cluster_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRole | + **body** | [**V1alpha1ClusterRole**](V1alpha1ClusterRole.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1ClusterRole**](V1alpha1ClusterRole.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_rbac_authorization_v1alpha1_cluster_role_binding** +> V1alpha1ClusterRoleBinding replace_rbac_authorization_v1alpha1_cluster_role_binding(name, body, pretty=pretty) + + + +replace the specified ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the ClusterRoleBinding +body = k8sclient.V1alpha1ClusterRoleBinding() # V1alpha1ClusterRoleBinding | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_rbac_authorization_v1alpha1_cluster_role_binding(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->replace_rbac_authorization_v1alpha1_cluster_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRoleBinding | + **body** | [**V1alpha1ClusterRoleBinding**](V1alpha1ClusterRoleBinding.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1ClusterRoleBinding**](V1alpha1ClusterRoleBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_rbac_authorization_v1alpha1_namespaced_role** +> V1alpha1Role replace_rbac_authorization_v1alpha1_namespaced_role(name, namespace, body, pretty=pretty) + + + +replace the specified Role + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the Role +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1alpha1Role() # V1alpha1Role | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_rbac_authorization_v1alpha1_namespaced_role(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->replace_rbac_authorization_v1alpha1_namespaced_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Role | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1Role**](V1alpha1Role.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1Role**](V1alpha1Role.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_rbac_authorization_v1alpha1_namespaced_role_binding** +> V1alpha1RoleBinding replace_rbac_authorization_v1alpha1_namespaced_role_binding(name, namespace, body, pretty=pretty) + + + +replace the specified RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the RoleBinding +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = k8sclient.V1alpha1RoleBinding() # V1alpha1RoleBinding | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_rbac_authorization_v1alpha1_namespaced_role_binding(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->replace_rbac_authorization_v1alpha1_namespaced_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the RoleBinding | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1RoleBinding**](V1alpha1RoleBinding.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1RoleBinding**](V1alpha1RoleBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_rbac_authorization_v1alpha1_cluster_role** +> VersionedEvent watch_rbac_authorization_v1alpha1_cluster_role(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the ClusterRole +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_rbac_authorization_v1alpha1_cluster_role(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->watch_rbac_authorization_v1alpha1_cluster_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRole | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_rbac_authorization_v1alpha1_cluster_role_binding** +> VersionedEvent watch_rbac_authorization_v1alpha1_cluster_role_binding(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the ClusterRoleBinding +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_rbac_authorization_v1alpha1_cluster_role_binding(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->watch_rbac_authorization_v1alpha1_cluster_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRoleBinding | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_rbac_authorization_v1alpha1_cluster_role_binding_list** +> VersionedEvent watch_rbac_authorization_v1alpha1_cluster_role_binding_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_rbac_authorization_v1alpha1_cluster_role_binding_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->watch_rbac_authorization_v1alpha1_cluster_role_binding_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_rbac_authorization_v1alpha1_cluster_role_list** +> VersionedEvent watch_rbac_authorization_v1alpha1_cluster_role_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_rbac_authorization_v1alpha1_cluster_role_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->watch_rbac_authorization_v1alpha1_cluster_role_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_rbac_authorization_v1alpha1_namespaced_role** +> VersionedEvent watch_rbac_authorization_v1alpha1_namespaced_role(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind Role + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the Role +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_rbac_authorization_v1alpha1_namespaced_role(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->watch_rbac_authorization_v1alpha1_namespaced_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Role | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_rbac_authorization_v1alpha1_namespaced_role_binding** +> VersionedEvent watch_rbac_authorization_v1alpha1_namespaced_role_binding(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +name = 'name_example' # str | name of the RoleBinding +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_rbac_authorization_v1alpha1_namespaced_role_binding(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->watch_rbac_authorization_v1alpha1_namespaced_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the RoleBinding | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_rbac_authorization_v1alpha1_namespaced_role_binding_list** +> VersionedEvent watch_rbac_authorization_v1alpha1_namespaced_role_binding_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_rbac_authorization_v1alpha1_namespaced_role_binding_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->watch_rbac_authorization_v1alpha1_namespaced_role_binding_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_rbac_authorization_v1alpha1_namespaced_role_list** +> VersionedEvent watch_rbac_authorization_v1alpha1_namespaced_role_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Role + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_rbac_authorization_v1alpha1_namespaced_role_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->watch_rbac_authorization_v1alpha1_namespaced_role_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_rbac_authorization_v1alpha1_role_binding_list_for_all_namespaces** +> VersionedEvent watch_rbac_authorization_v1alpha1_role_binding_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_rbac_authorization_v1alpha1_role_binding_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->watch_rbac_authorization_v1alpha1_role_binding_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_rbac_authorization_v1alpha1_role_list_for_all_namespaces** +> VersionedEvent watch_rbac_authorization_v1alpha1_role_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of Role + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.RbacAuthorizationV1alpha1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_rbac_authorization_v1alpha1_role_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->watch_rbac_authorization_v1alpha1_role_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ResourceQuantity.md b/docs/ResourceQuantity.md new file mode 100644 index 000000000..8304f32fd --- /dev/null +++ b/docs/ResourceQuantity.md @@ -0,0 +1,9 @@ +# ResourceQuantity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RuntimeRawExtension.md b/docs/RuntimeRawExtension.md new file mode 100644 index 000000000..6be207fb2 --- /dev/null +++ b/docs/RuntimeRawExtension.md @@ -0,0 +1,10 @@ +# RuntimeRawExtension + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**raw** | **str** | Raw is the underlying serialization of this object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StorageApi.md b/docs/StorageApi.md new file mode 100644 index 000000000..36240c0e9 --- /dev/null +++ b/docs/StorageApi.md @@ -0,0 +1,57 @@ +# k8sclient.StorageApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_storage_api_group**](StorageApi.md#get_storage_api_group) | **GET** /apis/storage.k8s.io/ | + + +# **get_storage_api_group** +> UnversionedAPIGroup get_storage_api_group() + + + +get information of a group + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.StorageApi() + +try: + api_response = api_instance.get_storage_api_group() + pprint(api_response) +except ApiException as e: + print("Exception when calling StorageApi->get_storage_api_group: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIGroup**](UnversionedAPIGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/StorageV1beta1Api.md b/docs/StorageV1beta1Api.md new file mode 100644 index 000000000..85cb9ab91 --- /dev/null +++ b/docs/StorageV1beta1Api.md @@ -0,0 +1,596 @@ +# k8sclient.StorageV1beta1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_storage_v1beta1_storage_class**](StorageV1beta1Api.md#create_storage_v1beta1_storage_class) | **POST** /apis/storage.k8s.io/v1beta1/storageclasses | +[**delete_storage_v1beta1_collection_storage_class**](StorageV1beta1Api.md#delete_storage_v1beta1_collection_storage_class) | **DELETE** /apis/storage.k8s.io/v1beta1/storageclasses | +[**delete_storage_v1beta1_storage_class**](StorageV1beta1Api.md#delete_storage_v1beta1_storage_class) | **DELETE** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | +[**get_storage_v1beta1_api_resources**](StorageV1beta1Api.md#get_storage_v1beta1_api_resources) | **GET** /apis/storage.k8s.io/v1beta1/ | +[**list_storage_v1beta1_storage_class**](StorageV1beta1Api.md#list_storage_v1beta1_storage_class) | **GET** /apis/storage.k8s.io/v1beta1/storageclasses | +[**patch_storage_v1beta1_storage_class**](StorageV1beta1Api.md#patch_storage_v1beta1_storage_class) | **PATCH** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | +[**read_storage_v1beta1_storage_class**](StorageV1beta1Api.md#read_storage_v1beta1_storage_class) | **GET** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | +[**replace_storage_v1beta1_storage_class**](StorageV1beta1Api.md#replace_storage_v1beta1_storage_class) | **PUT** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | +[**watch_storage_v1beta1_storage_class**](StorageV1beta1Api.md#watch_storage_v1beta1_storage_class) | **GET** /apis/storage.k8s.io/v1beta1/watch/storageclasses/{name} | +[**watch_storage_v1beta1_storage_class_list**](StorageV1beta1Api.md#watch_storage_v1beta1_storage_class_list) | **GET** /apis/storage.k8s.io/v1beta1/watch/storageclasses | + + +# **create_storage_v1beta1_storage_class** +> V1beta1StorageClass create_storage_v1beta1_storage_class(body, pretty=pretty) + + + +create a StorageClass + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.StorageV1beta1Api() +body = k8sclient.V1beta1StorageClass() # V1beta1StorageClass | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_storage_v1beta1_storage_class(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling StorageV1beta1Api->create_storage_v1beta1_storage_class: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1StorageClass**](V1beta1StorageClass.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1StorageClass**](V1beta1StorageClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_storage_v1beta1_collection_storage_class** +> UnversionedStatus delete_storage_v1beta1_collection_storage_class(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of StorageClass + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.StorageV1beta1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_storage_v1beta1_collection_storage_class(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling StorageV1beta1Api->delete_storage_v1beta1_collection_storage_class: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_storage_v1beta1_storage_class** +> UnversionedStatus delete_storage_v1beta1_storage_class(name, body, pretty=pretty) + + + +delete a StorageClass + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.StorageV1beta1Api() +name = 'name_example' # str | name of the StorageClass +body = k8sclient.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_storage_v1beta1_storage_class(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling StorageV1beta1Api->delete_storage_v1beta1_storage_class: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StorageClass | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_storage_v1beta1_api_resources** +> UnversionedAPIResourceList get_storage_v1beta1_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.StorageV1beta1Api() + +try: + api_response = api_instance.get_storage_v1beta1_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling StorageV1beta1Api->get_storage_v1beta1_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_storage_v1beta1_storage_class** +> V1beta1StorageClassList list_storage_v1beta1_storage_class(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind StorageClass + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.StorageV1beta1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_storage_v1beta1_storage_class(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling StorageV1beta1Api->list_storage_v1beta1_storage_class: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1StorageClassList**](V1beta1StorageClassList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_storage_v1beta1_storage_class** +> V1beta1StorageClass patch_storage_v1beta1_storage_class(name, body, pretty=pretty) + + + +partially update the specified StorageClass + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.StorageV1beta1Api() +name = 'name_example' # str | name of the StorageClass +body = k8sclient.UnversionedPatch() # UnversionedPatch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_storage_v1beta1_storage_class(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling StorageV1beta1Api->patch_storage_v1beta1_storage_class: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StorageClass | + **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1StorageClass**](V1beta1StorageClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_storage_v1beta1_storage_class** +> V1beta1StorageClass read_storage_v1beta1_storage_class(name, pretty=pretty, exact=exact, export=export) + + + +read the specified StorageClass + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.StorageV1beta1Api() +name = 'name_example' # str | name of the StorageClass +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_storage_v1beta1_storage_class(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling StorageV1beta1Api->read_storage_v1beta1_storage_class: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StorageClass | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1beta1StorageClass**](V1beta1StorageClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_storage_v1beta1_storage_class** +> V1beta1StorageClass replace_storage_v1beta1_storage_class(name, body, pretty=pretty) + + + +replace the specified StorageClass + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.StorageV1beta1Api() +name = 'name_example' # str | name of the StorageClass +body = k8sclient.V1beta1StorageClass() # V1beta1StorageClass | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_storage_v1beta1_storage_class(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling StorageV1beta1Api->replace_storage_v1beta1_storage_class: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StorageClass | + **body** | [**V1beta1StorageClass**](V1beta1StorageClass.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1StorageClass**](V1beta1StorageClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_storage_v1beta1_storage_class** +> VersionedEvent watch_storage_v1beta1_storage_class(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch changes to an object of kind StorageClass + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.StorageV1beta1Api() +name = 'name_example' # str | name of the StorageClass +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_storage_v1beta1_storage_class(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling StorageV1beta1Api->watch_storage_v1beta1_storage_class: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StorageClass | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_storage_v1beta1_storage_class_list** +> VersionedEvent watch_storage_v1beta1_storage_class_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +watch individual changes to a list of StorageClass + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.StorageV1beta1Api() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_storage_v1beta1_storage_class_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling StorageV1beta1Api->watch_storage_v1beta1_storage_class_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**VersionedEvent**](VersionedEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/UnversionedAPIGroup.md b/docs/UnversionedAPIGroup.md new file mode 100644 index 000000000..10a7f1d03 --- /dev/null +++ b/docs/UnversionedAPIGroup.md @@ -0,0 +1,13 @@ +# UnversionedAPIGroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | name is the name of the group. | +**preferred_version** | [**UnversionedGroupVersionForDiscovery**](UnversionedGroupVersionForDiscovery.md) | preferredVersion is the version preferred by the API server, which probably is the storage version. | [optional] +**server_address_by_client_cid_rs** | [**list[UnversionedServerAddressByClientCIDR]**](UnversionedServerAddressByClientCIDR.md) | a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. | +**versions** | [**list[UnversionedGroupVersionForDiscovery]**](UnversionedGroupVersionForDiscovery.md) | versions are the versions supported in this group. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UnversionedAPIGroupList.md b/docs/UnversionedAPIGroupList.md new file mode 100644 index 000000000..a21edf998 --- /dev/null +++ b/docs/UnversionedAPIGroupList.md @@ -0,0 +1,10 @@ +# UnversionedAPIGroupList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groups** | [**list[UnversionedAPIGroup]**](UnversionedAPIGroup.md) | groups is a list of APIGroup. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UnversionedAPIResource.md b/docs/UnversionedAPIResource.md new file mode 100644 index 000000000..b1774241a --- /dev/null +++ b/docs/UnversionedAPIResource.md @@ -0,0 +1,12 @@ +# UnversionedAPIResource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | **str** | kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') | +**name** | **str** | name is the name of the resource. | +**namespaced** | **bool** | namespaced indicates if a resource is namespaced or not. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UnversionedAPIResourceList.md b/docs/UnversionedAPIResourceList.md new file mode 100644 index 000000000..8af4e63ad --- /dev/null +++ b/docs/UnversionedAPIResourceList.md @@ -0,0 +1,11 @@ +# UnversionedAPIResourceList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group_version** | **str** | groupVersion is the group and version this APIResourceList is for. | +**resources** | [**list[UnversionedAPIResource]**](UnversionedAPIResource.md) | resources contains the name of the resources and if they are namespaced. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UnversionedAPIVersions.md b/docs/UnversionedAPIVersions.md new file mode 100644 index 000000000..9b445e293 --- /dev/null +++ b/docs/UnversionedAPIVersions.md @@ -0,0 +1,11 @@ +# UnversionedAPIVersions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**server_address_by_client_cid_rs** | [**list[UnversionedServerAddressByClientCIDR]**](UnversionedServerAddressByClientCIDR.md) | a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. | +**versions** | **list[str]** | versions are the api versions that are available. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UnversionedGroupVersionForDiscovery.md b/docs/UnversionedGroupVersionForDiscovery.md new file mode 100644 index 000000000..6ad9c71bc --- /dev/null +++ b/docs/UnversionedGroupVersionForDiscovery.md @@ -0,0 +1,11 @@ +# UnversionedGroupVersionForDiscovery + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group_version** | **str** | groupVersion specifies the API group and version in the form \"group/version\" | +**version** | **str** | version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UnversionedLabelSelector.md b/docs/UnversionedLabelSelector.md new file mode 100644 index 000000000..3d6ec56ba --- /dev/null +++ b/docs/UnversionedLabelSelector.md @@ -0,0 +1,11 @@ +# UnversionedLabelSelector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**match_expressions** | [**list[UnversionedLabelSelectorRequirement]**](UnversionedLabelSelectorRequirement.md) | matchExpressions is a list of label selector requirements. The requirements are ANDed. | [optional] +**match_labels** | **dict(str, str)** | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UnversionedLabelSelectorRequirement.md b/docs/UnversionedLabelSelectorRequirement.md new file mode 100644 index 000000000..6251f8c96 --- /dev/null +++ b/docs/UnversionedLabelSelectorRequirement.md @@ -0,0 +1,12 @@ +# UnversionedLabelSelectorRequirement + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **str** | key is the label key that the selector applies to. | +**operator** | **str** | operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist. | +**values** | **list[str]** | values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UnversionedListMeta.md b/docs/UnversionedListMeta.md new file mode 100644 index 000000000..776f6b92d --- /dev/null +++ b/docs/UnversionedListMeta.md @@ -0,0 +1,11 @@ +# UnversionedListMeta + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource_version** | **str** | String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency | [optional] +**self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UnversionedServerAddressByClientCIDR.md b/docs/UnversionedServerAddressByClientCIDR.md new file mode 100644 index 000000000..8ebff3b7c --- /dev/null +++ b/docs/UnversionedServerAddressByClientCIDR.md @@ -0,0 +1,11 @@ +# UnversionedServerAddressByClientCIDR + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client_cidr** | **str** | The CIDR with which clients can match their IP to figure out the server address that they should use. | +**server_address** | **str** | Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UnversionedStatus.md b/docs/UnversionedStatus.md new file mode 100644 index 000000000..6a8242777 --- /dev/null +++ b/docs/UnversionedStatus.md @@ -0,0 +1,15 @@ +# UnversionedStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **int** | Suggested HTTP return code for this status, 0 if not set. | [optional] +**details** | [**UnversionedStatusDetails**](UnversionedStatusDetails.md) | Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. | [optional] +**message** | **str** | A human-readable description of the status of this operation. | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**reason** | **str** | A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. | [optional] +**status** | **str** | Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UnversionedStatusCause.md b/docs/UnversionedStatusCause.md new file mode 100644 index 000000000..a614c121c --- /dev/null +++ b/docs/UnversionedStatusCause.md @@ -0,0 +1,12 @@ +# UnversionedStatusCause + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**field** | **str** | The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" | [optional] +**message** | **str** | A human-readable description of the cause of the error. This field may be presented as-is to a reader. | [optional] +**reason** | **str** | A machine-readable description of the cause of the error. If this value is empty there is no information available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UnversionedStatusDetails.md b/docs/UnversionedStatusDetails.md new file mode 100644 index 000000000..c497dace6 --- /dev/null +++ b/docs/UnversionedStatusDetails.md @@ -0,0 +1,14 @@ +# UnversionedStatusDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**causes** | [**list[UnversionedStatusCause]**](UnversionedStatusCause.md) | The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. | [optional] +**group** | **str** | The group attribute of the resource associated with the status StatusReason. | [optional] +**kind** | **str** | The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**name** | **str** | The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). | [optional] +**retry_after_seconds** | **int** | If specified, the time in seconds before the operation should be retried. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UnversionedTime.md b/docs/UnversionedTime.md new file mode 100644 index 000000000..6d8243c2a --- /dev/null +++ b/docs/UnversionedTime.md @@ -0,0 +1,9 @@ +# UnversionedTime + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1AttachedVolume.md b/docs/V1AttachedVolume.md new file mode 100644 index 000000000..cc9023e99 --- /dev/null +++ b/docs/V1AttachedVolume.md @@ -0,0 +1,11 @@ +# V1AttachedVolume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device_path** | **str** | DevicePath represents the device path where the volume should be available | +**name** | **str** | Name of the attached volume | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Binding.md b/docs/V1Binding.md new file mode 100644 index 000000000..a5f37f2ce --- /dev/null +++ b/docs/V1Binding.md @@ -0,0 +1,11 @@ +# V1Binding + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**target** | [**V1ObjectReference**](V1ObjectReference.md) | The target object that you want to bind to the standard object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Capabilities.md b/docs/V1Capabilities.md new file mode 100644 index 000000000..f7b22b74c --- /dev/null +++ b/docs/V1Capabilities.md @@ -0,0 +1,11 @@ +# V1Capabilities + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**add** | **list[str]** | Added capabilities | [optional] +**drop** | **list[str]** | Removed capabilities | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ComponentCondition.md b/docs/V1ComponentCondition.md new file mode 100644 index 000000000..8d7540e71 --- /dev/null +++ b/docs/V1ComponentCondition.md @@ -0,0 +1,13 @@ +# V1ComponentCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Condition error code for a component. For example, a health check error code. | [optional] +**message** | **str** | Message about the condition for a component. For example, information about a health check. | [optional] +**status** | **str** | Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". | +**type** | **str** | Type of condition for a component. Valid value: \"Healthy\" | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ComponentStatus.md b/docs/V1ComponentStatus.md new file mode 100644 index 000000000..1c7b5700f --- /dev/null +++ b/docs/V1ComponentStatus.md @@ -0,0 +1,11 @@ +# V1ComponentStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list[V1ComponentCondition]**](V1ComponentCondition.md) | List of component conditions observed | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ComponentStatusList.md b/docs/V1ComponentStatusList.md new file mode 100644 index 000000000..c4252bf5e --- /dev/null +++ b/docs/V1ComponentStatusList.md @@ -0,0 +1,11 @@ +# V1ComponentStatusList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1ComponentStatus]**](V1ComponentStatus.md) | List of ComponentStatus objects. | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ConfigMap.md b/docs/V1ConfigMap.md new file mode 100644 index 000000000..6bbced44a --- /dev/null +++ b/docs/V1ConfigMap.md @@ -0,0 +1,11 @@ +# V1ConfigMap + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **dict(str, str)** | Data contains the configuration data. Each key must be a valid DNS_SUBDOMAIN with an optional leading dot. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ConfigMapKeySelector.md b/docs/V1ConfigMapKeySelector.md new file mode 100644 index 000000000..577d8a552 --- /dev/null +++ b/docs/V1ConfigMapKeySelector.md @@ -0,0 +1,10 @@ +# V1ConfigMapKeySelector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **str** | The key to select. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ConfigMapList.md b/docs/V1ConfigMapList.md new file mode 100644 index 000000000..3ea3965c6 --- /dev/null +++ b/docs/V1ConfigMapList.md @@ -0,0 +1,11 @@ +# V1ConfigMapList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1ConfigMap]**](V1ConfigMap.md) | Items is the list of ConfigMaps. | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Container.md b/docs/V1Container.md new file mode 100644 index 000000000..e6d35193f --- /dev/null +++ b/docs/V1Container.md @@ -0,0 +1,27 @@ +# V1Container + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**args** | **list[str]** | Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands | [optional] +**command** | **list[str]** | Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands | [optional] +**env** | [**list[V1EnvVar]**](V1EnvVar.md) | List of environment variables to set in the container. Cannot be updated. | [optional] +**image** | **str** | Docker image name. More info: http://kubernetes.io/docs/user-guide/images | [optional] +**image_pull_policy** | **str** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images | [optional] +**lifecycle** | [**V1Lifecycle**](V1Lifecycle.md) | Actions that the management system should take in response to container lifecycle events. Cannot be updated. | [optional] +**liveness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes | [optional] +**name** | **str** | Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. | +**ports** | [**list[V1ContainerPort]**](V1ContainerPort.md) | List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. | [optional] +**readiness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes | [optional] +**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Compute Resources required by this container. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources | [optional] +**security_context** | [**V1SecurityContext**](V1SecurityContext.md) | Security options the pod should run with. More info: http://releases.k8s.io/HEAD/docs/design/security_context.md | [optional] +**stdin** | **bool** | Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. | [optional] +**stdin_once** | **bool** | Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false | [optional] +**termination_message_path** | **str** | Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Defaults to /dev/termination-log. Cannot be updated. | [optional] +**tty** | **bool** | Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. | [optional] +**volume_mounts** | [**list[V1VolumeMount]**](V1VolumeMount.md) | Pod volumes to mount into the container's filesystem. Cannot be updated. | [optional] +**working_dir** | **str** | Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ContainerImage.md b/docs/V1ContainerImage.md new file mode 100644 index 000000000..1bc49c9d3 --- /dev/null +++ b/docs/V1ContainerImage.md @@ -0,0 +1,11 @@ +# V1ContainerImage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**names** | **list[str]** | Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] | +**size_bytes** | **int** | The size of the image in bytes. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ContainerPort.md b/docs/V1ContainerPort.md new file mode 100644 index 000000000..fc37ff2a4 --- /dev/null +++ b/docs/V1ContainerPort.md @@ -0,0 +1,14 @@ +# V1ContainerPort + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container_port** | **int** | Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. | +**host_ip** | **str** | What host IP to bind the external port to. | [optional] +**host_port** | **int** | Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. | [optional] +**name** | **str** | If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. | [optional] +**protocol** | **str** | Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ContainerState.md b/docs/V1ContainerState.md new file mode 100644 index 000000000..cb5d09854 --- /dev/null +++ b/docs/V1ContainerState.md @@ -0,0 +1,12 @@ +# V1ContainerState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**running** | [**V1ContainerStateRunning**](V1ContainerStateRunning.md) | Details about a running container | [optional] +**terminated** | [**V1ContainerStateTerminated**](V1ContainerStateTerminated.md) | Details about a terminated container | [optional] +**waiting** | [**V1ContainerStateWaiting**](V1ContainerStateWaiting.md) | Details about a waiting container | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ContainerStateRunning.md b/docs/V1ContainerStateRunning.md new file mode 100644 index 000000000..9db0dac67 --- /dev/null +++ b/docs/V1ContainerStateRunning.md @@ -0,0 +1,10 @@ +# V1ContainerStateRunning + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**started_at** | [**UnversionedTime**](UnversionedTime.md) | Time at which the container was last (re-)started | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ContainerStateTerminated.md b/docs/V1ContainerStateTerminated.md new file mode 100644 index 000000000..aa2a1d267 --- /dev/null +++ b/docs/V1ContainerStateTerminated.md @@ -0,0 +1,16 @@ +# V1ContainerStateTerminated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container_id** | **str** | Container's ID in the format 'docker://<container_id>' | [optional] +**exit_code** | **int** | Exit status from the last termination of the container | +**finished_at** | [**UnversionedTime**](UnversionedTime.md) | Time at which the container last terminated | [optional] +**message** | **str** | Message regarding the last termination of the container | [optional] +**reason** | **str** | (brief) reason from the last termination of the container | [optional] +**signal** | **int** | Signal from the last termination of the container | [optional] +**started_at** | [**UnversionedTime**](UnversionedTime.md) | Time at which previous execution of the container started | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ContainerStateWaiting.md b/docs/V1ContainerStateWaiting.md new file mode 100644 index 000000000..43f6b6832 --- /dev/null +++ b/docs/V1ContainerStateWaiting.md @@ -0,0 +1,11 @@ +# V1ContainerStateWaiting + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Message regarding why the container is not yet running. | [optional] +**reason** | **str** | (brief) reason the container is not yet running. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ContainerStatus.md b/docs/V1ContainerStatus.md new file mode 100644 index 000000000..951851fcb --- /dev/null +++ b/docs/V1ContainerStatus.md @@ -0,0 +1,17 @@ +# V1ContainerStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container_id** | **str** | Container's ID in the format 'docker://<container_id>'. More info: http://kubernetes.io/docs/user-guide/container-environment#container-information | [optional] +**image** | **str** | The image the container is running. More info: http://kubernetes.io/docs/user-guide/images | +**image_id** | **str** | ImageID of the container's image. | +**last_state** | [**V1ContainerState**](V1ContainerState.md) | Details about the container's last termination condition. | [optional] +**name** | **str** | This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. | +**ready** | **bool** | Specifies whether the container has passed its readiness probe. | +**restart_count** | **int** | The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. | +**state** | [**V1ContainerState**](V1ContainerState.md) | Details about the container's current condition. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1CrossVersionObjectReference.md b/docs/V1CrossVersionObjectReference.md new file mode 100644 index 000000000..a329e91a1 --- /dev/null +++ b/docs/V1CrossVersionObjectReference.md @@ -0,0 +1,12 @@ +# V1CrossVersionObjectReference + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | API version of the referent | [optional] +**kind** | **str** | Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\" | +**name** | **str** | Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1DaemonEndpoint.md b/docs/V1DaemonEndpoint.md new file mode 100644 index 000000000..7c5e93d9b --- /dev/null +++ b/docs/V1DaemonEndpoint.md @@ -0,0 +1,10 @@ +# V1DaemonEndpoint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**port** | **int** | Port number of the given endpoint. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1DeleteOptions.md b/docs/V1DeleteOptions.md new file mode 100644 index 000000000..44e40b7b7 --- /dev/null +++ b/docs/V1DeleteOptions.md @@ -0,0 +1,12 @@ +# V1DeleteOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**grace_period_seconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**orphan_dependents** | **bool** | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] +**preconditions** | [**V1Preconditions**](V1Preconditions.md) | Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1EndpointAddress.md b/docs/V1EndpointAddress.md new file mode 100644 index 000000000..90cd03261 --- /dev/null +++ b/docs/V1EndpointAddress.md @@ -0,0 +1,13 @@ +# V1EndpointAddress + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostname** | **str** | The Hostname of this endpoint | [optional] +**ip** | **str** | The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. | +**node_name** | **str** | Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. | [optional] +**target_ref** | [**V1ObjectReference**](V1ObjectReference.md) | Reference to object providing the endpoint. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1EndpointPort.md b/docs/V1EndpointPort.md new file mode 100644 index 000000000..ca9eca2ca --- /dev/null +++ b/docs/V1EndpointPort.md @@ -0,0 +1,12 @@ +# V1EndpointPort + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined. | [optional] +**port** | **int** | The port number of the endpoint. | +**protocol** | **str** | The IP protocol for this port. Must be UDP or TCP. Default is TCP. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1EndpointSubset.md b/docs/V1EndpointSubset.md new file mode 100644 index 000000000..ef50bd6ab --- /dev/null +++ b/docs/V1EndpointSubset.md @@ -0,0 +1,12 @@ +# V1EndpointSubset + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**addresses** | [**list[V1EndpointAddress]**](V1EndpointAddress.md) | IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. | [optional] +**not_ready_addresses** | [**list[V1EndpointAddress]**](V1EndpointAddress.md) | IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. | [optional] +**ports** | [**list[V1EndpointPort]**](V1EndpointPort.md) | Port numbers available on the related IP addresses. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Endpoints.md b/docs/V1Endpoints.md new file mode 100644 index 000000000..69aca30af --- /dev/null +++ b/docs/V1Endpoints.md @@ -0,0 +1,11 @@ +# V1Endpoints + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**subsets** | [**list[V1EndpointSubset]**](V1EndpointSubset.md) | The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1EndpointsList.md b/docs/V1EndpointsList.md new file mode 100644 index 000000000..20fa1ee3f --- /dev/null +++ b/docs/V1EndpointsList.md @@ -0,0 +1,11 @@ +# V1EndpointsList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1Endpoints]**](V1Endpoints.md) | List of endpoints. | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1EnvVar.md b/docs/V1EnvVar.md new file mode 100644 index 000000000..a3869b8a6 --- /dev/null +++ b/docs/V1EnvVar.md @@ -0,0 +1,12 @@ +# V1EnvVar + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the environment variable. Must be a C_IDENTIFIER. | +**value** | **str** | Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". | [optional] +**value_from** | [**V1EnvVarSource**](V1EnvVarSource.md) | Source for the environment variable's value. Cannot be used if value is not empty. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1EnvVarSource.md b/docs/V1EnvVarSource.md new file mode 100644 index 000000000..734637365 --- /dev/null +++ b/docs/V1EnvVarSource.md @@ -0,0 +1,13 @@ +# V1EnvVarSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config_map_key_ref** | [**V1ConfigMapKeySelector**](V1ConfigMapKeySelector.md) | Selects a key of a ConfigMap. | [optional] +**field_ref** | [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.podIP. | [optional] +**resource_field_ref** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. | [optional] +**secret_key_ref** | [**V1SecretKeySelector**](V1SecretKeySelector.md) | Selects a key of a secret in the pod's namespace | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Event.md b/docs/V1Event.md new file mode 100644 index 000000000..855e6034c --- /dev/null +++ b/docs/V1Event.md @@ -0,0 +1,18 @@ +# V1Event + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | The number of times this event has occurred. | [optional] +**first_timestamp** | [**UnversionedTime**](UnversionedTime.md) | The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) | [optional] +**involved_object** | [**V1ObjectReference**](V1ObjectReference.md) | The object that this event is about. | +**last_timestamp** | [**UnversionedTime**](UnversionedTime.md) | The time at which the most recent occurrence of this event was recorded. | [optional] +**message** | **str** | A human-readable description of the status of this operation. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | +**reason** | **str** | This should be a short, machine understandable string that gives the reason for the transition into the object's current status. | [optional] +**source** | [**V1EventSource**](V1EventSource.md) | The component reporting this event. Should be a short machine understandable string. | [optional] +**type** | **str** | Type of this event (Normal, Warning), new types could be added in the future | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1EventList.md b/docs/V1EventList.md new file mode 100644 index 000000000..16b78ef66 --- /dev/null +++ b/docs/V1EventList.md @@ -0,0 +1,11 @@ +# V1EventList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1Event]**](V1Event.md) | List of events | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1EventSource.md b/docs/V1EventSource.md new file mode 100644 index 000000000..e3841ee20 --- /dev/null +++ b/docs/V1EventSource.md @@ -0,0 +1,11 @@ +# V1EventSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**component** | **str** | Component from which the event is generated. | [optional] +**host** | **str** | Node name on which the event is generated. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ExecAction.md b/docs/V1ExecAction.md new file mode 100644 index 000000000..ea405f06b --- /dev/null +++ b/docs/V1ExecAction.md @@ -0,0 +1,10 @@ +# V1ExecAction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**command** | **list[str]** | Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1HTTPGetAction.md b/docs/V1HTTPGetAction.md new file mode 100644 index 000000000..3d3d3a00a --- /dev/null +++ b/docs/V1HTTPGetAction.md @@ -0,0 +1,14 @@ +# V1HTTPGetAction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**host** | **str** | Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. | [optional] +**http_headers** | [**list[V1HTTPHeader]**](V1HTTPHeader.md) | Custom headers to set in the request. HTTP allows repeated headers. | [optional] +**path** | **str** | Path to access on the HTTP server. | [optional] +**port** | [**IntstrIntOrString**](IntstrIntOrString.md) | Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. | +**scheme** | **str** | Scheme to use for connecting to the host. Defaults to HTTP. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1HTTPHeader.md b/docs/V1HTTPHeader.md new file mode 100644 index 000000000..1950451f1 --- /dev/null +++ b/docs/V1HTTPHeader.md @@ -0,0 +1,11 @@ +# V1HTTPHeader + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The header field name | +**value** | **str** | The header field value | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Handler.md b/docs/V1Handler.md new file mode 100644 index 000000000..6e6687ddc --- /dev/null +++ b/docs/V1Handler.md @@ -0,0 +1,12 @@ +# V1Handler + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_exec** | [**V1ExecAction**](V1ExecAction.md) | One and only one of the following should be specified. Exec specifies the action to take. | [optional] +**http_get** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | HTTPGet specifies the http request to perform. | [optional] +**tcp_socket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1HorizontalPodAutoscaler.md b/docs/V1HorizontalPodAutoscaler.md new file mode 100644 index 000000000..1530d44c7 --- /dev/null +++ b/docs/V1HorizontalPodAutoscaler.md @@ -0,0 +1,12 @@ +# V1HorizontalPodAutoscaler + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1HorizontalPodAutoscalerSpec**](V1HorizontalPodAutoscalerSpec.md) | behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. | [optional] +**status** | [**V1HorizontalPodAutoscalerStatus**](V1HorizontalPodAutoscalerStatus.md) | current information about the autoscaler. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1HorizontalPodAutoscalerList.md b/docs/V1HorizontalPodAutoscalerList.md new file mode 100644 index 000000000..6339bced8 --- /dev/null +++ b/docs/V1HorizontalPodAutoscalerList.md @@ -0,0 +1,11 @@ +# V1HorizontalPodAutoscalerList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1HorizontalPodAutoscaler]**](V1HorizontalPodAutoscaler.md) | list of horizontal pod autoscaler objects. | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1HorizontalPodAutoscalerSpec.md b/docs/V1HorizontalPodAutoscalerSpec.md new file mode 100644 index 000000000..3681654af --- /dev/null +++ b/docs/V1HorizontalPodAutoscalerSpec.md @@ -0,0 +1,13 @@ +# V1HorizontalPodAutoscalerSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_replicas** | **int** | upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. | +**min_replicas** | **int** | lower limit for the number of pods that can be set by the autoscaler, default 1. | [optional] +**scale_target_ref** | [**V1CrossVersionObjectReference**](V1CrossVersionObjectReference.md) | reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. | +**target_cpu_utilization_percentage** | **int** | target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1HorizontalPodAutoscalerStatus.md b/docs/V1HorizontalPodAutoscalerStatus.md new file mode 100644 index 000000000..e48da3210 --- /dev/null +++ b/docs/V1HorizontalPodAutoscalerStatus.md @@ -0,0 +1,14 @@ +# V1HorizontalPodAutoscalerStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current_cpu_utilization_percentage** | **int** | current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. | [optional] +**current_replicas** | **int** | current number of replicas of pods managed by this autoscaler. | +**desired_replicas** | **int** | desired number of replicas of pods managed by this autoscaler. | +**last_scale_time** | [**UnversionedTime**](UnversionedTime.md) | last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. | [optional] +**observed_generation** | **int** | most recent generation observed by this autoscaler. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Job.md b/docs/V1Job.md new file mode 100644 index 000000000..8a758d969 --- /dev/null +++ b/docs/V1Job.md @@ -0,0 +1,12 @@ +# V1Job + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1JobSpec**](V1JobSpec.md) | Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] +**status** | [**V1JobStatus**](V1JobStatus.md) | Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1JobCondition.md b/docs/V1JobCondition.md new file mode 100644 index 000000000..254e909de --- /dev/null +++ b/docs/V1JobCondition.md @@ -0,0 +1,15 @@ +# V1JobCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_probe_time** | [**UnversionedTime**](UnversionedTime.md) | Last time the condition was checked. | [optional] +**last_transition_time** | [**UnversionedTime**](UnversionedTime.md) | Last time the condition transit from one status to another. | [optional] +**message** | **str** | Human readable message indicating details about last transition. | [optional] +**reason** | **str** | (brief) reason for the condition's last transition. | [optional] +**status** | **str** | Status of the condition, one of True, False, Unknown. | +**type** | **str** | Type of job condition, Complete or Failed. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1JobList.md b/docs/V1JobList.md new file mode 100644 index 000000000..4d68482be --- /dev/null +++ b/docs/V1JobList.md @@ -0,0 +1,11 @@ +# V1JobList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1Job]**](V1Job.md) | Items is the list of Job. | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1JobSpec.md b/docs/V1JobSpec.md new file mode 100644 index 000000000..7776712fb --- /dev/null +++ b/docs/V1JobSpec.md @@ -0,0 +1,15 @@ +# V1JobSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active_deadline_seconds** | **int** | Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer | [optional] +**completions** | **int** | Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs | [optional] +**manual_selector** | **bool** | ManualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md | [optional] +**parallelism** | **int** | Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs | [optional] +**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1JobStatus.md b/docs/V1JobStatus.md new file mode 100644 index 000000000..cc93cb52b --- /dev/null +++ b/docs/V1JobStatus.md @@ -0,0 +1,15 @@ +# V1JobStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **int** | Active is the number of actively running pods. | [optional] +**completion_time** | [**UnversionedTime**](UnversionedTime.md) | CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. | [optional] +**conditions** | [**list[V1JobCondition]**](V1JobCondition.md) | Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs | [optional] +**failed** | **int** | Failed is the number of pods which reached Phase Failed. | [optional] +**start_time** | [**UnversionedTime**](UnversionedTime.md) | StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. | [optional] +**succeeded** | **int** | Succeeded is the number of pods which reached Phase Succeeded. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Lifecycle.md b/docs/V1Lifecycle.md new file mode 100644 index 000000000..cf33a4ab7 --- /dev/null +++ b/docs/V1Lifecycle.md @@ -0,0 +1,11 @@ +# V1Lifecycle + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**post_start** | [**V1Handler**](V1Handler.md) | PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details | [optional] +**pre_stop** | [**V1Handler**](V1Handler.md) | PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1LimitRange.md b/docs/V1LimitRange.md new file mode 100644 index 000000000..5fba5a773 --- /dev/null +++ b/docs/V1LimitRange.md @@ -0,0 +1,11 @@ +# V1LimitRange + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1LimitRangeSpec**](V1LimitRangeSpec.md) | Spec defines the limits enforced. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1LimitRangeItem.md b/docs/V1LimitRangeItem.md new file mode 100644 index 000000000..2270b0e5e --- /dev/null +++ b/docs/V1LimitRangeItem.md @@ -0,0 +1,15 @@ +# V1LimitRangeItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**default** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Default resource requirement limit value by resource name if resource limit is omitted. | [optional] +**default_request** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. | [optional] +**max** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Max usage constraints on this kind by resource name. | [optional] +**max_limit_request_ratio** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. | [optional] +**min** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Min usage constraints on this kind by resource name. | [optional] +**type** | **str** | Type of resource that this limit applies to. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1LimitRangeList.md b/docs/V1LimitRangeList.md new file mode 100644 index 000000000..4905ee8fc --- /dev/null +++ b/docs/V1LimitRangeList.md @@ -0,0 +1,11 @@ +# V1LimitRangeList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1LimitRange]**](V1LimitRange.md) | Items is a list of LimitRange objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_limit_range.md | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1LimitRangeSpec.md b/docs/V1LimitRangeSpec.md new file mode 100644 index 000000000..315b732d7 --- /dev/null +++ b/docs/V1LimitRangeSpec.md @@ -0,0 +1,10 @@ +# V1LimitRangeSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limits** | [**list[V1LimitRangeItem]**](V1LimitRangeItem.md) | Limits is the list of LimitRangeItem objects that are enforced. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1LoadBalancerIngress.md b/docs/V1LoadBalancerIngress.md new file mode 100644 index 000000000..42b5d5ea3 --- /dev/null +++ b/docs/V1LoadBalancerIngress.md @@ -0,0 +1,11 @@ +# V1LoadBalancerIngress + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostname** | **str** | Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) | [optional] +**ip** | **str** | IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1LoadBalancerStatus.md b/docs/V1LoadBalancerStatus.md new file mode 100644 index 000000000..c35acacc7 --- /dev/null +++ b/docs/V1LoadBalancerStatus.md @@ -0,0 +1,10 @@ +# V1LoadBalancerStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ingress** | [**list[V1LoadBalancerIngress]**](V1LoadBalancerIngress.md) | Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1LocalObjectReference.md b/docs/V1LocalObjectReference.md new file mode 100644 index 000000000..e49729afb --- /dev/null +++ b/docs/V1LocalObjectReference.md @@ -0,0 +1,10 @@ +# V1LocalObjectReference + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Namespace.md b/docs/V1Namespace.md new file mode 100644 index 000000000..fde5ff029 --- /dev/null +++ b/docs/V1Namespace.md @@ -0,0 +1,12 @@ +# V1Namespace + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1NamespaceSpec**](V1NamespaceSpec.md) | Spec defines the behavior of the Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] +**status** | [**V1NamespaceStatus**](V1NamespaceStatus.md) | Status describes the current status of a Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1NamespaceList.md b/docs/V1NamespaceList.md new file mode 100644 index 000000000..c7c148611 --- /dev/null +++ b/docs/V1NamespaceList.md @@ -0,0 +1,11 @@ +# V1NamespaceList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1Namespace]**](V1Namespace.md) | Items is the list of Namespace objects in the list. More info: http://kubernetes.io/docs/user-guide/namespaces | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1NamespaceSpec.md b/docs/V1NamespaceSpec.md new file mode 100644 index 000000000..324502ac6 --- /dev/null +++ b/docs/V1NamespaceSpec.md @@ -0,0 +1,10 @@ +# V1NamespaceSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**finalizers** | **list[str]** | Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#finalizers | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1NamespaceStatus.md b/docs/V1NamespaceStatus.md new file mode 100644 index 000000000..72c28ba50 --- /dev/null +++ b/docs/V1NamespaceStatus.md @@ -0,0 +1,10 @@ +# V1NamespaceStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**phase** | **str** | Phase is the current lifecycle phase of the namespace. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#phases | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Node.md b/docs/V1Node.md new file mode 100644 index 000000000..6e6c2afff --- /dev/null +++ b/docs/V1Node.md @@ -0,0 +1,12 @@ +# V1Node + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1NodeSpec**](V1NodeSpec.md) | Spec defines the behavior of a node. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] +**status** | [**V1NodeStatus**](V1NodeStatus.md) | Most recently observed status of the node. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1NodeAddress.md b/docs/V1NodeAddress.md new file mode 100644 index 000000000..07728d7e5 --- /dev/null +++ b/docs/V1NodeAddress.md @@ -0,0 +1,11 @@ +# V1NodeAddress + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **str** | The node address. | +**type** | **str** | Node address type, one of Hostname, ExternalIP or InternalIP. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1NodeCondition.md b/docs/V1NodeCondition.md new file mode 100644 index 000000000..a2c30f52a --- /dev/null +++ b/docs/V1NodeCondition.md @@ -0,0 +1,15 @@ +# V1NodeCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_heartbeat_time** | [**UnversionedTime**](UnversionedTime.md) | Last time we got an update on a given condition. | [optional] +**last_transition_time** | [**UnversionedTime**](UnversionedTime.md) | Last time the condition transit from one status to another. | [optional] +**message** | **str** | Human readable message indicating details about last transition. | [optional] +**reason** | **str** | (brief) reason for the condition's last transition. | [optional] +**status** | **str** | Status of the condition, one of True, False, Unknown. | +**type** | **str** | Type of node condition. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1NodeDaemonEndpoints.md b/docs/V1NodeDaemonEndpoints.md new file mode 100644 index 000000000..5c04aaa84 --- /dev/null +++ b/docs/V1NodeDaemonEndpoints.md @@ -0,0 +1,10 @@ +# V1NodeDaemonEndpoints + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kubelet_endpoint** | [**V1DaemonEndpoint**](V1DaemonEndpoint.md) | Endpoint on which Kubelet is listening. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1NodeList.md b/docs/V1NodeList.md new file mode 100644 index 000000000..8eb63ab0a --- /dev/null +++ b/docs/V1NodeList.md @@ -0,0 +1,11 @@ +# V1NodeList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1Node]**](V1Node.md) | List of nodes | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1NodeSpec.md b/docs/V1NodeSpec.md new file mode 100644 index 000000000..adedff3fd --- /dev/null +++ b/docs/V1NodeSpec.md @@ -0,0 +1,13 @@ +# V1NodeSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**external_id** | **str** | External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated. | [optional] +**pod_cidr** | **str** | PodCIDR represents the pod IP range assigned to the node. | [optional] +**provider_id** | **str** | ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID> | [optional] +**unschedulable** | **bool** | Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#manual-node-administration\"` | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1NodeStatus.md b/docs/V1NodeStatus.md new file mode 100644 index 000000000..10f3e568a --- /dev/null +++ b/docs/V1NodeStatus.md @@ -0,0 +1,19 @@ +# V1NodeStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**addresses** | [**list[V1NodeAddress]**](V1NodeAddress.md) | List of addresses reachable to the node. Queried from cloud provider, if available. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-addresses | [optional] +**allocatable** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. | [optional] +**capacity** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Capacity represents the total resources of a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity for more details. | [optional] +**conditions** | [**list[V1NodeCondition]**](V1NodeCondition.md) | Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-condition | [optional] +**daemon_endpoints** | [**V1NodeDaemonEndpoints**](V1NodeDaemonEndpoints.md) | Endpoints of daemons running on the Node. | [optional] +**images** | [**list[V1ContainerImage]**](V1ContainerImage.md) | List of container images on this node | [optional] +**node_info** | [**V1NodeSystemInfo**](V1NodeSystemInfo.md) | Set of ids/uuids to uniquely identify the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-info | [optional] +**phase** | **str** | NodePhase is the recently observed lifecycle phase of the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-phase The field is never populated, and now is deprecated. | [optional] +**volumes_attached** | [**list[V1AttachedVolume]**](V1AttachedVolume.md) | List of volumes that are attached to the node. | [optional] +**volumes_in_use** | **list[str]** | List of attachable volumes in use (mounted) by the node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1NodeSystemInfo.md b/docs/V1NodeSystemInfo.md new file mode 100644 index 000000000..42f10260f --- /dev/null +++ b/docs/V1NodeSystemInfo.md @@ -0,0 +1,19 @@ +# V1NodeSystemInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**architecture** | **str** | The Architecture reported by the node | +**boot_id** | **str** | Boot ID reported by the node. | +**container_runtime_version** | **str** | ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). | +**kernel_version** | **str** | Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). | +**kube_proxy_version** | **str** | KubeProxy Version reported by the node. | +**kubelet_version** | **str** | Kubelet Version reported by the node. | +**machine_id** | **str** | MachineID reported by the node. For unique machine identification in the cluster this field is prefered. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html | +**operating_system** | **str** | The Operating System reported by the node | +**os_image** | **str** | OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). | +**system_uuid** | **str** | SystemUUID reported by the node. For unique machine identification MachineID is prefered. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ObjectFieldSelector.md b/docs/V1ObjectFieldSelector.md new file mode 100644 index 000000000..e63cd5825 --- /dev/null +++ b/docs/V1ObjectFieldSelector.md @@ -0,0 +1,11 @@ +# V1ObjectFieldSelector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | Version of the schema the FieldPath is written in terms of, defaults to \"v1\". | [optional] +**field_path** | **str** | Path of the field to select in the specified API version. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ObjectMeta.md b/docs/V1ObjectMeta.md new file mode 100644 index 000000000..b4d27943d --- /dev/null +++ b/docs/V1ObjectMeta.md @@ -0,0 +1,24 @@ +# V1ObjectMeta + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] +**cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. | [optional] +**creation_timestamp** | [**UnversionedTime**](UnversionedTime.md) | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. | [optional] +**deletion_timestamp** | [**UnversionedTime**](UnversionedTime.md) | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource will be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet will send a hard termination signal to the container. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. | [optional] +**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency | [optional] +**generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. | [optional] +**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels | [optional] +**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] +**namespace** | **str** | Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces | [optional] +**owner_references** | [**list[V1OwnerReference]**](V1OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. | [optional] +**resource_version** | **str** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency | [optional] +**self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. | [optional] +**uid** | **str** | UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ObjectReference.md b/docs/V1ObjectReference.md new file mode 100644 index 000000000..dfe22f931 --- /dev/null +++ b/docs/V1ObjectReference.md @@ -0,0 +1,16 @@ +# V1ObjectReference + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | API version of the referent. | [optional] +**field_path** | **str** | If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. | [optional] +**kind** | **str** | Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] +**namespace** | **str** | Namespace of the referent. More info: http://kubernetes.io/docs/user-guide/namespaces | [optional] +**resource_version** | **str** | Specific resourceVersion to which this reference is made, if any. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency | [optional] +**uid** | **str** | UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1OwnerReference.md b/docs/V1OwnerReference.md new file mode 100644 index 000000000..db9ba818c --- /dev/null +++ b/docs/V1OwnerReference.md @@ -0,0 +1,14 @@ +# V1OwnerReference + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | API version of the referent. | +**controller** | **bool** | If true, this reference points to the managing controller. | [optional] +**kind** | **str** | Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | +**name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | +**uid** | **str** | UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PersistentVolume.md b/docs/V1PersistentVolume.md new file mode 100644 index 000000000..2812b35ce --- /dev/null +++ b/docs/V1PersistentVolume.md @@ -0,0 +1,12 @@ +# V1PersistentVolume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1PersistentVolumeSpec**](V1PersistentVolumeSpec.md) | Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes | [optional] +**status** | [**V1PersistentVolumeStatus**](V1PersistentVolumeStatus.md) | Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PersistentVolumeClaim.md b/docs/V1PersistentVolumeClaim.md new file mode 100644 index 000000000..aff0da863 --- /dev/null +++ b/docs/V1PersistentVolumeClaim.md @@ -0,0 +1,12 @@ +# V1PersistentVolumeClaim + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | Spec defines the desired characteristics of a volume requested by a pod author. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims | [optional] +**status** | [**V1PersistentVolumeClaimStatus**](V1PersistentVolumeClaimStatus.md) | Status represents the current information/status of a persistent volume claim. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PersistentVolumeClaimList.md b/docs/V1PersistentVolumeClaimList.md new file mode 100644 index 000000000..711a6a01a --- /dev/null +++ b/docs/V1PersistentVolumeClaimList.md @@ -0,0 +1,11 @@ +# V1PersistentVolumeClaimList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1PersistentVolumeClaim]**](V1PersistentVolumeClaim.md) | A list of persistent volume claims. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PersistentVolumeClaimSpec.md b/docs/V1PersistentVolumeClaimSpec.md new file mode 100644 index 000000000..eae09b134 --- /dev/null +++ b/docs/V1PersistentVolumeClaimSpec.md @@ -0,0 +1,13 @@ +# V1PersistentVolumeClaimSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1 | [optional] +**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources | [optional] +**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | A label query over volumes to consider for binding. | [optional] +**volume_name** | **str** | VolumeName is the binding reference to the PersistentVolume backing this claim. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PersistentVolumeClaimStatus.md b/docs/V1PersistentVolumeClaimStatus.md new file mode 100644 index 000000000..93fa2e3cf --- /dev/null +++ b/docs/V1PersistentVolumeClaimStatus.md @@ -0,0 +1,12 @@ +# V1PersistentVolumeClaimStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_modes** | **list[str]** | AccessModes contains the actual access modes the volume backing the PVC has. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1 | [optional] +**capacity** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Represents the actual resources of the underlying volume. | [optional] +**phase** | **str** | Phase represents the current phase of PersistentVolumeClaim. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PersistentVolumeList.md b/docs/V1PersistentVolumeList.md new file mode 100644 index 000000000..8e990f4fc --- /dev/null +++ b/docs/V1PersistentVolumeList.md @@ -0,0 +1,11 @@ +# V1PersistentVolumeList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1PersistentVolume]**](V1PersistentVolume.md) | List of persistent volumes. More info: http://kubernetes.io/docs/user-guide/persistent-volumes | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PersistentVolumeSpec.md b/docs/V1PersistentVolumeSpec.md new file mode 100644 index 000000000..c2380ef1b --- /dev/null +++ b/docs/V1PersistentVolumeSpec.md @@ -0,0 +1,13 @@ +# V1PersistentVolumeSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_modes** | **list[str]** | AccessModes contains all ways the volume can be mounted. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes | [optional] +**capacity** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | A description of the persistent volume's resources and capacity. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity | [optional] +**claim_ref** | [**V1ObjectReference**](V1ObjectReference.md) | ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#binding | [optional] +**persistent_volume_reclaim_policy** | **str** | What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recycling must be supported by the volume plugin underlying this persistent volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#recycling-policy | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PersistentVolumeStatus.md b/docs/V1PersistentVolumeStatus.md new file mode 100644 index 000000000..be527d13e --- /dev/null +++ b/docs/V1PersistentVolumeStatus.md @@ -0,0 +1,12 @@ +# V1PersistentVolumeStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | A human-readable message indicating details about why the volume is in this state. | [optional] +**phase** | **str** | Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#phase | [optional] +**reason** | **str** | Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Pod.md b/docs/V1Pod.md new file mode 100644 index 000000000..8083e1c56 --- /dev/null +++ b/docs/V1Pod.md @@ -0,0 +1,12 @@ +# V1Pod + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1PodSpec**](V1PodSpec.md) | Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] +**status** | [**V1PodStatus**](V1PodStatus.md) | Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PodCondition.md b/docs/V1PodCondition.md new file mode 100644 index 000000000..45d03e3ef --- /dev/null +++ b/docs/V1PodCondition.md @@ -0,0 +1,15 @@ +# V1PodCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_probe_time** | [**UnversionedTime**](UnversionedTime.md) | Last time we probed the condition. | [optional] +**last_transition_time** | [**UnversionedTime**](UnversionedTime.md) | Last time the condition transitioned from one status to another. | [optional] +**message** | **str** | Human-readable message indicating details about last transition. | [optional] +**reason** | **str** | Unique, one-word, CamelCase reason for the condition's last transition. | [optional] +**status** | **str** | Status is the status of the condition. Can be True, False, Unknown. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions | +**type** | **str** | Type is the type of the condition. Currently only Ready. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PodList.md b/docs/V1PodList.md new file mode 100644 index 000000000..ab3f43860 --- /dev/null +++ b/docs/V1PodList.md @@ -0,0 +1,11 @@ +# V1PodList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1Pod]**](V1Pod.md) | List of pods. More info: http://kubernetes.io/docs/user-guide/pods | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PodSecurityContext.md b/docs/V1PodSecurityContext.md new file mode 100644 index 000000000..d2caf984f --- /dev/null +++ b/docs/V1PodSecurityContext.md @@ -0,0 +1,14 @@ +# V1PodSecurityContext + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fs_group** | **int** | A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. | [optional] +**run_as_non_root** | **bool** | Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] +**run_as_user** | **int** | The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. | [optional] +**se_linux_options** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. | [optional] +**supplemental_groups** | **list[int]** | A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PodSpec.md b/docs/V1PodSpec.md new file mode 100644 index 000000000..1cd52d629 --- /dev/null +++ b/docs/V1PodSpec.md @@ -0,0 +1,26 @@ +# V1PodSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active_deadline_seconds** | **int** | Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. | [optional] +**containers** | [**list[V1Container]**](V1Container.md) | List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers | +**dns_policy** | **str** | Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". | [optional] +**host_ipc** | **bool** | Use the host's ipc namespace. Optional: Default to false. | [optional] +**host_network** | **bool** | Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. | [optional] +**host_pid** | **bool** | Use the host's pid namespace. Optional: Default to false. | [optional] +**hostname** | **str** | Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. | [optional] +**image_pull_secrets** | [**list[V1LocalObjectReference]**](V1LocalObjectReference.md) | ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod | [optional] +**node_name** | **str** | NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. | [optional] +**node_selector** | **dict(str, str)** | NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://kubernetes.io/docs/user-guide/node-selection/README | [optional] +**restart_policy** | **str** | Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://kubernetes.io/docs/user-guide/pod-states#restartpolicy | [optional] +**security_context** | [**V1PodSecurityContext**](V1PodSecurityContext.md) | SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. | [optional] +**service_account** | **str** | DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. | [optional] +**service_account_name** | **str** | ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md | [optional] +**subdomain** | **str** | If specified, the fully qualified Pod hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the pod will not have a domainname at all. | [optional] +**termination_grace_period_seconds** | **int** | Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. | [optional] +**volumes** | [**list[V1Volume]**](V1Volume.md) | List of volumes that can be mounted by containers belonging to the pod. More info: http://kubernetes.io/docs/user-guide/volumes | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PodStatus.md b/docs/V1PodStatus.md new file mode 100644 index 000000000..161cf18dc --- /dev/null +++ b/docs/V1PodStatus.md @@ -0,0 +1,17 @@ +# V1PodStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list[V1PodCondition]**](V1PodCondition.md) | Current service state of pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions | [optional] +**container_statuses** | [**list[V1ContainerStatus]**](V1ContainerStatus.md) | The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses | [optional] +**host_ip** | **str** | IP address of the host to which the pod is assigned. Empty if not yet scheduled. | [optional] +**message** | **str** | A human readable message indicating details about why the pod is in this condition. | [optional] +**phase** | **str** | Current condition of the pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-phase | [optional] +**pod_ip** | **str** | IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. | [optional] +**reason** | **str** | A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk' | [optional] +**start_time** | [**UnversionedTime**](UnversionedTime.md) | RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PodTemplate.md b/docs/V1PodTemplate.md new file mode 100644 index 000000000..550b0276a --- /dev/null +++ b/docs/V1PodTemplate.md @@ -0,0 +1,11 @@ +# V1PodTemplate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template defines the pods that will be created from this pod template. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PodTemplateList.md b/docs/V1PodTemplateList.md new file mode 100644 index 000000000..1b28f3b04 --- /dev/null +++ b/docs/V1PodTemplateList.md @@ -0,0 +1,11 @@ +# V1PodTemplateList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1PodTemplate]**](V1PodTemplate.md) | List of pod templates | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PodTemplateSpec.md b/docs/V1PodTemplateSpec.md new file mode 100644 index 000000000..1c03a90d5 --- /dev/null +++ b/docs/V1PodTemplateSpec.md @@ -0,0 +1,11 @@ +# V1PodTemplateSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1PodSpec**](V1PodSpec.md) | Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Preconditions.md b/docs/V1Preconditions.md new file mode 100644 index 000000000..256f3fca3 --- /dev/null +++ b/docs/V1Preconditions.md @@ -0,0 +1,10 @@ +# V1Preconditions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**uid** | **str** | Specifies the target UID. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Probe.md b/docs/V1Probe.md new file mode 100644 index 000000000..cdd40575a --- /dev/null +++ b/docs/V1Probe.md @@ -0,0 +1,14 @@ +# V1Probe + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**failure_threshold** | **int** | Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. | [optional] +**initial_delay_seconds** | **int** | Number of seconds after the container has started before liveness probes are initiated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes | [optional] +**period_seconds** | **int** | How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. | [optional] +**success_threshold** | **int** | Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. | [optional] +**timeout_seconds** | **int** | Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ReplicationController.md b/docs/V1ReplicationController.md new file mode 100644 index 000000000..2c13ad1e5 --- /dev/null +++ b/docs/V1ReplicationController.md @@ -0,0 +1,12 @@ +# V1ReplicationController + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1ReplicationControllerSpec**](V1ReplicationControllerSpec.md) | Spec defines the specification of the desired behavior of the replication controller. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] +**status** | [**V1ReplicationControllerStatus**](V1ReplicationControllerStatus.md) | Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ReplicationControllerCondition.md b/docs/V1ReplicationControllerCondition.md new file mode 100644 index 000000000..8dcfd1d3b --- /dev/null +++ b/docs/V1ReplicationControllerCondition.md @@ -0,0 +1,14 @@ +# V1ReplicationControllerCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_transition_time** | [**UnversionedTime**](UnversionedTime.md) | The last time the condition transitioned from one status to another. | [optional] +**message** | **str** | A human readable message indicating details about the transition. | [optional] +**reason** | **str** | The reason for the condition's last transition. | [optional] +**status** | **str** | Status of the condition, one of True, False, Unknown. | +**type** | **str** | Type of replication controller condition. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ReplicationControllerList.md b/docs/V1ReplicationControllerList.md new file mode 100644 index 000000000..49caf1956 --- /dev/null +++ b/docs/V1ReplicationControllerList.md @@ -0,0 +1,11 @@ +# V1ReplicationControllerList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1ReplicationController]**](V1ReplicationController.md) | List of replication controllers. More info: http://kubernetes.io/docs/user-guide/replication-controller | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ReplicationControllerSpec.md b/docs/V1ReplicationControllerSpec.md new file mode 100644 index 000000000..82818bc88 --- /dev/null +++ b/docs/V1ReplicationControllerSpec.md @@ -0,0 +1,13 @@ +# V1ReplicationControllerSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_ready_seconds** | **int** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] +**replicas** | **int** | Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller | [optional] +**selector** | **dict(str, str)** | Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ReplicationControllerStatus.md b/docs/V1ReplicationControllerStatus.md new file mode 100644 index 000000000..9dadae714 --- /dev/null +++ b/docs/V1ReplicationControllerStatus.md @@ -0,0 +1,15 @@ +# V1ReplicationControllerStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_replicas** | **int** | The number of available replicas (ready for at least minReadySeconds) for this replication controller. | [optional] +**conditions** | [**list[V1ReplicationControllerCondition]**](V1ReplicationControllerCondition.md) | Represents the latest available observations of a replication controller's current state. | [optional] +**fully_labeled_replicas** | **int** | The number of pods that have labels matching the labels of the pod template of the replication controller. | [optional] +**observed_generation** | **int** | ObservedGeneration reflects the generation of the most recently observed replication controller. | [optional] +**ready_replicas** | **int** | The number of ready replicas for this replication controller. | [optional] +**replicas** | **int** | Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ResourceFieldSelector.md b/docs/V1ResourceFieldSelector.md new file mode 100644 index 000000000..e3d119112 --- /dev/null +++ b/docs/V1ResourceFieldSelector.md @@ -0,0 +1,12 @@ +# V1ResourceFieldSelector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container_name** | **str** | Container name: required for volumes, optional for env vars | [optional] +**divisor** | [**ResourceQuantity**](ResourceQuantity.md) | Specifies the output format of the exposed resources, defaults to \"1\" | [optional] +**resource** | **str** | Required: resource to select | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ResourceQuota.md b/docs/V1ResourceQuota.md new file mode 100644 index 000000000..9d9c073ac --- /dev/null +++ b/docs/V1ResourceQuota.md @@ -0,0 +1,12 @@ +# V1ResourceQuota + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1ResourceQuotaSpec**](V1ResourceQuotaSpec.md) | Spec defines the desired quota. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] +**status** | [**V1ResourceQuotaStatus**](V1ResourceQuotaStatus.md) | Status defines the actual enforced quota and its current usage. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ResourceQuotaList.md b/docs/V1ResourceQuotaList.md new file mode 100644 index 000000000..4f3654509 --- /dev/null +++ b/docs/V1ResourceQuotaList.md @@ -0,0 +1,11 @@ +# V1ResourceQuotaList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1ResourceQuota]**](V1ResourceQuota.md) | Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ResourceQuotaSpec.md b/docs/V1ResourceQuotaSpec.md new file mode 100644 index 000000000..5e0575bba --- /dev/null +++ b/docs/V1ResourceQuotaSpec.md @@ -0,0 +1,11 @@ +# V1ResourceQuotaSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hard** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Hard is the set of desired hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota | [optional] +**scopes** | **list[str]** | A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ResourceQuotaStatus.md b/docs/V1ResourceQuotaStatus.md new file mode 100644 index 000000000..6461b118e --- /dev/null +++ b/docs/V1ResourceQuotaStatus.md @@ -0,0 +1,11 @@ +# V1ResourceQuotaStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hard** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota | [optional] +**used** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Used is the current observed total usage of the resource in the namespace. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ResourceRequirements.md b/docs/V1ResourceRequirements.md new file mode 100644 index 000000000..abbc258ec --- /dev/null +++ b/docs/V1ResourceRequirements.md @@ -0,0 +1,11 @@ +# V1ResourceRequirements + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limits** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/ | [optional] +**requests** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://kubernetes.io/docs/user-guide/compute-resources/ | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SELinuxOptions.md b/docs/V1SELinuxOptions.md new file mode 100644 index 000000000..5e1de079f --- /dev/null +++ b/docs/V1SELinuxOptions.md @@ -0,0 +1,13 @@ +# V1SELinuxOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**level** | **str** | Level is SELinux level label that applies to the container. | [optional] +**role** | **str** | Role is a SELinux role label that applies to the container. | [optional] +**type** | **str** | Type is a SELinux type label that applies to the container. | [optional] +**user** | **str** | User is a SELinux user label that applies to the container. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Scale.md b/docs/V1Scale.md new file mode 100644 index 000000000..bd1a101c1 --- /dev/null +++ b/docs/V1Scale.md @@ -0,0 +1,12 @@ +# V1Scale + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. | [optional] +**spec** | [**V1ScaleSpec**](V1ScaleSpec.md) | defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. | [optional] +**status** | [**V1ScaleStatus**](V1ScaleStatus.md) | current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ScaleSpec.md b/docs/V1ScaleSpec.md new file mode 100644 index 000000000..84005741f --- /dev/null +++ b/docs/V1ScaleSpec.md @@ -0,0 +1,10 @@ +# V1ScaleSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**replicas** | **int** | desired number of instances for the scaled object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ScaleStatus.md b/docs/V1ScaleStatus.md new file mode 100644 index 000000000..a91c0bef7 --- /dev/null +++ b/docs/V1ScaleStatus.md @@ -0,0 +1,11 @@ +# V1ScaleStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**replicas** | **int** | actual number of observed instances of the scaled object. | +**selector** | **str** | label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Secret.md b/docs/V1Secret.md new file mode 100644 index 000000000..6d31c7ff1 --- /dev/null +++ b/docs/V1Secret.md @@ -0,0 +1,13 @@ +# V1Secret + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **dict(str, list[int])** | Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**string_data** | **dict(str, str)** | stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. | [optional] +**type** | **str** | Used to facilitate programmatic handling of secret data. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SecretKeySelector.md b/docs/V1SecretKeySelector.md new file mode 100644 index 000000000..ca66e4cd9 --- /dev/null +++ b/docs/V1SecretKeySelector.md @@ -0,0 +1,10 @@ +# V1SecretKeySelector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **str** | The key of the secret to select from. Must be a valid secret key. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SecretList.md b/docs/V1SecretList.md new file mode 100644 index 000000000..f77d94a1a --- /dev/null +++ b/docs/V1SecretList.md @@ -0,0 +1,11 @@ +# V1SecretList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1Secret]**](V1Secret.md) | Items is a list of secret objects. More info: http://kubernetes.io/docs/user-guide/secrets | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SecurityContext.md b/docs/V1SecurityContext.md new file mode 100644 index 000000000..d475c06bb --- /dev/null +++ b/docs/V1SecurityContext.md @@ -0,0 +1,15 @@ +# V1SecurityContext + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capabilities** | [**V1Capabilities**](V1Capabilities.md) | The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. | [optional] +**privileged** | **bool** | Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. | [optional] +**read_only_root_filesystem** | **bool** | Whether this container has a read-only root filesystem. Default is false. | [optional] +**run_as_non_root** | **bool** | Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] +**run_as_user** | **int** | The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] +**se_linux_options** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Service.md b/docs/V1Service.md new file mode 100644 index 000000000..bf48eaee7 --- /dev/null +++ b/docs/V1Service.md @@ -0,0 +1,12 @@ +# V1Service + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1ServiceSpec**](V1ServiceSpec.md) | Spec defines the behavior of a service. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] +**status** | [**V1ServiceStatus**](V1ServiceStatus.md) | Most recently observed status of the service. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ServiceAccount.md b/docs/V1ServiceAccount.md new file mode 100644 index 000000000..b915ec010 --- /dev/null +++ b/docs/V1ServiceAccount.md @@ -0,0 +1,12 @@ +# V1ServiceAccount + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**image_pull_secrets** | [**list[V1LocalObjectReference]**](V1LocalObjectReference.md) | ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: http://kubernetes.io/docs/user-guide/secrets#manually-specifying-an-imagepullsecret | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**secrets** | [**list[V1ObjectReference]**](V1ObjectReference.md) | Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: http://kubernetes.io/docs/user-guide/secrets | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ServiceAccountList.md b/docs/V1ServiceAccountList.md new file mode 100644 index 000000000..c287455e5 --- /dev/null +++ b/docs/V1ServiceAccountList.md @@ -0,0 +1,11 @@ +# V1ServiceAccountList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1ServiceAccount]**](V1ServiceAccount.md) | List of ServiceAccounts. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md#service-accounts | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ServiceList.md b/docs/V1ServiceList.md new file mode 100644 index 000000000..c01d21185 --- /dev/null +++ b/docs/V1ServiceList.md @@ -0,0 +1,11 @@ +# V1ServiceList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1Service]**](V1Service.md) | List of services | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ServicePort.md b/docs/V1ServicePort.md new file mode 100644 index 000000000..e29f6c547 --- /dev/null +++ b/docs/V1ServicePort.md @@ -0,0 +1,14 @@ +# V1ServicePort + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. | [optional] +**node_port** | **int** | The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: http://kubernetes.io/docs/user-guide/services#type--nodeport | [optional] +**port** | **int** | The port that will be exposed by this service. | +**protocol** | **str** | The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP. | [optional] +**target_port** | [**IntstrIntOrString**](IntstrIntOrString.md) | Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://kubernetes.io/docs/user-guide/services#defining-a-service | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ServiceSpec.md b/docs/V1ServiceSpec.md new file mode 100644 index 000000000..750dd188b --- /dev/null +++ b/docs/V1ServiceSpec.md @@ -0,0 +1,19 @@ +# V1ServiceSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cluster_ip** | **str** | clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies | [optional] +**deprecated_public_i_ps** | **list[str]** | deprecatedPublicIPs is deprecated and replaced by the externalIPs field with almost the exact same semantics. This field is retained in the v1 API for compatibility until at least 8/20/2016. It will be removed from any new API revisions. If both deprecatedPublicIPs *and* externalIPs are set, deprecatedPublicIPs is used. | [optional] +**external_i_ps** | **list[str]** | externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. A previous form of this functionality exists as the deprecatedPublicIPs field. When using this field, callers should also clear the deprecatedPublicIPs field. | [optional] +**external_name** | **str** | externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid DNS name and requires Type to be ExternalName. | [optional] +**load_balancer_ip** | **str** | Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. | [optional] +**load_balancer_source_ranges** | **list[str]** | If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: http://kubernetes.io/docs/user-guide/services-firewalls | [optional] +**ports** | [**list[V1ServicePort]**](V1ServicePort.md) | The list of ports that are exposed by this service. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies | +**selector** | **dict(str, str)** | Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://kubernetes.io/docs/user-guide/services#overview | [optional] +**session_affinity** | **str** | Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies | [optional] +**type** | **str** | type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: http://kubernetes.io/docs/user-guide/services#overview | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ServiceStatus.md b/docs/V1ServiceStatus.md new file mode 100644 index 000000000..7db423764 --- /dev/null +++ b/docs/V1ServiceStatus.md @@ -0,0 +1,10 @@ +# V1ServiceStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**load_balancer** | [**V1LoadBalancerStatus**](V1LoadBalancerStatus.md) | LoadBalancer contains the current status of the load-balancer, if one is present. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1TCPSocketAction.md b/docs/V1TCPSocketAction.md new file mode 100644 index 000000000..3067067f9 --- /dev/null +++ b/docs/V1TCPSocketAction.md @@ -0,0 +1,10 @@ +# V1TCPSocketAction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**port** | [**IntstrIntOrString**](IntstrIntOrString.md) | Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Volume.md b/docs/V1Volume.md new file mode 100644 index 000000000..6ada6a5d9 --- /dev/null +++ b/docs/V1Volume.md @@ -0,0 +1,10 @@ +# V1Volume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://kubernetes.io/docs/user-guide/identifiers#names | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VolumeMount.md b/docs/V1VolumeMount.md new file mode 100644 index 000000000..2c045d931 --- /dev/null +++ b/docs/V1VolumeMount.md @@ -0,0 +1,13 @@ +# V1VolumeMount + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mount_path** | **str** | Path within the container at which the volume should be mounted. Must not contain ':'. | +**name** | **str** | This must match the Name of a Volume. | +**read_only** | **bool** | Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. | [optional] +**sub_path** | **str** | Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1CertificateSigningRequest.md b/docs/V1alpha1CertificateSigningRequest.md new file mode 100644 index 000000000..859cd7d02 --- /dev/null +++ b/docs/V1alpha1CertificateSigningRequest.md @@ -0,0 +1,12 @@ +# V1alpha1CertificateSigningRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1CertificateSigningRequestSpec**](V1alpha1CertificateSigningRequestSpec.md) | The certificate request itself and any additional information. | [optional] +**status** | [**V1alpha1CertificateSigningRequestStatus**](V1alpha1CertificateSigningRequestStatus.md) | Derived information about the request. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1CertificateSigningRequestCondition.md b/docs/V1alpha1CertificateSigningRequestCondition.md new file mode 100644 index 000000000..f61c98833 --- /dev/null +++ b/docs/V1alpha1CertificateSigningRequestCondition.md @@ -0,0 +1,13 @@ +# V1alpha1CertificateSigningRequestCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_update_time** | [**UnversionedTime**](UnversionedTime.md) | timestamp for the last update to this condition | [optional] +**message** | **str** | human readable message with details about the request state | [optional] +**reason** | **str** | brief reason for the request state | [optional] +**type** | **str** | request approval state, currently Approved or Denied. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1CertificateSigningRequestList.md b/docs/V1alpha1CertificateSigningRequestList.md new file mode 100644 index 000000000..63c44b694 --- /dev/null +++ b/docs/V1alpha1CertificateSigningRequestList.md @@ -0,0 +1,11 @@ +# V1alpha1CertificateSigningRequestList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1alpha1CertificateSigningRequest]**](V1alpha1CertificateSigningRequest.md) | | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1CertificateSigningRequestSpec.md b/docs/V1alpha1CertificateSigningRequestSpec.md new file mode 100644 index 000000000..17e56a4e5 --- /dev/null +++ b/docs/V1alpha1CertificateSigningRequestSpec.md @@ -0,0 +1,13 @@ +# V1alpha1CertificateSigningRequestSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groups** | **list[str]** | | [optional] +**request** | **str** | Base64-encoded PKCS#10 CSR data | +**uid** | **str** | | [optional] +**username** | **str** | Information about the requesting user (if relevant) See user.Info interface for details | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1CertificateSigningRequestStatus.md b/docs/V1alpha1CertificateSigningRequestStatus.md new file mode 100644 index 000000000..4067df575 --- /dev/null +++ b/docs/V1alpha1CertificateSigningRequestStatus.md @@ -0,0 +1,11 @@ +# V1alpha1CertificateSigningRequestStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**certificate** | **str** | If request was approved, the controller will place the issued certificate here. | [optional] +**conditions** | [**list[V1alpha1CertificateSigningRequestCondition]**](V1alpha1CertificateSigningRequestCondition.md) | Conditions applied to the request, such as approval or denial. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1ClusterRole.md b/docs/V1alpha1ClusterRole.md new file mode 100644 index 000000000..5d2f19ec1 --- /dev/null +++ b/docs/V1alpha1ClusterRole.md @@ -0,0 +1,11 @@ +# V1alpha1ClusterRole + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**rules** | [**list[V1alpha1PolicyRule]**](V1alpha1PolicyRule.md) | Rules holds all the PolicyRules for this ClusterRole | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1ClusterRoleBinding.md b/docs/V1alpha1ClusterRoleBinding.md new file mode 100644 index 000000000..1c7b513e8 --- /dev/null +++ b/docs/V1alpha1ClusterRoleBinding.md @@ -0,0 +1,12 @@ +# V1alpha1ClusterRoleBinding + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**role_ref** | [**V1alpha1RoleRef**](V1alpha1RoleRef.md) | RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | +**subjects** | [**list[V1alpha1Subject]**](V1alpha1Subject.md) | Subjects holds references to the objects the role applies to. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1ClusterRoleBindingList.md b/docs/V1alpha1ClusterRoleBindingList.md new file mode 100644 index 000000000..bc03ffa15 --- /dev/null +++ b/docs/V1alpha1ClusterRoleBindingList.md @@ -0,0 +1,11 @@ +# V1alpha1ClusterRoleBindingList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1alpha1ClusterRoleBinding]**](V1alpha1ClusterRoleBinding.md) | Items is a list of ClusterRoleBindings | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1ClusterRoleList.md b/docs/V1alpha1ClusterRoleList.md new file mode 100644 index 000000000..55caf8c6f --- /dev/null +++ b/docs/V1alpha1ClusterRoleList.md @@ -0,0 +1,11 @@ +# V1alpha1ClusterRoleList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1alpha1ClusterRole]**](V1alpha1ClusterRole.md) | Items is a list of ClusterRoles | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1Eviction.md b/docs/V1alpha1Eviction.md new file mode 100644 index 000000000..2baca0105 --- /dev/null +++ b/docs/V1alpha1Eviction.md @@ -0,0 +1,11 @@ +# V1alpha1Eviction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md) | DeleteOptions may be provided | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | ObjectMeta describes the pod that is being evicted. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1PodDisruptionBudget.md b/docs/V1alpha1PodDisruptionBudget.md new file mode 100644 index 000000000..164b6f831 --- /dev/null +++ b/docs/V1alpha1PodDisruptionBudget.md @@ -0,0 +1,12 @@ +# V1alpha1PodDisruptionBudget + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1PodDisruptionBudgetSpec**](V1alpha1PodDisruptionBudgetSpec.md) | Specification of the desired behavior of the PodDisruptionBudget. | [optional] +**status** | [**V1alpha1PodDisruptionBudgetStatus**](V1alpha1PodDisruptionBudgetStatus.md) | Most recently observed status of the PodDisruptionBudget. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1PodDisruptionBudgetList.md b/docs/V1alpha1PodDisruptionBudgetList.md new file mode 100644 index 000000000..82d7e361d --- /dev/null +++ b/docs/V1alpha1PodDisruptionBudgetList.md @@ -0,0 +1,11 @@ +# V1alpha1PodDisruptionBudgetList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1alpha1PodDisruptionBudget]**](V1alpha1PodDisruptionBudget.md) | | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1PodDisruptionBudgetSpec.md b/docs/V1alpha1PodDisruptionBudgetSpec.md new file mode 100644 index 000000000..41fed90c1 --- /dev/null +++ b/docs/V1alpha1PodDisruptionBudgetSpec.md @@ -0,0 +1,11 @@ +# V1alpha1PodDisruptionBudgetSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_available** | [**IntstrIntOrString**](IntstrIntOrString.md) | An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". | [optional] +**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Label query over pods whose evictions are managed by the disruption budget. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1PodDisruptionBudgetStatus.md b/docs/V1alpha1PodDisruptionBudgetStatus.md new file mode 100644 index 000000000..2549b9841 --- /dev/null +++ b/docs/V1alpha1PodDisruptionBudgetStatus.md @@ -0,0 +1,13 @@ +# V1alpha1PodDisruptionBudgetStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current_healthy** | **int** | current number of healthy pods | +**desired_healthy** | **int** | minimum desired number of healthy pods | +**disruption_allowed** | **bool** | Whether or not a disruption is currently allowed. | +**expected_pods** | **int** | total number of pods counted by this disruption budget | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1PolicyRule.md b/docs/V1alpha1PolicyRule.md new file mode 100644 index 000000000..90071a660 --- /dev/null +++ b/docs/V1alpha1PolicyRule.md @@ -0,0 +1,15 @@ +# V1alpha1PolicyRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_groups** | **list[str]** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. | [optional] +**attribute_restrictions** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | AttributeRestrictions will vary depending on what the Authorizer/AuthorizationAttributeBuilder pair supports. If the Authorizer does not recognize how to handle the AttributeRestrictions, the Authorizer should report an error. | [optional] +**non_resource_ur_ls** | **list[str]** | NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. | [optional] +**resource_names** | **list[str]** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] +**resources** | **list[str]** | Resources is a list of resources this rule applies to. ResourceAll represents all resources. | [optional] +**verbs** | **list[str]** | Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1Role.md b/docs/V1alpha1Role.md new file mode 100644 index 000000000..eb1948ba0 --- /dev/null +++ b/docs/V1alpha1Role.md @@ -0,0 +1,11 @@ +# V1alpha1Role + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**rules** | [**list[V1alpha1PolicyRule]**](V1alpha1PolicyRule.md) | Rules holds all the PolicyRules for this Role | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1RoleBinding.md b/docs/V1alpha1RoleBinding.md new file mode 100644 index 000000000..d66e61d9c --- /dev/null +++ b/docs/V1alpha1RoleBinding.md @@ -0,0 +1,12 @@ +# V1alpha1RoleBinding + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**role_ref** | [**V1alpha1RoleRef**](V1alpha1RoleRef.md) | RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | +**subjects** | [**list[V1alpha1Subject]**](V1alpha1Subject.md) | Subjects holds references to the objects the role applies to. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1RoleBindingList.md b/docs/V1alpha1RoleBindingList.md new file mode 100644 index 000000000..c74463f05 --- /dev/null +++ b/docs/V1alpha1RoleBindingList.md @@ -0,0 +1,11 @@ +# V1alpha1RoleBindingList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1alpha1RoleBinding]**](V1alpha1RoleBinding.md) | Items is a list of RoleBindings | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1RoleList.md b/docs/V1alpha1RoleList.md new file mode 100644 index 000000000..a1ffbacbf --- /dev/null +++ b/docs/V1alpha1RoleList.md @@ -0,0 +1,11 @@ +# V1alpha1RoleList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1alpha1Role]**](V1alpha1Role.md) | Items is a list of Roles | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1RoleRef.md b/docs/V1alpha1RoleRef.md new file mode 100644 index 000000000..b72606f7b --- /dev/null +++ b/docs/V1alpha1RoleRef.md @@ -0,0 +1,12 @@ +# V1alpha1RoleRef + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_group** | **str** | APIGroup is the group for the resource being referenced | +**kind** | **str** | Kind is the type of resource being referenced | +**name** | **str** | Name is the name of resource being referenced | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1StatefulSet.md b/docs/V1alpha1StatefulSet.md new file mode 100644 index 000000000..b8b0e881e --- /dev/null +++ b/docs/V1alpha1StatefulSet.md @@ -0,0 +1,12 @@ +# V1alpha1StatefulSet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1StatefulSetSpec**](V1alpha1StatefulSetSpec.md) | Spec defines the desired identities of pods in this set. | [optional] +**status** | [**V1alpha1StatefulSetStatus**](V1alpha1StatefulSetStatus.md) | Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1StatefulSetList.md b/docs/V1alpha1StatefulSetList.md new file mode 100644 index 000000000..496935d7a --- /dev/null +++ b/docs/V1alpha1StatefulSetList.md @@ -0,0 +1,11 @@ +# V1alpha1StatefulSetList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1alpha1StatefulSet]**](V1alpha1StatefulSet.md) | | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1StatefulSetSpec.md b/docs/V1alpha1StatefulSetSpec.md new file mode 100644 index 000000000..2aa718f24 --- /dev/null +++ b/docs/V1alpha1StatefulSetSpec.md @@ -0,0 +1,14 @@ +# V1alpha1StatefulSetSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**replicas** | **int** | Replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. | [optional] +**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] +**service_name** | **str** | ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. | +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. | +**volume_claim_templates** | [**list[V1PersistentVolumeClaim]**](V1PersistentVolumeClaim.md) | VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1StatefulSetStatus.md b/docs/V1alpha1StatefulSetStatus.md new file mode 100644 index 000000000..fe040a3c8 --- /dev/null +++ b/docs/V1alpha1StatefulSetStatus.md @@ -0,0 +1,11 @@ +# V1alpha1StatefulSetStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**observed_generation** | **int** | most recent generation observed by this autoscaler. | [optional] +**replicas** | **int** | Replicas is the number of actual replicas. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1Subject.md b/docs/V1alpha1Subject.md new file mode 100644 index 000000000..97adfa092 --- /dev/null +++ b/docs/V1alpha1Subject.md @@ -0,0 +1,13 @@ +# V1alpha1Subject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion holds the API group and version of the referenced object. | [optional] +**kind** | **str** | Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. | +**name** | **str** | Name of the object being referenced. | +**namespace** | **str** | Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1APIVersion.md b/docs/V1beta1APIVersion.md new file mode 100644 index 000000000..f7f9431f7 --- /dev/null +++ b/docs/V1beta1APIVersion.md @@ -0,0 +1,10 @@ +# V1beta1APIVersion + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of this version (e.g. 'v1'). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CPUTargetUtilization.md b/docs/V1beta1CPUTargetUtilization.md new file mode 100644 index 000000000..d5fb486e8 --- /dev/null +++ b/docs/V1beta1CPUTargetUtilization.md @@ -0,0 +1,10 @@ +# V1beta1CPUTargetUtilization + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**target_percentage** | **int** | fraction of the requested CPU that should be utilized/used, e.g. 70 means that 70% of the requested CPU should be in use. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1DaemonSet.md b/docs/V1beta1DaemonSet.md new file mode 100644 index 000000000..58de1ef13 --- /dev/null +++ b/docs/V1beta1DaemonSet.md @@ -0,0 +1,12 @@ +# V1beta1DaemonSet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1beta1DaemonSetSpec**](V1beta1DaemonSetSpec.md) | Spec defines the desired behavior of this daemon set. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] +**status** | [**V1beta1DaemonSetStatus**](V1beta1DaemonSetStatus.md) | Status is the current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1DaemonSetList.md b/docs/V1beta1DaemonSetList.md new file mode 100644 index 000000000..2060d373e --- /dev/null +++ b/docs/V1beta1DaemonSetList.md @@ -0,0 +1,11 @@ +# V1beta1DaemonSetList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1beta1DaemonSet]**](V1beta1DaemonSet.md) | Items is a list of daemon sets. | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1DaemonSetSpec.md b/docs/V1beta1DaemonSetSpec.md new file mode 100644 index 000000000..bef993153 --- /dev/null +++ b/docs/V1beta1DaemonSetSpec.md @@ -0,0 +1,11 @@ +# V1beta1DaemonSetSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Selector is a label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1DaemonSetStatus.md b/docs/V1beta1DaemonSetStatus.md new file mode 100644 index 000000000..2691652a3 --- /dev/null +++ b/docs/V1beta1DaemonSetStatus.md @@ -0,0 +1,13 @@ +# V1beta1DaemonSetStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current_number_scheduled** | **int** | CurrentNumberScheduled is the number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md | +**desired_number_scheduled** | **int** | DesiredNumberScheduled is the total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md | +**number_misscheduled** | **int** | NumberMisscheduled is the number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md | +**number_ready** | **int** | NumberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Deployment.md b/docs/V1beta1Deployment.md new file mode 100644 index 000000000..8a9187321 --- /dev/null +++ b/docs/V1beta1Deployment.md @@ -0,0 +1,12 @@ +# V1beta1Deployment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. | [optional] +**spec** | [**V1beta1DeploymentSpec**](V1beta1DeploymentSpec.md) | Specification of the desired behavior of the Deployment. | [optional] +**status** | [**V1beta1DeploymentStatus**](V1beta1DeploymentStatus.md) | Most recently observed status of the Deployment. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1DeploymentCondition.md b/docs/V1beta1DeploymentCondition.md new file mode 100644 index 000000000..57f577f97 --- /dev/null +++ b/docs/V1beta1DeploymentCondition.md @@ -0,0 +1,15 @@ +# V1beta1DeploymentCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_transition_time** | [**UnversionedTime**](UnversionedTime.md) | Last time the condition transitioned from one status to another. | +**last_update_time** | [**UnversionedTime**](UnversionedTime.md) | The last time this condition was updated. | +**message** | **str** | A human readable message indicating details about the transition. | +**reason** | **str** | The reason for the condition's last transition. | +**status** | **str** | Status of the condition, one of True, False, Unknown. | +**type** | **str** | Type of deployment condition. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1DeploymentList.md b/docs/V1beta1DeploymentList.md new file mode 100644 index 000000000..212b76004 --- /dev/null +++ b/docs/V1beta1DeploymentList.md @@ -0,0 +1,11 @@ +# V1beta1DeploymentList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1beta1Deployment]**](V1beta1Deployment.md) | Items is the list of Deployments. | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1DeploymentRollback.md b/docs/V1beta1DeploymentRollback.md new file mode 100644 index 000000000..1b007bda8 --- /dev/null +++ b/docs/V1beta1DeploymentRollback.md @@ -0,0 +1,12 @@ +# V1beta1DeploymentRollback + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Required: This must match the Name of a deployment. | +**rollback_to** | [**V1beta1RollbackConfig**](V1beta1RollbackConfig.md) | The config of this deployment rollback. | +**updated_annotations** | **dict(str, str)** | The annotations to be updated to a deployment | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1DeploymentSpec.md b/docs/V1beta1DeploymentSpec.md new file mode 100644 index 000000000..f79d184ef --- /dev/null +++ b/docs/V1beta1DeploymentSpec.md @@ -0,0 +1,18 @@ +# V1beta1DeploymentSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_ready_seconds** | **int** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] +**paused** | **bool** | Indicates that the deployment is paused and will not be processed by the deployment controller. | [optional] +**progress_deadline_seconds** | **int** | The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default. | +**replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] +**revision_history_limit** | **int** | The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. | [optional] +**rollback_to** | [**V1beta1RollbackConfig**](V1beta1RollbackConfig.md) | The config this deployment is rolling back to. Will be cleared after rollback is done. | [optional] +**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. | [optional] +**strategy** | [**V1beta1DeploymentStrategy**](V1beta1DeploymentStrategy.md) | The deployment strategy to use to replace existing pods with new ones. | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template describes the pods that will be created. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1DeploymentStatus.md b/docs/V1beta1DeploymentStatus.md new file mode 100644 index 000000000..1f3e52dda --- /dev/null +++ b/docs/V1beta1DeploymentStatus.md @@ -0,0 +1,15 @@ +# V1beta1DeploymentStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_replicas** | **int** | Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. | [optional] +**conditions** | [**list[V1beta1DeploymentCondition]**](V1beta1DeploymentCondition.md) | Represents the latest available observations of a deployment's current state. | +**observed_generation** | **int** | The generation observed by the deployment controller. | [optional] +**replicas** | **int** | Total number of non-terminated pods targeted by this deployment (their labels match the selector). | [optional] +**unavailable_replicas** | **int** | Total number of unavailable pods targeted by this deployment. | [optional] +**updated_replicas** | **int** | Total number of non-terminated pods targeted by this deployment that have the desired template spec. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1DeploymentStrategy.md b/docs/V1beta1DeploymentStrategy.md new file mode 100644 index 000000000..6f657d558 --- /dev/null +++ b/docs/V1beta1DeploymentStrategy.md @@ -0,0 +1,11 @@ +# V1beta1DeploymentStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rolling_update** | [**V1beta1RollingUpdateDeployment**](V1beta1RollingUpdateDeployment.md) | Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. | [optional] +**type** | **str** | Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1HorizontalPodAutoscaler.md b/docs/V1beta1HorizontalPodAutoscaler.md new file mode 100644 index 000000000..0cfb87c8b --- /dev/null +++ b/docs/V1beta1HorizontalPodAutoscaler.md @@ -0,0 +1,12 @@ +# V1beta1HorizontalPodAutoscaler + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1beta1HorizontalPodAutoscalerSpec**](V1beta1HorizontalPodAutoscalerSpec.md) | behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. | [optional] +**status** | [**V1beta1HorizontalPodAutoscalerStatus**](V1beta1HorizontalPodAutoscalerStatus.md) | current information about the autoscaler. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1HorizontalPodAutoscalerList.md b/docs/V1beta1HorizontalPodAutoscalerList.md new file mode 100644 index 000000000..f80246a37 --- /dev/null +++ b/docs/V1beta1HorizontalPodAutoscalerList.md @@ -0,0 +1,11 @@ +# V1beta1HorizontalPodAutoscalerList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1beta1HorizontalPodAutoscaler]**](V1beta1HorizontalPodAutoscaler.md) | list of horizontal pod autoscaler objects. | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1HorizontalPodAutoscalerSpec.md b/docs/V1beta1HorizontalPodAutoscalerSpec.md new file mode 100644 index 000000000..80724f32c --- /dev/null +++ b/docs/V1beta1HorizontalPodAutoscalerSpec.md @@ -0,0 +1,13 @@ +# V1beta1HorizontalPodAutoscalerSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu_utilization** | [**V1beta1CPUTargetUtilization**](V1beta1CPUTargetUtilization.md) | target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified it defaults to the target CPU utilization at 80% of the requested resources. | [optional] +**max_replicas** | **int** | upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. | +**min_replicas** | **int** | lower limit for the number of pods that can be set by the autoscaler, default 1. | [optional] +**scale_ref** | [**V1beta1SubresourceReference**](V1beta1SubresourceReference.md) | reference to Scale subresource; horizontal pod autoscaler will learn the current resource consumption from its status, and will set the desired number of pods by modifying its spec. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1HorizontalPodAutoscalerStatus.md b/docs/V1beta1HorizontalPodAutoscalerStatus.md new file mode 100644 index 000000000..b5c043590 --- /dev/null +++ b/docs/V1beta1HorizontalPodAutoscalerStatus.md @@ -0,0 +1,14 @@ +# V1beta1HorizontalPodAutoscalerStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current_cpu_utilization_percentage** | **int** | current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. | [optional] +**current_replicas** | **int** | current number of replicas of pods managed by this autoscaler. | +**desired_replicas** | **int** | desired number of replicas of pods managed by this autoscaler. | +**last_scale_time** | [**UnversionedTime**](UnversionedTime.md) | last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. | [optional] +**observed_generation** | **int** | most recent generation observed by this autoscaler. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Ingress.md b/docs/V1beta1Ingress.md new file mode 100644 index 000000000..a318fff3d --- /dev/null +++ b/docs/V1beta1Ingress.md @@ -0,0 +1,12 @@ +# V1beta1Ingress + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1beta1IngressSpec**](V1beta1IngressSpec.md) | Spec is the desired state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] +**status** | [**V1beta1IngressStatus**](V1beta1IngressStatus.md) | Status is the current state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1IngressBackend.md b/docs/V1beta1IngressBackend.md new file mode 100644 index 000000000..d2e58b89d --- /dev/null +++ b/docs/V1beta1IngressBackend.md @@ -0,0 +1,11 @@ +# V1beta1IngressBackend + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**service_name** | **str** | Specifies the name of the referenced service. | +**service_port** | [**IntstrIntOrString**](IntstrIntOrString.md) | Specifies the port of the referenced service. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1IngressList.md b/docs/V1beta1IngressList.md new file mode 100644 index 000000000..6729a30c4 --- /dev/null +++ b/docs/V1beta1IngressList.md @@ -0,0 +1,11 @@ +# V1beta1IngressList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1beta1Ingress]**](V1beta1Ingress.md) | Items is the list of Ingress. | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1IngressRule.md b/docs/V1beta1IngressRule.md new file mode 100644 index 000000000..48fdd7d90 --- /dev/null +++ b/docs/V1beta1IngressRule.md @@ -0,0 +1,10 @@ +# V1beta1IngressRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**host** | **str** | Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1IngressSpec.md b/docs/V1beta1IngressSpec.md new file mode 100644 index 000000000..337753d17 --- /dev/null +++ b/docs/V1beta1IngressSpec.md @@ -0,0 +1,12 @@ +# V1beta1IngressSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**backend** | [**V1beta1IngressBackend**](V1beta1IngressBackend.md) | A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. | [optional] +**rules** | [**list[V1beta1IngressRule]**](V1beta1IngressRule.md) | A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. | [optional] +**tls** | [**list[V1beta1IngressTLS]**](V1beta1IngressTLS.md) | TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1IngressStatus.md b/docs/V1beta1IngressStatus.md new file mode 100644 index 000000000..1bcb25062 --- /dev/null +++ b/docs/V1beta1IngressStatus.md @@ -0,0 +1,10 @@ +# V1beta1IngressStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**load_balancer** | [**V1LoadBalancerStatus**](V1LoadBalancerStatus.md) | LoadBalancer contains the current status of the load-balancer. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1IngressTLS.md b/docs/V1beta1IngressTLS.md new file mode 100644 index 000000000..36f9992e3 --- /dev/null +++ b/docs/V1beta1IngressTLS.md @@ -0,0 +1,11 @@ +# V1beta1IngressTLS + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hosts** | **list[str]** | Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. | [optional] +**secret_name** | **str** | SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Job.md b/docs/V1beta1Job.md new file mode 100644 index 000000000..21d87993b --- /dev/null +++ b/docs/V1beta1Job.md @@ -0,0 +1,12 @@ +# V1beta1Job + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1beta1JobSpec**](V1beta1JobSpec.md) | Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] +**status** | [**V1beta1JobStatus**](V1beta1JobStatus.md) | Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1JobCondition.md b/docs/V1beta1JobCondition.md new file mode 100644 index 000000000..e3982d836 --- /dev/null +++ b/docs/V1beta1JobCondition.md @@ -0,0 +1,15 @@ +# V1beta1JobCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_probe_time** | [**UnversionedTime**](UnversionedTime.md) | Last time the condition was checked. | [optional] +**last_transition_time** | [**UnversionedTime**](UnversionedTime.md) | Last time the condition transit from one status to another. | [optional] +**message** | **str** | Human readable message indicating details about last transition. | [optional] +**reason** | **str** | (brief) reason for the condition's last transition. | [optional] +**status** | **str** | Status of the condition, one of True, False, Unknown. | +**type** | **str** | Type of job condition, Complete or Failed. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1JobList.md b/docs/V1beta1JobList.md new file mode 100644 index 000000000..9afd34069 --- /dev/null +++ b/docs/V1beta1JobList.md @@ -0,0 +1,11 @@ +# V1beta1JobList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1beta1Job]**](V1beta1Job.md) | Items is the list of Job. | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1JobSpec.md b/docs/V1beta1JobSpec.md new file mode 100644 index 000000000..23f2d2b9f --- /dev/null +++ b/docs/V1beta1JobSpec.md @@ -0,0 +1,15 @@ +# V1beta1JobSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active_deadline_seconds** | **int** | Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer | [optional] +**auto_selector** | **bool** | AutoSelector controls generation of pod labels and pod selectors. It was not present in the original extensions/v1beta1 Job definition, but exists to allow conversion from batch/v1 Jobs, where it corresponds to, but has the opposite meaning as, ManualSelector. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md | [optional] +**completions** | **int** | Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs | [optional] +**parallelism** | **int** | Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs | [optional] +**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1JobStatus.md b/docs/V1beta1JobStatus.md new file mode 100644 index 000000000..95220fad9 --- /dev/null +++ b/docs/V1beta1JobStatus.md @@ -0,0 +1,15 @@ +# V1beta1JobStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **int** | Active is the number of actively running pods. | [optional] +**completion_time** | [**UnversionedTime**](UnversionedTime.md) | CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. | [optional] +**conditions** | [**list[V1beta1JobCondition]**](V1beta1JobCondition.md) | Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs | [optional] +**failed** | **int** | Failed is the number of pods which reached Phase Failed. | [optional] +**start_time** | [**UnversionedTime**](UnversionedTime.md) | StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. | [optional] +**succeeded** | **int** | Succeeded is the number of pods which reached Phase Succeeded. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1LocalSubjectAccessReview.md b/docs/V1beta1LocalSubjectAccessReview.md new file mode 100644 index 000000000..462d3d329 --- /dev/null +++ b/docs/V1beta1LocalSubjectAccessReview.md @@ -0,0 +1,12 @@ +# V1beta1LocalSubjectAccessReview + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1SubjectAccessReviewSpec**](V1beta1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. | +**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1NetworkPolicy.md b/docs/V1beta1NetworkPolicy.md new file mode 100644 index 000000000..9dc5ca546 --- /dev/null +++ b/docs/V1beta1NetworkPolicy.md @@ -0,0 +1,11 @@ +# V1beta1NetworkPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1beta1NetworkPolicySpec**](V1beta1NetworkPolicySpec.md) | Specification of the desired behavior for this NetworkPolicy. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1NetworkPolicyIngressRule.md b/docs/V1beta1NetworkPolicyIngressRule.md new file mode 100644 index 000000000..17143d71c --- /dev/null +++ b/docs/V1beta1NetworkPolicyIngressRule.md @@ -0,0 +1,11 @@ +# V1beta1NetworkPolicyIngressRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_from** | [**list[V1beta1NetworkPolicyPeer]**](V1beta1NetworkPolicyPeer.md) | List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is not provided, this rule matches all sources (traffic not restricted by source). If this field is empty, this rule matches no sources (no traffic matches). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. | [optional] +**ports** | [**list[V1beta1NetworkPolicyPort]**](V1beta1NetworkPolicyPort.md) | List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is not provided, this rule matches all ports (traffic not restricted by port). If this field is empty, this rule matches no ports (no traffic matches). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1NetworkPolicyList.md b/docs/V1beta1NetworkPolicyList.md new file mode 100644 index 000000000..df7e1bf0d --- /dev/null +++ b/docs/V1beta1NetworkPolicyList.md @@ -0,0 +1,11 @@ +# V1beta1NetworkPolicyList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1beta1NetworkPolicy]**](V1beta1NetworkPolicy.md) | Items is a list of schema objects. | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1NetworkPolicyPeer.md b/docs/V1beta1NetworkPolicyPeer.md new file mode 100644 index 000000000..7bd9e4718 --- /dev/null +++ b/docs/V1beta1NetworkPolicyPeer.md @@ -0,0 +1,11 @@ +# V1beta1NetworkPolicyPeer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**namespace_selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If omitted, this selector selects no namespaces. If present but empty, this selector selects all namespaces. | [optional] +**pod_selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If not provided, this selector selects no pods. If present but empty, this selector selects all pods in this namespace. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1NetworkPolicyPort.md b/docs/V1beta1NetworkPolicyPort.md new file mode 100644 index 000000000..6613f47ff --- /dev/null +++ b/docs/V1beta1NetworkPolicyPort.md @@ -0,0 +1,11 @@ +# V1beta1NetworkPolicyPort + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**port** | [**IntstrIntOrString**](IntstrIntOrString.md) | If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. | [optional] +**protocol** | **str** | Optional. The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1NetworkPolicySpec.md b/docs/V1beta1NetworkPolicySpec.md new file mode 100644 index 000000000..7b92764a0 --- /dev/null +++ b/docs/V1beta1NetworkPolicySpec.md @@ -0,0 +1,11 @@ +# V1beta1NetworkPolicySpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ingress** | [**list[V1beta1NetworkPolicyIngressRule]**](V1beta1NetworkPolicyIngressRule.md) | List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if namespace.networkPolicy.ingress.isolation is undefined and cluster policy allows it, OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not affect ingress isolation. If this field is present and contains at least one rule, this policy allows any traffic which matches at least one of the ingress rules in this list. | [optional] +**pod_selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1NonResourceAttributes.md b/docs/V1beta1NonResourceAttributes.md new file mode 100644 index 000000000..3131ba532 --- /dev/null +++ b/docs/V1beta1NonResourceAttributes.md @@ -0,0 +1,11 @@ +# V1beta1NonResourceAttributes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**path** | **str** | Path is the URL path of the request | [optional] +**verb** | **str** | Verb is the standard HTTP verb | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ReplicaSet.md b/docs/V1beta1ReplicaSet.md new file mode 100644 index 000000000..0fcefedee --- /dev/null +++ b/docs/V1beta1ReplicaSet.md @@ -0,0 +1,12 @@ +# V1beta1ReplicaSet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1beta1ReplicaSetSpec**](V1beta1ReplicaSetSpec.md) | Spec defines the specification of the desired behavior of the ReplicaSet. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] +**status** | [**V1beta1ReplicaSetStatus**](V1beta1ReplicaSetStatus.md) | Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ReplicaSetCondition.md b/docs/V1beta1ReplicaSetCondition.md new file mode 100644 index 000000000..988659045 --- /dev/null +++ b/docs/V1beta1ReplicaSetCondition.md @@ -0,0 +1,14 @@ +# V1beta1ReplicaSetCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_transition_time** | [**UnversionedTime**](UnversionedTime.md) | The last time the condition transitioned from one status to another. | [optional] +**message** | **str** | A human readable message indicating details about the transition. | [optional] +**reason** | **str** | The reason for the condition's last transition. | [optional] +**status** | **str** | Status of the condition, one of True, False, Unknown. | +**type** | **str** | Type of replica set condition. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ReplicaSetList.md b/docs/V1beta1ReplicaSetList.md new file mode 100644 index 000000000..eb2239a7c --- /dev/null +++ b/docs/V1beta1ReplicaSetList.md @@ -0,0 +1,11 @@ +# V1beta1ReplicaSetList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1beta1ReplicaSet]**](V1beta1ReplicaSet.md) | List of ReplicaSets. More info: http://kubernetes.io/docs/user-guide/replication-controller | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ReplicaSetSpec.md b/docs/V1beta1ReplicaSetSpec.md new file mode 100644 index 000000000..111f85b16 --- /dev/null +++ b/docs/V1beta1ReplicaSetSpec.md @@ -0,0 +1,13 @@ +# V1beta1ReplicaSetSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_ready_seconds** | **int** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] +**replicas** | **int** | Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller | [optional] +**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ReplicaSetStatus.md b/docs/V1beta1ReplicaSetStatus.md new file mode 100644 index 000000000..ce36584f8 --- /dev/null +++ b/docs/V1beta1ReplicaSetStatus.md @@ -0,0 +1,15 @@ +# V1beta1ReplicaSetStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_replicas** | **int** | The number of available replicas (ready for at least minReadySeconds) for this replica set. | [optional] +**conditions** | [**list[V1beta1ReplicaSetCondition]**](V1beta1ReplicaSetCondition.md) | Represents the latest available observations of a replica set's current state. | [optional] +**fully_labeled_replicas** | **int** | The number of pods that have labels matching the labels of the pod template of the replicaset. | [optional] +**observed_generation** | **int** | ObservedGeneration reflects the generation of the most recently observed ReplicaSet. | [optional] +**ready_replicas** | **int** | The number of ready replicas for this replica set. | [optional] +**replicas** | **int** | Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ResourceAttributes.md b/docs/V1beta1ResourceAttributes.md new file mode 100644 index 000000000..196bd9908 --- /dev/null +++ b/docs/V1beta1ResourceAttributes.md @@ -0,0 +1,16 @@ +# V1beta1ResourceAttributes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group** | **str** | Group is the API Group of the Resource. \"*\" means all. | [optional] +**name** | **str** | Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. | [optional] +**namespace** | **str** | Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview | [optional] +**resource** | **str** | Resource is one of the existing resource types. \"*\" means all. | [optional] +**subresource** | **str** | Subresource is one of the existing resource types. \"\" means none. | [optional] +**verb** | **str** | Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. | [optional] +**version** | **str** | Version is the API Version of the Resource. \"*\" means all. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1RollbackConfig.md b/docs/V1beta1RollbackConfig.md new file mode 100644 index 000000000..28e5a8ff4 --- /dev/null +++ b/docs/V1beta1RollbackConfig.md @@ -0,0 +1,10 @@ +# V1beta1RollbackConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**revision** | **int** | The revision to rollback to. If set to 0, rollbck to the last revision. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1RollingUpdateDeployment.md b/docs/V1beta1RollingUpdateDeployment.md new file mode 100644 index 000000000..e6ce05780 --- /dev/null +++ b/docs/V1beta1RollingUpdateDeployment.md @@ -0,0 +1,11 @@ +# V1beta1RollingUpdateDeployment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_surge** | [**IntstrIntOrString**](IntstrIntOrString.md) | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. | [optional] +**max_unavailable** | [**IntstrIntOrString**](IntstrIntOrString.md) | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Scale.md b/docs/V1beta1Scale.md new file mode 100644 index 000000000..ed00bf2f9 --- /dev/null +++ b/docs/V1beta1Scale.md @@ -0,0 +1,12 @@ +# V1beta1Scale + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. | [optional] +**spec** | [**V1beta1ScaleSpec**](V1beta1ScaleSpec.md) | defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. | [optional] +**status** | [**V1beta1ScaleStatus**](V1beta1ScaleStatus.md) | current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ScaleSpec.md b/docs/V1beta1ScaleSpec.md new file mode 100644 index 000000000..7d78e71f3 --- /dev/null +++ b/docs/V1beta1ScaleSpec.md @@ -0,0 +1,10 @@ +# V1beta1ScaleSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**replicas** | **int** | desired number of instances for the scaled object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ScaleStatus.md b/docs/V1beta1ScaleStatus.md new file mode 100644 index 000000000..f6c763b92 --- /dev/null +++ b/docs/V1beta1ScaleStatus.md @@ -0,0 +1,12 @@ +# V1beta1ScaleStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**replicas** | **int** | actual number of observed instances of the scaled object. | +**selector** | **dict(str, str)** | label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] +**target_selector** | **str** | label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1SelfSubjectAccessReview.md b/docs/V1beta1SelfSubjectAccessReview.md new file mode 100644 index 000000000..0040f60ad --- /dev/null +++ b/docs/V1beta1SelfSubjectAccessReview.md @@ -0,0 +1,12 @@ +# V1beta1SelfSubjectAccessReview + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1SelfSubjectAccessReviewSpec**](V1beta1SelfSubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. user and groups must be empty | +**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1SelfSubjectAccessReviewSpec.md b/docs/V1beta1SelfSubjectAccessReviewSpec.md new file mode 100644 index 000000000..5d440252c --- /dev/null +++ b/docs/V1beta1SelfSubjectAccessReviewSpec.md @@ -0,0 +1,11 @@ +# V1beta1SelfSubjectAccessReviewSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**non_resource_attributes** | [**V1beta1NonResourceAttributes**](V1beta1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] +**resource_attributes** | [**V1beta1ResourceAttributes**](V1beta1ResourceAttributes.md) | ResourceAuthorizationAttributes describes information for a resource access request | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1StorageClass.md b/docs/V1beta1StorageClass.md new file mode 100644 index 000000000..a1f41b305 --- /dev/null +++ b/docs/V1beta1StorageClass.md @@ -0,0 +1,12 @@ +# V1beta1StorageClass + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**parameters** | **dict(str, str)** | Parameters holds the parameters for the provisioner that should create volumes of this storage class. | [optional] +**provisioner** | **str** | Provisioner indicates the type of the provisioner. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1StorageClassList.md b/docs/V1beta1StorageClassList.md new file mode 100644 index 000000000..a8795819a --- /dev/null +++ b/docs/V1beta1StorageClassList.md @@ -0,0 +1,11 @@ +# V1beta1StorageClassList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1beta1StorageClass]**](V1beta1StorageClass.md) | Items is the list of StorageClasses | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1SubjectAccessReview.md b/docs/V1beta1SubjectAccessReview.md new file mode 100644 index 000000000..6d1b950dc --- /dev/null +++ b/docs/V1beta1SubjectAccessReview.md @@ -0,0 +1,12 @@ +# V1beta1SubjectAccessReview + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1SubjectAccessReviewSpec**](V1beta1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated | +**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1SubjectAccessReviewSpec.md b/docs/V1beta1SubjectAccessReviewSpec.md new file mode 100644 index 000000000..d695558e5 --- /dev/null +++ b/docs/V1beta1SubjectAccessReviewSpec.md @@ -0,0 +1,14 @@ +# V1beta1SubjectAccessReviewSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**extra** | **dict(str, list[str])** | Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. | [optional] +**group** | **list[str]** | Groups is the groups you're testing for. | [optional] +**non_resource_attributes** | [**V1beta1NonResourceAttributes**](V1beta1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] +**resource_attributes** | [**V1beta1ResourceAttributes**](V1beta1ResourceAttributes.md) | ResourceAuthorizationAttributes describes information for a resource access request | [optional] +**user** | **str** | User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1SubjectAccessReviewStatus.md b/docs/V1beta1SubjectAccessReviewStatus.md new file mode 100644 index 000000000..899678232 --- /dev/null +++ b/docs/V1beta1SubjectAccessReviewStatus.md @@ -0,0 +1,12 @@ +# V1beta1SubjectAccessReviewStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed** | **bool** | Allowed is required. True if the action would be allowed, false otherwise. | +**evaluation_error** | **str** | EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. | [optional] +**reason** | **str** | Reason is optional. It indicates why a request was allowed or denied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1SubresourceReference.md b/docs/V1beta1SubresourceReference.md new file mode 100644 index 000000000..58f57ab13 --- /dev/null +++ b/docs/V1beta1SubresourceReference.md @@ -0,0 +1,13 @@ +# V1beta1SubresourceReference + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | API version of the referent | [optional] +**kind** | **str** | Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**name** | **str** | Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] +**subresource** | **str** | Subresource name of the referent | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ThirdPartyResource.md b/docs/V1beta1ThirdPartyResource.md new file mode 100644 index 000000000..ea8f475d6 --- /dev/null +++ b/docs/V1beta1ThirdPartyResource.md @@ -0,0 +1,12 @@ +# V1beta1ThirdPartyResource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Description is the description of this object. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata | [optional] +**versions** | [**list[V1beta1APIVersion]**](V1beta1APIVersion.md) | Versions are versions for this third party object | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ThirdPartyResourceList.md b/docs/V1beta1ThirdPartyResourceList.md new file mode 100644 index 000000000..fd0056fe7 --- /dev/null +++ b/docs/V1beta1ThirdPartyResourceList.md @@ -0,0 +1,11 @@ +# V1beta1ThirdPartyResourceList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1beta1ThirdPartyResource]**](V1beta1ThirdPartyResource.md) | Items is the list of ThirdPartyResources. | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1TokenReview.md b/docs/V1beta1TokenReview.md new file mode 100644 index 000000000..eb2fd8689 --- /dev/null +++ b/docs/V1beta1TokenReview.md @@ -0,0 +1,12 @@ +# V1beta1TokenReview + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1TokenReviewSpec**](V1beta1TokenReviewSpec.md) | Spec holds information about the request being evaluated | +**status** | [**V1beta1TokenReviewStatus**](V1beta1TokenReviewStatus.md) | Status is filled in by the server and indicates whether the request can be authenticated. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1TokenReviewSpec.md b/docs/V1beta1TokenReviewSpec.md new file mode 100644 index 000000000..1c347b828 --- /dev/null +++ b/docs/V1beta1TokenReviewSpec.md @@ -0,0 +1,10 @@ +# V1beta1TokenReviewSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**token** | **str** | Token is the opaque bearer token. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1TokenReviewStatus.md b/docs/V1beta1TokenReviewStatus.md new file mode 100644 index 000000000..cd7af7655 --- /dev/null +++ b/docs/V1beta1TokenReviewStatus.md @@ -0,0 +1,12 @@ +# V1beta1TokenReviewStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authenticated** | **bool** | Authenticated indicates that the token was associated with a known user. | [optional] +**error** | **str** | Error indicates that the token couldn't be checked | [optional] +**user** | [**V1beta1UserInfo**](V1beta1UserInfo.md) | User is the UserInfo associated with the provided token. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1UserInfo.md b/docs/V1beta1UserInfo.md new file mode 100644 index 000000000..7ba32fe5b --- /dev/null +++ b/docs/V1beta1UserInfo.md @@ -0,0 +1,13 @@ +# V1beta1UserInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**extra** | **dict(str, list[str])** | Any additional information provided by the authenticator. | [optional] +**groups** | **list[str]** | The names of groups this user is a part of. | [optional] +**uid** | **str** | A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. | [optional] +**username** | **str** | The name that uniquely identifies this user among all active users. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VersionApi.md b/docs/VersionApi.md new file mode 100644 index 000000000..ed1e1c436 --- /dev/null +++ b/docs/VersionApi.md @@ -0,0 +1,57 @@ +# k8sclient.VersionApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_code_version**](VersionApi.md#get_code_version) | **GET** /version/ | + + +# **get_code_version** +> VersionInfo get_code_version() + + + +get the code version + +### Example +```python +from __future__ import print_statement +import time +import k8sclient +from k8sclient.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = k8sclient.VersionApi() + +try: + api_response = api_instance.get_code_version() + pprint(api_response) +except ApiException as e: + print("Exception when calling VersionApi->get_code_version: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**VersionInfo**](VersionInfo.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/VersionInfo.md b/docs/VersionInfo.md new file mode 100644 index 000000000..d9acfd10e --- /dev/null +++ b/docs/VersionInfo.md @@ -0,0 +1,18 @@ +# VersionInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build_date** | **str** | | +**compiler** | **str** | | +**git_commit** | **str** | | +**git_tree_state** | **str** | | +**git_version** | **str** | | +**go_version** | **str** | | +**major** | **str** | | +**minor** | **str** | | +**platform** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VersionedEvent.md b/docs/VersionedEvent.md new file mode 100644 index 000000000..022cfd400 --- /dev/null +++ b/docs/VersionedEvent.md @@ -0,0 +1,11 @@ +# VersionedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**object** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *api.Status is recommended; other types may make sense depending on context. | +**type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/k8sclient/__init__.py b/k8sclient/__init__.py new file mode 100644 index 000000000..3ecf7f966 --- /dev/null +++ b/k8sclient/__init__.py @@ -0,0 +1,283 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +# import models into sdk package +from .models.intstr_int_or_string import IntstrIntOrString +from .models.resource_quantity import ResourceQuantity +from .models.runtime_raw_extension import RuntimeRawExtension +from .models.unversioned_api_group import UnversionedAPIGroup +from .models.unversioned_api_group_list import UnversionedAPIGroupList +from .models.unversioned_api_resource import UnversionedAPIResource +from .models.unversioned_api_resource_list import UnversionedAPIResourceList +from .models.unversioned_api_versions import UnversionedAPIVersions +from .models.unversioned_group_version_for_discovery import UnversionedGroupVersionForDiscovery +from .models.unversioned_label_selector import UnversionedLabelSelector +from .models.unversioned_label_selector_requirement import UnversionedLabelSelectorRequirement +from .models.unversioned_list_meta import UnversionedListMeta +from .models.unversioned_server_address_by_client_cidr import UnversionedServerAddressByClientCIDR +from .models.unversioned_status import UnversionedStatus +from .models.unversioned_status_cause import UnversionedStatusCause +from .models.unversioned_status_details import UnversionedStatusDetails +from .models.unversioned_time import UnversionedTime +from .models.v1_attached_volume import V1AttachedVolume +from .models.v1_binding import V1Binding +from .models.v1_capabilities import V1Capabilities +from .models.v1_component_condition import V1ComponentCondition +from .models.v1_component_status import V1ComponentStatus +from .models.v1_component_status_list import V1ComponentStatusList +from .models.v1_config_map import V1ConfigMap +from .models.v1_config_map_key_selector import V1ConfigMapKeySelector +from .models.v1_config_map_list import V1ConfigMapList +from .models.v1_container import V1Container +from .models.v1_container_image import V1ContainerImage +from .models.v1_container_port import V1ContainerPort +from .models.v1_container_state import V1ContainerState +from .models.v1_container_state_running import V1ContainerStateRunning +from .models.v1_container_state_terminated import V1ContainerStateTerminated +from .models.v1_container_state_waiting import V1ContainerStateWaiting +from .models.v1_container_status import V1ContainerStatus +from .models.v1_cross_version_object_reference import V1CrossVersionObjectReference +from .models.v1_daemon_endpoint import V1DaemonEndpoint +from .models.v1_delete_options import V1DeleteOptions +from .models.v1_endpoint_address import V1EndpointAddress +from .models.v1_endpoint_port import V1EndpointPort +from .models.v1_endpoint_subset import V1EndpointSubset +from .models.v1_endpoints import V1Endpoints +from .models.v1_endpoints_list import V1EndpointsList +from .models.v1_env_var import V1EnvVar +from .models.v1_env_var_source import V1EnvVarSource +from .models.v1_event import V1Event +from .models.v1_event_list import V1EventList +from .models.v1_event_source import V1EventSource +from .models.v1_exec_action import V1ExecAction +from .models.v1_http_get_action import V1HTTPGetAction +from .models.v1_http_header import V1HTTPHeader +from .models.v1_handler import V1Handler +from .models.v1_horizontal_pod_autoscaler import V1HorizontalPodAutoscaler +from .models.v1_horizontal_pod_autoscaler_list import V1HorizontalPodAutoscalerList +from .models.v1_horizontal_pod_autoscaler_spec import V1HorizontalPodAutoscalerSpec +from .models.v1_horizontal_pod_autoscaler_status import V1HorizontalPodAutoscalerStatus +from .models.v1_job import V1Job +from .models.v1_job_condition import V1JobCondition +from .models.v1_job_list import V1JobList +from .models.v1_job_spec import V1JobSpec +from .models.v1_job_status import V1JobStatus +from .models.v1_lifecycle import V1Lifecycle +from .models.v1_limit_range import V1LimitRange +from .models.v1_limit_range_item import V1LimitRangeItem +from .models.v1_limit_range_list import V1LimitRangeList +from .models.v1_limit_range_spec import V1LimitRangeSpec +from .models.v1_load_balancer_ingress import V1LoadBalancerIngress +from .models.v1_load_balancer_status import V1LoadBalancerStatus +from .models.v1_local_object_reference import V1LocalObjectReference +from .models.v1_namespace import V1Namespace +from .models.v1_namespace_list import V1NamespaceList +from .models.v1_namespace_spec import V1NamespaceSpec +from .models.v1_namespace_status import V1NamespaceStatus +from .models.v1_node import V1Node +from .models.v1_node_address import V1NodeAddress +from .models.v1_node_condition import V1NodeCondition +from .models.v1_node_daemon_endpoints import V1NodeDaemonEndpoints +from .models.v1_node_list import V1NodeList +from .models.v1_node_spec import V1NodeSpec +from .models.v1_node_status import V1NodeStatus +from .models.v1_node_system_info import V1NodeSystemInfo +from .models.v1_object_field_selector import V1ObjectFieldSelector +from .models.v1_object_meta import V1ObjectMeta +from .models.v1_object_reference import V1ObjectReference +from .models.v1_owner_reference import V1OwnerReference +from .models.v1_persistent_volume import V1PersistentVolume +from .models.v1_persistent_volume_claim import V1PersistentVolumeClaim +from .models.v1_persistent_volume_claim_list import V1PersistentVolumeClaimList +from .models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec +from .models.v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus +from .models.v1_persistent_volume_list import V1PersistentVolumeList +from .models.v1_persistent_volume_spec import V1PersistentVolumeSpec +from .models.v1_persistent_volume_status import V1PersistentVolumeStatus +from .models.v1_pod import V1Pod +from .models.v1_pod_condition import V1PodCondition +from .models.v1_pod_list import V1PodList +from .models.v1_pod_security_context import V1PodSecurityContext +from .models.v1_pod_spec import V1PodSpec +from .models.v1_pod_status import V1PodStatus +from .models.v1_pod_template import V1PodTemplate +from .models.v1_pod_template_list import V1PodTemplateList +from .models.v1_pod_template_spec import V1PodTemplateSpec +from .models.v1_preconditions import V1Preconditions +from .models.v1_probe import V1Probe +from .models.v1_replication_controller import V1ReplicationController +from .models.v1_replication_controller_condition import V1ReplicationControllerCondition +from .models.v1_replication_controller_list import V1ReplicationControllerList +from .models.v1_replication_controller_spec import V1ReplicationControllerSpec +from .models.v1_replication_controller_status import V1ReplicationControllerStatus +from .models.v1_resource_field_selector import V1ResourceFieldSelector +from .models.v1_resource_quota import V1ResourceQuota +from .models.v1_resource_quota_list import V1ResourceQuotaList +from .models.v1_resource_quota_spec import V1ResourceQuotaSpec +from .models.v1_resource_quota_status import V1ResourceQuotaStatus +from .models.v1_resource_requirements import V1ResourceRequirements +from .models.v1_se_linux_options import V1SELinuxOptions +from .models.v1_scale import V1Scale +from .models.v1_scale_spec import V1ScaleSpec +from .models.v1_scale_status import V1ScaleStatus +from .models.v1_secret import V1Secret +from .models.v1_secret_key_selector import V1SecretKeySelector +from .models.v1_secret_list import V1SecretList +from .models.v1_security_context import V1SecurityContext +from .models.v1_service import V1Service +from .models.v1_service_account import V1ServiceAccount +from .models.v1_service_account_list import V1ServiceAccountList +from .models.v1_service_list import V1ServiceList +from .models.v1_service_port import V1ServicePort +from .models.v1_service_spec import V1ServiceSpec +from .models.v1_service_status import V1ServiceStatus +from .models.v1_tcp_socket_action import V1TCPSocketAction +from .models.v1_volume import V1Volume +from .models.v1_volume_mount import V1VolumeMount +from .models.v1alpha1_certificate_signing_request import V1alpha1CertificateSigningRequest +from .models.v1alpha1_certificate_signing_request_condition import V1alpha1CertificateSigningRequestCondition +from .models.v1alpha1_certificate_signing_request_list import V1alpha1CertificateSigningRequestList +from .models.v1alpha1_certificate_signing_request_spec import V1alpha1CertificateSigningRequestSpec +from .models.v1alpha1_certificate_signing_request_status import V1alpha1CertificateSigningRequestStatus +from .models.v1alpha1_cluster_role import V1alpha1ClusterRole +from .models.v1alpha1_cluster_role_binding import V1alpha1ClusterRoleBinding +from .models.v1alpha1_cluster_role_binding_list import V1alpha1ClusterRoleBindingList +from .models.v1alpha1_cluster_role_list import V1alpha1ClusterRoleList +from .models.v1alpha1_eviction import V1alpha1Eviction +from .models.v1alpha1_pod_disruption_budget import V1alpha1PodDisruptionBudget +from .models.v1alpha1_pod_disruption_budget_list import V1alpha1PodDisruptionBudgetList +from .models.v1alpha1_pod_disruption_budget_spec import V1alpha1PodDisruptionBudgetSpec +from .models.v1alpha1_pod_disruption_budget_status import V1alpha1PodDisruptionBudgetStatus +from .models.v1alpha1_policy_rule import V1alpha1PolicyRule +from .models.v1alpha1_role import V1alpha1Role +from .models.v1alpha1_role_binding import V1alpha1RoleBinding +from .models.v1alpha1_role_binding_list import V1alpha1RoleBindingList +from .models.v1alpha1_role_list import V1alpha1RoleList +from .models.v1alpha1_role_ref import V1alpha1RoleRef +from .models.v1alpha1_stateful_set import V1alpha1StatefulSet +from .models.v1alpha1_stateful_set_list import V1alpha1StatefulSetList +from .models.v1alpha1_stateful_set_spec import V1alpha1StatefulSetSpec +from .models.v1alpha1_stateful_set_status import V1alpha1StatefulSetStatus +from .models.v1alpha1_subject import V1alpha1Subject +from .models.v1beta1_api_version import V1beta1APIVersion +from .models.v1beta1_cpu_target_utilization import V1beta1CPUTargetUtilization +from .models.v1beta1_daemon_set import V1beta1DaemonSet +from .models.v1beta1_daemon_set_list import V1beta1DaemonSetList +from .models.v1beta1_daemon_set_spec import V1beta1DaemonSetSpec +from .models.v1beta1_daemon_set_status import V1beta1DaemonSetStatus +from .models.v1beta1_deployment import V1beta1Deployment +from .models.v1beta1_deployment_condition import V1beta1DeploymentCondition +from .models.v1beta1_deployment_list import V1beta1DeploymentList +from .models.v1beta1_deployment_rollback import V1beta1DeploymentRollback +from .models.v1beta1_deployment_spec import V1beta1DeploymentSpec +from .models.v1beta1_deployment_status import V1beta1DeploymentStatus +from .models.v1beta1_deployment_strategy import V1beta1DeploymentStrategy +from .models.v1beta1_horizontal_pod_autoscaler import V1beta1HorizontalPodAutoscaler +from .models.v1beta1_horizontal_pod_autoscaler_list import V1beta1HorizontalPodAutoscalerList +from .models.v1beta1_horizontal_pod_autoscaler_spec import V1beta1HorizontalPodAutoscalerSpec +from .models.v1beta1_horizontal_pod_autoscaler_status import V1beta1HorizontalPodAutoscalerStatus +from .models.v1beta1_ingress import V1beta1Ingress +from .models.v1beta1_ingress_backend import V1beta1IngressBackend +from .models.v1beta1_ingress_list import V1beta1IngressList +from .models.v1beta1_ingress_rule import V1beta1IngressRule +from .models.v1beta1_ingress_spec import V1beta1IngressSpec +from .models.v1beta1_ingress_status import V1beta1IngressStatus +from .models.v1beta1_ingress_tls import V1beta1IngressTLS +from .models.v1beta1_job import V1beta1Job +from .models.v1beta1_job_condition import V1beta1JobCondition +from .models.v1beta1_job_list import V1beta1JobList +from .models.v1beta1_job_spec import V1beta1JobSpec +from .models.v1beta1_job_status import V1beta1JobStatus +from .models.v1beta1_local_subject_access_review import V1beta1LocalSubjectAccessReview +from .models.v1beta1_network_policy import V1beta1NetworkPolicy +from .models.v1beta1_network_policy_ingress_rule import V1beta1NetworkPolicyIngressRule +from .models.v1beta1_network_policy_list import V1beta1NetworkPolicyList +from .models.v1beta1_network_policy_peer import V1beta1NetworkPolicyPeer +from .models.v1beta1_network_policy_port import V1beta1NetworkPolicyPort +from .models.v1beta1_network_policy_spec import V1beta1NetworkPolicySpec +from .models.v1beta1_non_resource_attributes import V1beta1NonResourceAttributes +from .models.v1beta1_replica_set import V1beta1ReplicaSet +from .models.v1beta1_replica_set_condition import V1beta1ReplicaSetCondition +from .models.v1beta1_replica_set_list import V1beta1ReplicaSetList +from .models.v1beta1_replica_set_spec import V1beta1ReplicaSetSpec +from .models.v1beta1_replica_set_status import V1beta1ReplicaSetStatus +from .models.v1beta1_resource_attributes import V1beta1ResourceAttributes +from .models.v1beta1_rollback_config import V1beta1RollbackConfig +from .models.v1beta1_rolling_update_deployment import V1beta1RollingUpdateDeployment +from .models.v1beta1_scale import V1beta1Scale +from .models.v1beta1_scale_spec import V1beta1ScaleSpec +from .models.v1beta1_scale_status import V1beta1ScaleStatus +from .models.v1beta1_self_subject_access_review import V1beta1SelfSubjectAccessReview +from .models.v1beta1_self_subject_access_review_spec import V1beta1SelfSubjectAccessReviewSpec +from .models.v1beta1_storage_class import V1beta1StorageClass +from .models.v1beta1_storage_class_list import V1beta1StorageClassList +from .models.v1beta1_subject_access_review import V1beta1SubjectAccessReview +from .models.v1beta1_subject_access_review_spec import V1beta1SubjectAccessReviewSpec +from .models.v1beta1_subject_access_review_status import V1beta1SubjectAccessReviewStatus +from .models.v1beta1_subresource_reference import V1beta1SubresourceReference +from .models.v1beta1_third_party_resource import V1beta1ThirdPartyResource +from .models.v1beta1_third_party_resource_list import V1beta1ThirdPartyResourceList +from .models.v1beta1_token_review import V1beta1TokenReview +from .models.v1beta1_token_review_spec import V1beta1TokenReviewSpec +from .models.v1beta1_token_review_status import V1beta1TokenReviewStatus +from .models.v1beta1_user_info import V1beta1UserInfo +from .models.version_info import VersionInfo +from .models.versioned_event import VersionedEvent + +# import apis into sdk package +from .apis.apis_api import ApisApi +from .apis.apps_api import AppsApi +from .apis.apps_v1alpha1_api import AppsV1alpha1Api +from .apis.authentication_api import AuthenticationApi +from .apis.authentication_v1beta1_api import AuthenticationV1beta1Api +from .apis.authorization_api import AuthorizationApi +from .apis.authorization_v1beta1_api import AuthorizationV1beta1Api +from .apis.autoscaling_api import AutoscalingApi +from .apis.autoscaling_v1_api import AutoscalingV1Api +from .apis.batch_api import BatchApi +from .apis.batch_v1_api import BatchV1Api +from .apis.batch_v2alpha1_api import BatchV2alpha1Api +from .apis.certificates_api import CertificatesApi +from .apis.certificates_v1alpha1_api import CertificatesV1alpha1Api +from .apis.core_api import CoreApi +from .apis.core_v1_api import CoreV1Api +from .apis.extensions_api import ExtensionsApi +from .apis.extensions_v1beta1_api import ExtensionsV1beta1Api +from .apis.logs_api import LogsApi +from .apis.policy_api import PolicyApi +from .apis.policy_v1alpha1_api import PolicyV1alpha1Api +from .apis.rbac_authorization_api import RbacAuthorizationApi +from .apis.rbac_authorization_v1alpha1_api import RbacAuthorizationV1alpha1Api +from .apis.storage_api import StorageApi +from .apis.storage_v1beta1_api import StorageV1beta1Api +from .apis.version_api import VersionApi + +# import ApiClient +from .api_client import ApiClient + +from .configuration import Configuration + +configuration = Configuration() diff --git a/k8sclient/api_client.py b/k8sclient/api_client.py new file mode 100644 index 000000000..adf66173d --- /dev/null +++ b/k8sclient/api_client.py @@ -0,0 +1,608 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +from . import models +from .rest import RESTClientObject +from .rest import ApiException + +import os +import re +import json +import mimetypes +import tempfile +import threading + +from datetime import datetime +from datetime import date + +# python 2 and python 3 compatibility library +from six import PY3, integer_types, iteritems, text_type +from six.moves.urllib.parse import quote + +from .configuration import Configuration + + +class ApiClient(object): + """ + Generic API client for Swagger client library builds. + + Swagger generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the Swagger + templates. + + NOTE: This class is auto generated by the swagger code generator program. + Ref: https://github.com/swagger-api/swagger-codegen + Do not edit the class manually. + + :param host: The base path for the server to call. + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to the API. + """ + def __init__(self, host=None, header_name=None, header_value=None, cookie=None): + + """ + Constructor of the class. + """ + self.rest_client = RESTClientObject() + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + if host is None: + self.host = Configuration().host + else: + self.host = host + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'Swagger-Codegen/1.0.0/python' + + @property + def user_agent(self): + """ + Gets user agent. + """ + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + """ + Sets user agent. + """ + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + def __call_api(self, resource_path, method, + path_params=None, query_params=None, header_params=None, + body=None, post_params=None, files=None, + response_type=None, auth_settings=None, callback=None, + _return_http_data_only=None, collection_formats=None): + + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict(self.parameters_to_tuples(header_params, + collection_formats)) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples(path_params, + collection_formats) + for k, v in path_params: + resource_path = resource_path.replace( + '{%s}' % k, quote(str(v))) + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + query_params = self.parameters_to_tuples(query_params, + collection_formats) + + # post parameters + if post_params or files: + post_params = self.prepare_post_parameters(post_params, files) + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples(post_params, + collection_formats) + + # auth setting + self.update_params_for_auth(header_params, query_params, auth_settings) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # request url + url = self.host + resource_path + + # perform request and return response + response_data = self.request(method, url, + query_params=query_params, + headers=header_params, + post_params=post_params, body=body) + + self.last_response = response_data + + # deserialize response data + if response_type: + deserialized_data = self.deserialize(response_data, response_type) + else: + deserialized_data = None + + if callback: + callback(deserialized_data) if _return_http_data_only else callback((deserialized_data, response_data.status, response_data.getheaders())) + elif _return_http_data_only: + return (deserialized_data) + else: + return (deserialized_data, response_data.status, response_data.getheaders()) + + def sanitize_for_serialization(self, obj): + """ + Builds a JSON POST object. + + If obj is None, return None. + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is swagger model, return the properties dict. + + :param obj: The data to serialize. + :return: The serialized form of data. + """ + types = (str, float, bool, bytes) + tuple(integer_types) + (text_type,) + if isinstance(obj, type(None)): + return None + elif isinstance(obj, types): + return obj + elif isinstance(obj, list): + return [self.sanitize_for_serialization(sub_obj) + for sub_obj in obj] + elif isinstance(obj, tuple): + return tuple(self.sanitize_for_serialization(sub_obj) + for sub_obj in obj) + elif isinstance(obj, (datetime, date)): + return obj.isoformat() + else: + if isinstance(obj, dict): + obj_dict = obj + else: + # Convert model obj to dict except + # attributes `swagger_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) + for attr, _ in iteritems(obj.swagger_types) + if getattr(obj, attr) is not None} + + return {key: self.sanitize_for_serialization(val) + for key, val in iteritems(obj_dict)} + + def deserialize(self, response, response_type): + """ + Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialized object, or string of class name. + + :return: deserialized object. + """ + # handle file downloading + # save response body into a tmp file and return the instance + if "file" == response_type: + return self.__deserialize_file(response) + + # fetch data from response object + try: + data = json.loads(response.data) + except ValueError: + data = response.data + + return self.__deserialize(data, response_type) + + def __deserialize(self, data, klass): + """ + Deserializes dict, list, str into an object. + + :param data: dict, list or str. + :param klass: class literal, or string of class name. + + :return: object. + """ + if data is None: + return None + + if type(klass) == str: + if klass.startswith('list['): + sub_kls = re.match('list\[(.*)\]', klass).group(1) + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] + + if klass.startswith('dict('): + sub_kls = re.match('dict\(([^,]*), (.*)\)', klass).group(2) + return {k: self.__deserialize(v, sub_kls) + for k, v in iteritems(data)} + + # convert str to class + # for native types + if klass in ['int', 'float', 'str', 'bool', + "date", 'datetime', "object"]: + klass = eval(klass) + elif klass == 'long': + klass = int if PY3 else long + # for model types + else: + klass = eval('models.' + klass) + + if klass in integer_types or klass in (float, str, bool): + return self.__deserialize_primitive(data, klass) + elif klass == object: + return self.__deserialize_object(data) + elif klass == date: + return self.__deserialize_date(data) + elif klass == datetime: + return self.__deserialize_datatime(data) + else: + return self.__deserialize_model(data, klass) + + def call_api(self, resource_path, method, + path_params=None, query_params=None, header_params=None, + body=None, post_params=None, files=None, + response_type=None, auth_settings=None, callback=None, + _return_http_data_only=None, collection_formats=None): + """ + Makes the HTTP request (synchronous) and return the deserialized data. + To make an async request, define a function for callback. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param response: Response data type. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param callback function: Callback function for asynchronous request. + If provide this parameter, + the request will be called asynchronously. + :param _return_http_data_only: response data without head status code and headers + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :return: + If provide parameter callback, + the request will be called asynchronously. + The method will return the request thread. + If parameter callback is None, + then the method will return the response directly. + """ + if callback is None: + return self.__call_api(resource_path, method, + path_params, query_params, header_params, + body, post_params, files, + response_type, auth_settings, callback, + _return_http_data_only, collection_formats) + else: + thread = threading.Thread(target=self.__call_api, + args=(resource_path, method, + path_params, query_params, + header_params, body, + post_params, files, + response_type, auth_settings, + callback, _return_http_data_only, + collection_formats)) + thread.start() + return thread + + def request(self, method, url, query_params=None, headers=None, + post_params=None, body=None): + """ + Makes the HTTP request using RESTClient. + """ + if method == "GET": + return self.rest_client.GET(url, + query_params=query_params, + headers=headers) + elif method == "HEAD": + return self.rest_client.HEAD(url, + query_params=query_params, + headers=headers) + elif method == "OPTIONS": + return self.rest_client.OPTIONS(url, + query_params=query_params, + headers=headers, + post_params=post_params, + body=body) + elif method == "POST": + return self.rest_client.POST(url, + query_params=query_params, + headers=headers, + post_params=post_params, + body=body) + elif method == "PUT": + return self.rest_client.PUT(url, + query_params=query_params, + headers=headers, + post_params=post_params, + body=body) + elif method == "PATCH": + return self.rest_client.PATCH(url, + query_params=query_params, + headers=headers, + post_params=post_params, + body=body) + elif method == "DELETE": + return self.rest_client.DELETE(url, + query_params=query_params, + headers=headers, + body=body) + else: + raise ValueError( + "http method must be `GET`, `HEAD`, `OPTIONS`," + " `POST`, `PATCH`, `PUT` or `DELETE`." + ) + + def parameters_to_tuples(self, params, collection_formats): + """ + Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params = [] + if collection_formats is None: + collection_formats = {} + for k, v in iteritems(params) if isinstance(params, dict) else params: + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params + + def prepare_post_parameters(self, post_params=None, files=None): + """ + Builds form parameters. + + :param post_params: Normal form parameters. + :param files: File parameters. + :return: Form parameters with files. + """ + params = [] + + if post_params: + params = post_params + + if files: + for k, v in iteritems(files): + if not v: + continue + file_names = v if type(v) is list else [v] + for n in file_names: + with open(n, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + mimetype = mimetypes.\ + guess_type(filename)[0] or 'application/octet-stream' + params.append(tuple([k, tuple([filename, filedata, mimetype])])) + + return params + + def select_header_accept(self, accepts): + """ + Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return + + accepts = list(map(lambda x: x.lower(), accepts)) + + if 'application/json' in accepts: + return 'application/json' + else: + return ', '.join(accepts) + + def select_header_content_type(self, content_types): + """ + Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return 'application/json' + + content_types = list(map(lambda x: x.lower(), content_types)) + + if 'application/json' in content_types: + return 'application/json' + else: + return content_types[0] + + def update_params_for_auth(self, headers, querys, auth_settings): + """ + Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param querys: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + """ + config = Configuration() + + if not auth_settings: + return + + for auth in auth_settings: + auth_setting = config.auth_settings().get(auth) + if auth_setting: + if not auth_setting['value']: + continue + elif auth_setting['in'] == 'header': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + querys.append((auth_setting['key'], auth_setting['value'])) + else: + raise ValueError( + 'Authentication token must be in `query` or `header`' + ) + + def __deserialize_file(self, response): + """ + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + :param response: RESTResponse. + :return: file path. + """ + config = Configuration() + + fd, path = tempfile.mkstemp(dir=config.temp_folder_path) + os.close(fd) + os.remove(path) + + content_disposition = response.getheader("Content-Disposition") + if content_disposition: + filename = re.\ + search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition).\ + group(1) + path = os.path.join(os.path.dirname(path), filename) + + with open(path, "w") as f: + f.write(response.data) + + return path + + def __deserialize_primitive(self, data, klass): + """ + Deserializes string to primitive type. + + :param data: str. + :param klass: class literal. + + :return: int, long, float, str, bool. + """ + try: + value = klass(data) + except UnicodeEncodeError: + value = unicode(data) + except TypeError: + value = data + return value + + def __deserialize_object(self, value): + """ + Return a original value. + + :return: object. + """ + return value + + def __deserialize_date(self, string): + """ + Deserializes string to date. + + :param string: str. + :return: date. + """ + try: + from dateutil.parser import parse + return parse(string).date() + except ImportError: + return string + except ValueError: + raise ApiException( + status=0, + reason="Failed to parse `{0}` into a date object" + .format(string) + ) + + def __deserialize_datatime(self, string): + """ + Deserializes string to datetime. + + The string should be in iso8601 datetime format. + + :param string: str. + :return: datetime. + """ + try: + from dateutil.parser import parse + return parse(string) + except ImportError: + return string + except ValueError: + raise ApiException( + status=0, + reason="Failed to parse `{0}` into a datetime object". + format(string) + ) + + def __deserialize_model(self, data, klass): + """ + Deserializes list or dict to model. + + :param data: dict, list. + :param klass: class literal. + :return: model object. + """ + instance = klass() + + if not instance.swagger_types: + return data + + for attr, attr_type in iteritems(instance.swagger_types): + if data is not None \ + and instance.attribute_map[attr] in data\ + and isinstance(data, (list, dict)): + value = data[instance.attribute_map[attr]] + setattr(instance, attr, self.__deserialize(value, attr_type)) + + return instance diff --git a/k8sclient/apis/__init__.py b/k8sclient/apis/__init__.py new file mode 100644 index 000000000..26efeeb29 --- /dev/null +++ b/k8sclient/apis/__init__.py @@ -0,0 +1,29 @@ +from __future__ import absolute_import + +# import apis into api package +from .apis_api import ApisApi +from .apps_api import AppsApi +from .apps_v1alpha1_api import AppsV1alpha1Api +from .authentication_api import AuthenticationApi +from .authentication_v1beta1_api import AuthenticationV1beta1Api +from .authorization_api import AuthorizationApi +from .authorization_v1beta1_api import AuthorizationV1beta1Api +from .autoscaling_api import AutoscalingApi +from .autoscaling_v1_api import AutoscalingV1Api +from .batch_api import BatchApi +from .batch_v1_api import BatchV1Api +from .batch_v2alpha1_api import BatchV2alpha1Api +from .certificates_api import CertificatesApi +from .certificates_v1alpha1_api import CertificatesV1alpha1Api +from .core_api import CoreApi +from .core_v1_api import CoreV1Api +from .extensions_api import ExtensionsApi +from .extensions_v1beta1_api import ExtensionsV1beta1Api +from .logs_api import LogsApi +from .policy_api import PolicyApi +from .policy_v1alpha1_api import PolicyV1alpha1Api +from .rbac_authorization_api import RbacAuthorizationApi +from .rbac_authorization_v1alpha1_api import RbacAuthorizationV1alpha1Api +from .storage_api import StorageApi +from .storage_v1beta1_api import StorageV1beta1Api +from .version_api import VersionApi diff --git a/k8sclient/apis/apis_api.py b/k8sclient/apis/apis_api.py new file mode 100644 index 000000000..b052a9448 --- /dev/null +++ b/k8sclient/apis/apis_api.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class ApisApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_api_versions(self, **kwargs): + """ + + get available API versions + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_versions(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroupList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_versions_with_http_info(**kwargs) + else: + (data) = self.get_api_versions_with_http_info(**kwargs) + return data + + def get_api_versions_with_http_info(self, **kwargs): + """ + + get available API versions + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_versions_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroupList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_versions" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIGroupList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/apps_api.py b/k8sclient/apis/apps_api.py new file mode 100644 index 000000000..b030184f6 --- /dev/null +++ b/k8sclient/apis/apps_api.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class AppsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_apps_api_group(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_apps_api_group(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_apps_api_group_with_http_info(**kwargs) + else: + (data) = self.get_apps_api_group_with_http_info(**kwargs) + return data + + def get_apps_api_group_with_http_info(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_apps_api_group_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_apps_api_group" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/apps/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIGroup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/apps_v1alpha1_api.py b/k8sclient/apis/apps_v1alpha1_api.py new file mode 100644 index 000000000..a4e72c9c9 --- /dev/null +++ b/k8sclient/apis/apps_v1alpha1_api.py @@ -0,0 +1,1933 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class AppsV1alpha1Api(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_apps_v1alpha1_namespaced_stateful_set(self, namespace, body, **kwargs): + """ + + create a StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_apps_v1alpha1_namespaced_stateful_set(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1StatefulSet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1StatefulSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_apps_v1alpha1_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_apps_v1alpha1_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) + return data + + def create_apps_v1alpha1_namespaced_stateful_set_with_http_info(self, namespace, body, **kwargs): + """ + + create a StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_apps_v1alpha1_namespaced_stateful_set_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1StatefulSet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1StatefulSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_apps_v1alpha1_namespaced_stateful_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_apps_v1alpha1_namespaced_stateful_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_apps_v1alpha1_namespaced_stateful_set`") + + + collection_formats = {} + + resource_path = '/apis/apps/v1alpha1/namespaces/{namespace}/statefulsets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1StatefulSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_apps_v1alpha1_collection_namespaced_stateful_set(self, namespace, **kwargs): + """ + + delete collection of StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_apps_v1alpha1_collection_namespaced_stateful_set(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_apps_v1alpha1_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_apps_v1alpha1_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) + return data + + def delete_apps_v1alpha1_collection_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): + """ + + delete collection of StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_apps_v1alpha1_collection_namespaced_stateful_set_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_apps_v1alpha1_collection_namespaced_stateful_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_apps_v1alpha1_collection_namespaced_stateful_set`") + + + collection_formats = {} + + resource_path = '/apis/apps/v1alpha1/namespaces/{namespace}/statefulsets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_apps_v1alpha1_namespaced_stateful_set(self, name, namespace, body, **kwargs): + """ + + delete a StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_apps_v1alpha1_namespaced_stateful_set(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StatefulSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_apps_v1alpha1_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_apps_v1alpha1_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_apps_v1alpha1_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_apps_v1alpha1_namespaced_stateful_set_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StatefulSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_apps_v1alpha1_namespaced_stateful_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_apps_v1alpha1_namespaced_stateful_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_apps_v1alpha1_namespaced_stateful_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_apps_v1alpha1_namespaced_stateful_set`") + + + collection_formats = {} + + resource_path = '/apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def get_apps_v1alpha1_api_resources(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_apps_v1alpha1_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_apps_v1alpha1_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_apps_v1alpha1_api_resources_with_http_info(**kwargs) + return data + + def get_apps_v1alpha1_api_resources_with_http_info(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_apps_v1alpha1_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_apps_v1alpha1_api_resources" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/apps/v1alpha1/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_apps_v1alpha1_namespaced_stateful_set(self, namespace, **kwargs): + """ + + list or watch objects of kind StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_apps_v1alpha1_namespaced_stateful_set(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1StatefulSetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_apps_v1alpha1_namespaced_stateful_set_with_http_info(namespace, **kwargs) + else: + (data) = self.list_apps_v1alpha1_namespaced_stateful_set_with_http_info(namespace, **kwargs) + return data + + def list_apps_v1alpha1_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_apps_v1alpha1_namespaced_stateful_set_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1StatefulSetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_apps_v1alpha1_namespaced_stateful_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_apps_v1alpha1_namespaced_stateful_set`") + + + collection_formats = {} + + resource_path = '/apis/apps/v1alpha1/namespaces/{namespace}/statefulsets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1StatefulSetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_apps_v1alpha1_stateful_set_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_apps_v1alpha1_stateful_set_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1StatefulSetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_apps_v1alpha1_stateful_set_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_apps_v1alpha1_stateful_set_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_apps_v1alpha1_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_apps_v1alpha1_stateful_set_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1StatefulSetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_apps_v1alpha1_stateful_set_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/apps/v1alpha1/statefulsets'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1StatefulSetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_apps_v1alpha1_namespaced_stateful_set(self, name, namespace, body, **kwargs): + """ + + partially update the specified StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_apps_v1alpha1_namespaced_stateful_set(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StatefulSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1StatefulSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_apps_v1alpha1_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_apps_v1alpha1_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_apps_v1alpha1_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_apps_v1alpha1_namespaced_stateful_set_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StatefulSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1StatefulSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_apps_v1alpha1_namespaced_stateful_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_apps_v1alpha1_namespaced_stateful_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_apps_v1alpha1_namespaced_stateful_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_apps_v1alpha1_namespaced_stateful_set`") + + + collection_formats = {} + + resource_path = '/apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1StatefulSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_apps_v1alpha1_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_apps_v1alpha1_namespaced_stateful_set_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StatefulSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1StatefulSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_apps_v1alpha1_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_apps_v1alpha1_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_apps_v1alpha1_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_apps_v1alpha1_namespaced_stateful_set_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StatefulSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1StatefulSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_apps_v1alpha1_namespaced_stateful_set_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_apps_v1alpha1_namespaced_stateful_set_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_apps_v1alpha1_namespaced_stateful_set_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_apps_v1alpha1_namespaced_stateful_set_status`") + + + collection_formats = {} + + resource_path = '/apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1StatefulSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_apps_v1alpha1_namespaced_stateful_set(self, name, namespace, **kwargs): + """ + + read the specified StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_apps_v1alpha1_namespaced_stateful_set(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StatefulSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1StatefulSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_apps_v1alpha1_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_apps_v1alpha1_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + return data + + def read_apps_v1alpha1_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_apps_v1alpha1_namespaced_stateful_set_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StatefulSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1StatefulSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_apps_v1alpha1_namespaced_stateful_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_apps_v1alpha1_namespaced_stateful_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_apps_v1alpha1_namespaced_stateful_set`") + + + collection_formats = {} + + resource_path = '/apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1StatefulSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_apps_v1alpha1_namespaced_stateful_set_status(self, name, namespace, **kwargs): + """ + + read status of the specified StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_apps_v1alpha1_namespaced_stateful_set_status(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StatefulSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1StatefulSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_apps_v1alpha1_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_apps_v1alpha1_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) + return data + + def read_apps_v1alpha1_namespaced_stateful_set_status_with_http_info(self, name, namespace, **kwargs): + """ + + read status of the specified StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_apps_v1alpha1_namespaced_stateful_set_status_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StatefulSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1StatefulSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_apps_v1alpha1_namespaced_stateful_set_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_apps_v1alpha1_namespaced_stateful_set_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_apps_v1alpha1_namespaced_stateful_set_status`") + + + collection_formats = {} + + resource_path = '/apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1StatefulSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_apps_v1alpha1_namespaced_stateful_set(self, name, namespace, body, **kwargs): + """ + + replace the specified StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_apps_v1alpha1_namespaced_stateful_set(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StatefulSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1StatefulSet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1StatefulSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_apps_v1alpha1_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_apps_v1alpha1_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_apps_v1alpha1_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_apps_v1alpha1_namespaced_stateful_set_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StatefulSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1StatefulSet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1StatefulSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_apps_v1alpha1_namespaced_stateful_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_apps_v1alpha1_namespaced_stateful_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_apps_v1alpha1_namespaced_stateful_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_apps_v1alpha1_namespaced_stateful_set`") + + + collection_formats = {} + + resource_path = '/apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1StatefulSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_apps_v1alpha1_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): + """ + + replace status of the specified StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_apps_v1alpha1_namespaced_stateful_set_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StatefulSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1StatefulSet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1StatefulSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_apps_v1alpha1_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_apps_v1alpha1_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_apps_v1alpha1_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace status of the specified StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_apps_v1alpha1_namespaced_stateful_set_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StatefulSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1StatefulSet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1StatefulSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_apps_v1alpha1_namespaced_stateful_set_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_apps_v1alpha1_namespaced_stateful_set_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_apps_v1alpha1_namespaced_stateful_set_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_apps_v1alpha1_namespaced_stateful_set_status`") + + + collection_formats = {} + + resource_path = '/apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1StatefulSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_apps_v1alpha1_namespaced_stateful_set(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_apps_v1alpha1_namespaced_stateful_set(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StatefulSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_apps_v1alpha1_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_apps_v1alpha1_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + return data + + def watch_apps_v1alpha1_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_apps_v1alpha1_namespaced_stateful_set_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StatefulSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_apps_v1alpha1_namespaced_stateful_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_apps_v1alpha1_namespaced_stateful_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_apps_v1alpha1_namespaced_stateful_set`") + + + collection_formats = {} + + resource_path = '/apis/apps/v1alpha1/watch/namespaces/{namespace}/statefulsets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_apps_v1alpha1_namespaced_stateful_set_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_apps_v1alpha1_namespaced_stateful_set_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_apps_v1alpha1_namespaced_stateful_set_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_apps_v1alpha1_namespaced_stateful_set_list_with_http_info(namespace, **kwargs) + return data + + def watch_apps_v1alpha1_namespaced_stateful_set_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_apps_v1alpha1_namespaced_stateful_set_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_apps_v1alpha1_namespaced_stateful_set_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_apps_v1alpha1_namespaced_stateful_set_list`") + + + collection_formats = {} + + resource_path = '/apis/apps/v1alpha1/watch/namespaces/{namespace}/statefulsets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_apps_v1alpha1_stateful_set_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_apps_v1alpha1_stateful_set_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_apps_v1alpha1_stateful_set_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_apps_v1alpha1_stateful_set_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_apps_v1alpha1_stateful_set_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of StatefulSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_apps_v1alpha1_stateful_set_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_apps_v1alpha1_stateful_set_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/apps/v1alpha1/watch/statefulsets'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/authentication_api.py b/k8sclient/apis/authentication_api.py new file mode 100644 index 000000000..9a8c35da3 --- /dev/null +++ b/k8sclient/apis/authentication_api.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class AuthenticationApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_authentication_api_group(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_authentication_api_group(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_authentication_api_group_with_http_info(**kwargs) + else: + (data) = self.get_authentication_api_group_with_http_info(**kwargs) + return data + + def get_authentication_api_group_with_http_info(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_authentication_api_group_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_authentication_api_group" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/authentication.k8s.io/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIGroup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/authentication_v1beta1_api.py b/k8sclient/apis/authentication_v1beta1_api.py new file mode 100644 index 000000000..1f09bf4ca --- /dev/null +++ b/k8sclient/apis/authentication_v1beta1_api.py @@ -0,0 +1,265 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class AuthenticationV1beta1Api(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_authentication_v1beta1_token_review(self, body, **kwargs): + """ + + create a TokenReview + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_authentication_v1beta1_token_review(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1TokenReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1TokenReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_authentication_v1beta1_token_review_with_http_info(body, **kwargs) + else: + (data) = self.create_authentication_v1beta1_token_review_with_http_info(body, **kwargs) + return data + + def create_authentication_v1beta1_token_review_with_http_info(self, body, **kwargs): + """ + + create a TokenReview + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_authentication_v1beta1_token_review_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1TokenReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1TokenReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_authentication_v1beta1_token_review" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_authentication_v1beta1_token_review`") + + + collection_formats = {} + + resource_path = '/apis/authentication.k8s.io/v1beta1/tokenreviews'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1TokenReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def get_authentication_v1beta1_api_resources(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_authentication_v1beta1_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_authentication_v1beta1_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_authentication_v1beta1_api_resources_with_http_info(**kwargs) + return data + + def get_authentication_v1beta1_api_resources_with_http_info(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_authentication_v1beta1_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_authentication_v1beta1_api_resources" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/authentication.k8s.io/v1beta1/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/authorization_api.py b/k8sclient/apis/authorization_api.py new file mode 100644 index 000000000..68af011c4 --- /dev/null +++ b/k8sclient/apis/authorization_api.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class AuthorizationApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_authorization_api_group(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_authorization_api_group(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_authorization_api_group_with_http_info(**kwargs) + else: + (data) = self.get_authorization_api_group_with_http_info(**kwargs) + return data + + def get_authorization_api_group_with_http_info(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_authorization_api_group_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_authorization_api_group" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/authorization.k8s.io/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIGroup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/authorization_v1beta1_api.py b/k8sclient/apis/authorization_v1beta1_api.py new file mode 100644 index 000000000..b03b57732 --- /dev/null +++ b/k8sclient/apis/authorization_v1beta1_api.py @@ -0,0 +1,496 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class AuthorizationV1beta1Api(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_authorization_v1beta1_namespaced_local_subject_access_review(self, body, namespace, **kwargs): + """ + + create a LocalSubjectAccessReview + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_authorization_v1beta1_namespaced_local_subject_access_review(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1LocalSubjectAccessReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1LocalSubjectAccessReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_authorization_v1beta1_namespaced_local_subject_access_review_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_authorization_v1beta1_namespaced_local_subject_access_review_with_http_info(body, namespace, **kwargs) + return data + + def create_authorization_v1beta1_namespaced_local_subject_access_review_with_http_info(self, body, namespace, **kwargs): + """ + + create a LocalSubjectAccessReview + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_authorization_v1beta1_namespaced_local_subject_access_review_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1LocalSubjectAccessReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1LocalSubjectAccessReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_authorization_v1beta1_namespaced_local_subject_access_review" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_authorization_v1beta1_namespaced_local_subject_access_review`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_authorization_v1beta1_namespaced_local_subject_access_review`") + + + collection_formats = {} + + resource_path = '/apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1LocalSubjectAccessReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_authorization_v1beta1_self_subject_access_review(self, body, **kwargs): + """ + + create a SelfSubjectAccessReview + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_authorization_v1beta1_self_subject_access_review(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1SelfSubjectAccessReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1SelfSubjectAccessReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_authorization_v1beta1_self_subject_access_review_with_http_info(body, **kwargs) + else: + (data) = self.create_authorization_v1beta1_self_subject_access_review_with_http_info(body, **kwargs) + return data + + def create_authorization_v1beta1_self_subject_access_review_with_http_info(self, body, **kwargs): + """ + + create a SelfSubjectAccessReview + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_authorization_v1beta1_self_subject_access_review_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1SelfSubjectAccessReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1SelfSubjectAccessReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_authorization_v1beta1_self_subject_access_review" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_authorization_v1beta1_self_subject_access_review`") + + + collection_formats = {} + + resource_path = '/apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1SelfSubjectAccessReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_authorization_v1beta1_subject_access_review(self, body, **kwargs): + """ + + create a SubjectAccessReview + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_authorization_v1beta1_subject_access_review(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1SubjectAccessReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1SubjectAccessReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_authorization_v1beta1_subject_access_review_with_http_info(body, **kwargs) + else: + (data) = self.create_authorization_v1beta1_subject_access_review_with_http_info(body, **kwargs) + return data + + def create_authorization_v1beta1_subject_access_review_with_http_info(self, body, **kwargs): + """ + + create a SubjectAccessReview + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_authorization_v1beta1_subject_access_review_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1SubjectAccessReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1SubjectAccessReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_authorization_v1beta1_subject_access_review" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_authorization_v1beta1_subject_access_review`") + + + collection_formats = {} + + resource_path = '/apis/authorization.k8s.io/v1beta1/subjectaccessreviews'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1SubjectAccessReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def get_authorization_v1beta1_api_resources(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_authorization_v1beta1_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_authorization_v1beta1_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_authorization_v1beta1_api_resources_with_http_info(**kwargs) + return data + + def get_authorization_v1beta1_api_resources_with_http_info(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_authorization_v1beta1_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_authorization_v1beta1_api_resources" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/authorization.k8s.io/v1beta1/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/autoscaling_api.py b/k8sclient/apis/autoscaling_api.py new file mode 100644 index 000000000..691a1cdd4 --- /dev/null +++ b/k8sclient/apis/autoscaling_api.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class AutoscalingApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_autoscaling_api_group(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_autoscaling_api_group(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_autoscaling_api_group_with_http_info(**kwargs) + else: + (data) = self.get_autoscaling_api_group_with_http_info(**kwargs) + return data + + def get_autoscaling_api_group_with_http_info(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_autoscaling_api_group_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_autoscaling_api_group" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/autoscaling/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIGroup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/autoscaling_v1_api.py b/k8sclient/apis/autoscaling_v1_api.py new file mode 100644 index 000000000..246248764 --- /dev/null +++ b/k8sclient/apis/autoscaling_v1_api.py @@ -0,0 +1,1933 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class AutoscalingV1Api(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_autoscaling_v1_namespaced_horizontal_pod_autoscaler(self, namespace, body, **kwargs): + """ + + create a HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_autoscaling_v1_namespaced_horizontal_pod_autoscaler(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) + return data + + def create_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, body, **kwargs): + """ + + create a HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_autoscaling_v1_namespaced_horizontal_pod_autoscaler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_autoscaling_v1_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_autoscaling_v1_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_autoscaling_v1_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): + """ + + delete collection of HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_autoscaling_v1_collection_namespaced_horizontal_pod_autoscaler(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_autoscaling_v1_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_autoscaling_v1_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + return data + + def delete_autoscaling_v1_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): + """ + + delete collection of HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_autoscaling_v1_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_autoscaling_v1_collection_namespaced_horizontal_pod_autoscaler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_autoscaling_v1_collection_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): + """ + + delete a HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def get_autoscaling_v1_api_resources(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_autoscaling_v1_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_autoscaling_v1_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_autoscaling_v1_api_resources_with_http_info(**kwargs) + return data + + def get_autoscaling_v1_api_resources_with_http_info(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_autoscaling_v1_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_autoscaling_v1_api_resources" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v1/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_autoscaling_v1_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_autoscaling_v1_horizontal_pod_autoscaler_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1HorizontalPodAutoscalerList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_autoscaling_v1_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_autoscaling_v1_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_autoscaling_v1_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_autoscaling_v1_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1HorizontalPodAutoscalerList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_autoscaling_v1_horizontal_pod_autoscaler_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v1/horizontalpodautoscalers'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscalerList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_autoscaling_v1_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): + """ + + list or watch objects of kind HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_autoscaling_v1_namespaced_horizontal_pod_autoscaler(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1HorizontalPodAutoscalerList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + else: + (data) = self.list_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + return data + + def list_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1HorizontalPodAutoscalerList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_autoscaling_v1_namespaced_horizontal_pod_autoscaler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_autoscaling_v1_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscalerList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): + """ + + partially update the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_autoscaling_v1_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): + """ + + read the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_autoscaling_v1_namespaced_horizontal_pod_autoscaler(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + return data + + def read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_autoscaling_v1_namespaced_horizontal_pod_autoscaler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_autoscaling_v1_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_autoscaling_v1_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, **kwargs): + """ + + read status of the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) + return data + + def read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, **kwargs): + """ + + read status of the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): + """ + + replace the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): + """ + + replace status of the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace status of the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_autoscaling_v1_horizontal_pod_autoscaler_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_autoscaling_v1_horizontal_pod_autoscaler_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_autoscaling_v1_horizontal_pod_autoscaler_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_autoscaling_v1_horizontal_pod_autoscaler_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_autoscaling_v1_horizontal_pod_autoscaler_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_autoscaling_v1_horizontal_pod_autoscaler_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_autoscaling_v1_horizontal_pod_autoscaler_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v1/watch/horizontalpodautoscalers'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + return data + + def watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_list_with_http_info(namespace, **kwargs) + return data + + def watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_list`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/batch_api.py b/k8sclient/apis/batch_api.py new file mode 100644 index 000000000..0930d9e84 --- /dev/null +++ b/k8sclient/apis/batch_api.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class BatchApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_batch_api_group(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_batch_api_group(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_batch_api_group_with_http_info(**kwargs) + else: + (data) = self.get_batch_api_group_with_http_info(**kwargs) + return data + + def get_batch_api_group_with_http_info(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_batch_api_group_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_batch_api_group" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/batch/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIGroup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/batch_v1_api.py b/k8sclient/apis/batch_v1_api.py new file mode 100644 index 000000000..a5597a448 --- /dev/null +++ b/k8sclient/apis/batch_v1_api.py @@ -0,0 +1,1933 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class BatchV1Api(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_batch_v1_namespaced_job(self, namespace, body, **kwargs): + """ + + create a Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_batch_v1_namespaced_job(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Job body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Job + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_batch_v1_namespaced_job_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_batch_v1_namespaced_job_with_http_info(namespace, body, **kwargs) + return data + + def create_batch_v1_namespaced_job_with_http_info(self, namespace, body, **kwargs): + """ + + create a Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_batch_v1_namespaced_job_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Job body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Job + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_batch_v1_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_batch_v1_namespaced_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_batch_v1_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/batch/v1/namespaces/{namespace}/jobs'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Job', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_batch_v1_collection_namespaced_job(self, namespace, **kwargs): + """ + + delete collection of Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_batch_v1_collection_namespaced_job(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_batch_v1_collection_namespaced_job_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_batch_v1_collection_namespaced_job_with_http_info(namespace, **kwargs) + return data + + def delete_batch_v1_collection_namespaced_job_with_http_info(self, namespace, **kwargs): + """ + + delete collection of Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_batch_v1_collection_namespaced_job_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_batch_v1_collection_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_batch_v1_collection_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/batch/v1/namespaces/{namespace}/jobs'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_batch_v1_namespaced_job(self, name, namespace, body, **kwargs): + """ + + delete a Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_batch_v1_namespaced_job(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_batch_v1_namespaced_job_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_batch_v1_namespaced_job_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_batch_v1_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_batch_v1_namespaced_job_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_batch_v1_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_batch_v1_namespaced_job`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_batch_v1_namespaced_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_batch_v1_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def get_batch_v1_api_resources(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_batch_v1_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_batch_v1_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_batch_v1_api_resources_with_http_info(**kwargs) + return data + + def get_batch_v1_api_resources_with_http_info(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_batch_v1_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_batch_v1_api_resources" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/batch/v1/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_batch_v1_job_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_batch_v1_job_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1JobList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_batch_v1_job_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_batch_v1_job_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_batch_v1_job_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_batch_v1_job_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1JobList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_batch_v1_job_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/batch/v1/jobs'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1JobList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_batch_v1_namespaced_job(self, namespace, **kwargs): + """ + + list or watch objects of kind Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_batch_v1_namespaced_job(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1JobList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_batch_v1_namespaced_job_with_http_info(namespace, **kwargs) + else: + (data) = self.list_batch_v1_namespaced_job_with_http_info(namespace, **kwargs) + return data + + def list_batch_v1_namespaced_job_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_batch_v1_namespaced_job_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1JobList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_batch_v1_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_batch_v1_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/batch/v1/namespaces/{namespace}/jobs'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1JobList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_batch_v1_namespaced_job(self, name, namespace, body, **kwargs): + """ + + partially update the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_batch_v1_namespaced_job(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Job + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_batch_v1_namespaced_job_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_batch_v1_namespaced_job_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_batch_v1_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_batch_v1_namespaced_job_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Job + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_batch_v1_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_batch_v1_namespaced_job`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_batch_v1_namespaced_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_batch_v1_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Job', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_batch_v1_namespaced_job_status(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_batch_v1_namespaced_job_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Job + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_batch_v1_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_batch_v1_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_batch_v1_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_batch_v1_namespaced_job_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Job + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_batch_v1_namespaced_job_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_batch_v1_namespaced_job_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_batch_v1_namespaced_job_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_batch_v1_namespaced_job_status`") + + + collection_formats = {} + + resource_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Job', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_batch_v1_namespaced_job(self, name, namespace, **kwargs): + """ + + read the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_batch_v1_namespaced_job(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Job + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_batch_v1_namespaced_job_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_batch_v1_namespaced_job_with_http_info(name, namespace, **kwargs) + return data + + def read_batch_v1_namespaced_job_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_batch_v1_namespaced_job_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Job + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_batch_v1_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_batch_v1_namespaced_job`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_batch_v1_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Job', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_batch_v1_namespaced_job_status(self, name, namespace, **kwargs): + """ + + read status of the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_batch_v1_namespaced_job_status(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Job + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_batch_v1_namespaced_job_status_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_batch_v1_namespaced_job_status_with_http_info(name, namespace, **kwargs) + return data + + def read_batch_v1_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): + """ + + read status of the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_batch_v1_namespaced_job_status_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Job + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_batch_v1_namespaced_job_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_batch_v1_namespaced_job_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_batch_v1_namespaced_job_status`") + + + collection_formats = {} + + resource_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Job', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_batch_v1_namespaced_job(self, name, namespace, body, **kwargs): + """ + + replace the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_batch_v1_namespaced_job(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Job body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Job + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_batch_v1_namespaced_job_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_batch_v1_namespaced_job_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_batch_v1_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_batch_v1_namespaced_job_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Job body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Job + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_batch_v1_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_batch_v1_namespaced_job`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_batch_v1_namespaced_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_batch_v1_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Job', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_batch_v1_namespaced_job_status(self, name, namespace, body, **kwargs): + """ + + replace status of the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_batch_v1_namespaced_job_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Job body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Job + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_batch_v1_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_batch_v1_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_batch_v1_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace status of the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_batch_v1_namespaced_job_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Job body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Job + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_batch_v1_namespaced_job_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_batch_v1_namespaced_job_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_batch_v1_namespaced_job_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_batch_v1_namespaced_job_status`") + + + collection_formats = {} + + resource_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Job', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_batch_v1_job_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_batch_v1_job_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_batch_v1_job_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_batch_v1_job_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_batch_v1_job_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_batch_v1_job_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_batch_v1_job_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/batch/v1/watch/jobs'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_batch_v1_namespaced_job(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_batch_v1_namespaced_job(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_batch_v1_namespaced_job_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_batch_v1_namespaced_job_with_http_info(name, namespace, **kwargs) + return data + + def watch_batch_v1_namespaced_job_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_batch_v1_namespaced_job_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_batch_v1_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_batch_v1_namespaced_job`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_batch_v1_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_batch_v1_namespaced_job_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_batch_v1_namespaced_job_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_batch_v1_namespaced_job_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_batch_v1_namespaced_job_list_with_http_info(namespace, **kwargs) + return data + + def watch_batch_v1_namespaced_job_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_batch_v1_namespaced_job_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_batch_v1_namespaced_job_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_batch_v1_namespaced_job_list`") + + + collection_formats = {} + + resource_path = '/apis/batch/v1/watch/namespaces/{namespace}/jobs'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/batch_v2alpha1_api.py b/k8sclient/apis/batch_v2alpha1_api.py new file mode 100644 index 000000000..1bd3fcf45 --- /dev/null +++ b/k8sclient/apis/batch_v2alpha1_api.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class BatchV2alpha1Api(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_batch_v2alpha1_api_resources(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_batch_v2alpha1_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_batch_v2alpha1_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_batch_v2alpha1_api_resources_with_http_info(**kwargs) + return data + + def get_batch_v2alpha1_api_resources_with_http_info(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_batch_v2alpha1_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_batch_v2alpha1_api_resources" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/batch/v2alpha1/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/certificates_api.py b/k8sclient/apis/certificates_api.py new file mode 100644 index 000000000..e34d268ac --- /dev/null +++ b/k8sclient/apis/certificates_api.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class CertificatesApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_certificates_api_group(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_certificates_api_group(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_certificates_api_group_with_http_info(**kwargs) + else: + (data) = self.get_certificates_api_group_with_http_info(**kwargs) + return data + + def get_certificates_api_group_with_http_info(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_certificates_api_group_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_certificates_api_group" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIGroup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/certificates_v1alpha1_api.py b/k8sclient/apis/certificates_v1alpha1_api.py new file mode 100644 index 000000000..0346c30fb --- /dev/null +++ b/k8sclient/apis/certificates_v1alpha1_api.py @@ -0,0 +1,1487 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class CertificatesV1alpha1Api(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_certificates_v1alpha1_certificate_signing_request(self, body, **kwargs): + """ + + create a CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_certificates_v1alpha1_certificate_signing_request(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1CertificateSigningRequest body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_certificates_v1alpha1_certificate_signing_request_with_http_info(body, **kwargs) + else: + (data) = self.create_certificates_v1alpha1_certificate_signing_request_with_http_info(body, **kwargs) + return data + + def create_certificates_v1alpha1_certificate_signing_request_with_http_info(self, body, **kwargs): + """ + + create a CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_certificates_v1alpha1_certificate_signing_request_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1CertificateSigningRequest body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_certificates_v1alpha1_certificate_signing_request" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_certificates_v1alpha1_certificate_signing_request`") + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1CertificateSigningRequest', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_certificates_v1alpha1_certificate_signing_request(self, name, body, **kwargs): + """ + + delete a CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_certificates_v1alpha1_certificate_signing_request(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CertificateSigningRequest (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_certificates_v1alpha1_certificate_signing_request_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_certificates_v1alpha1_certificate_signing_request_with_http_info(name, body, **kwargs) + return data + + def delete_certificates_v1alpha1_certificate_signing_request_with_http_info(self, name, body, **kwargs): + """ + + delete a CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_certificates_v1alpha1_certificate_signing_request_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CertificateSigningRequest (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_certificates_v1alpha1_certificate_signing_request" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_certificates_v1alpha1_certificate_signing_request`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_certificates_v1alpha1_certificate_signing_request`") + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_certificates_v1alpha1_collection_certificate_signing_request(self, **kwargs): + """ + + delete collection of CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_certificates_v1alpha1_collection_certificate_signing_request(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_certificates_v1alpha1_collection_certificate_signing_request_with_http_info(**kwargs) + else: + (data) = self.delete_certificates_v1alpha1_collection_certificate_signing_request_with_http_info(**kwargs) + return data + + def delete_certificates_v1alpha1_collection_certificate_signing_request_with_http_info(self, **kwargs): + """ + + delete collection of CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_certificates_v1alpha1_collection_certificate_signing_request_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_certificates_v1alpha1_collection_certificate_signing_request" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def get_certificates_v1alpha1_api_resources(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_certificates_v1alpha1_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_certificates_v1alpha1_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_certificates_v1alpha1_api_resources_with_http_info(**kwargs) + return data + + def get_certificates_v1alpha1_api_resources_with_http_info(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_certificates_v1alpha1_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_certificates_v1alpha1_api_resources" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_certificates_v1alpha1_certificate_signing_request(self, **kwargs): + """ + + list or watch objects of kind CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_certificates_v1alpha1_certificate_signing_request(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1CertificateSigningRequestList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_certificates_v1alpha1_certificate_signing_request_with_http_info(**kwargs) + else: + (data) = self.list_certificates_v1alpha1_certificate_signing_request_with_http_info(**kwargs) + return data + + def list_certificates_v1alpha1_certificate_signing_request_with_http_info(self, **kwargs): + """ + + list or watch objects of kind CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_certificates_v1alpha1_certificate_signing_request_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1CertificateSigningRequestList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_certificates_v1alpha1_certificate_signing_request" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1CertificateSigningRequestList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_certificates_v1alpha1_certificate_signing_request(self, name, body, **kwargs): + """ + + partially update the specified CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_certificates_v1alpha1_certificate_signing_request(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CertificateSigningRequest (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_certificates_v1alpha1_certificate_signing_request_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_certificates_v1alpha1_certificate_signing_request_with_http_info(name, body, **kwargs) + return data + + def patch_certificates_v1alpha1_certificate_signing_request_with_http_info(self, name, body, **kwargs): + """ + + partially update the specified CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_certificates_v1alpha1_certificate_signing_request_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CertificateSigningRequest (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_certificates_v1alpha1_certificate_signing_request" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_certificates_v1alpha1_certificate_signing_request`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_certificates_v1alpha1_certificate_signing_request`") + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1CertificateSigningRequest', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_certificates_v1alpha1_certificate_signing_request(self, name, **kwargs): + """ + + read the specified CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_certificates_v1alpha1_certificate_signing_request(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CertificateSigningRequest (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_certificates_v1alpha1_certificate_signing_request_with_http_info(name, **kwargs) + else: + (data) = self.read_certificates_v1alpha1_certificate_signing_request_with_http_info(name, **kwargs) + return data + + def read_certificates_v1alpha1_certificate_signing_request_with_http_info(self, name, **kwargs): + """ + + read the specified CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_certificates_v1alpha1_certificate_signing_request_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CertificateSigningRequest (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_certificates_v1alpha1_certificate_signing_request" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_certificates_v1alpha1_certificate_signing_request`") + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1CertificateSigningRequest', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_certificates_v1alpha1_certificate_signing_request(self, name, body, **kwargs): + """ + + replace the specified CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_certificates_v1alpha1_certificate_signing_request(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CertificateSigningRequest (required) + :param V1alpha1CertificateSigningRequest body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_certificates_v1alpha1_certificate_signing_request_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_certificates_v1alpha1_certificate_signing_request_with_http_info(name, body, **kwargs) + return data + + def replace_certificates_v1alpha1_certificate_signing_request_with_http_info(self, name, body, **kwargs): + """ + + replace the specified CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_certificates_v1alpha1_certificate_signing_request_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CertificateSigningRequest (required) + :param V1alpha1CertificateSigningRequest body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_certificates_v1alpha1_certificate_signing_request" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_certificates_v1alpha1_certificate_signing_request`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_certificates_v1alpha1_certificate_signing_request`") + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1CertificateSigningRequest', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_certificates_v1alpha1_certificate_signing_request_approval(self, body, name, **kwargs): + """ + + replace approval of the specified CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_certificates_v1alpha1_certificate_signing_request_approval(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1CertificateSigningRequest body: (required) + :param str name: name of the CertificateSigningRequest (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_certificates_v1alpha1_certificate_signing_request_approval_with_http_info(body, name, **kwargs) + else: + (data) = self.replace_certificates_v1alpha1_certificate_signing_request_approval_with_http_info(body, name, **kwargs) + return data + + def replace_certificates_v1alpha1_certificate_signing_request_approval_with_http_info(self, body, name, **kwargs): + """ + + replace approval of the specified CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_certificates_v1alpha1_certificate_signing_request_approval_with_http_info(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1CertificateSigningRequest body: (required) + :param str name: name of the CertificateSigningRequest (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_certificates_v1alpha1_certificate_signing_request_approval" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_certificates_v1alpha1_certificate_signing_request_approval`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_certificates_v1alpha1_certificate_signing_request_approval`") + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/approval'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1CertificateSigningRequest', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_certificates_v1alpha1_certificate_signing_request_status(self, body, name, **kwargs): + """ + + replace status of the specified CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_certificates_v1alpha1_certificate_signing_request_status(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1CertificateSigningRequest body: (required) + :param str name: name of the CertificateSigningRequest (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_certificates_v1alpha1_certificate_signing_request_status_with_http_info(body, name, **kwargs) + else: + (data) = self.replace_certificates_v1alpha1_certificate_signing_request_status_with_http_info(body, name, **kwargs) + return data + + def replace_certificates_v1alpha1_certificate_signing_request_status_with_http_info(self, body, name, **kwargs): + """ + + replace status of the specified CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_certificates_v1alpha1_certificate_signing_request_status_with_http_info(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1CertificateSigningRequest body: (required) + :param str name: name of the CertificateSigningRequest (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_certificates_v1alpha1_certificate_signing_request_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_certificates_v1alpha1_certificate_signing_request_status`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_certificates_v1alpha1_certificate_signing_request_status`") + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1CertificateSigningRequest', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_certificates_v1alpha1_certificate_signing_request(self, name, **kwargs): + """ + + watch changes to an object of kind CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_certificates_v1alpha1_certificate_signing_request(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CertificateSigningRequest (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_certificates_v1alpha1_certificate_signing_request_with_http_info(name, **kwargs) + else: + (data) = self.watch_certificates_v1alpha1_certificate_signing_request_with_http_info(name, **kwargs) + return data + + def watch_certificates_v1alpha1_certificate_signing_request_with_http_info(self, name, **kwargs): + """ + + watch changes to an object of kind CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_certificates_v1alpha1_certificate_signing_request_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CertificateSigningRequest (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_certificates_v1alpha1_certificate_signing_request" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_certificates_v1alpha1_certificate_signing_request`") + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/watch/certificatesigningrequests/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_certificates_v1alpha1_certificate_signing_request_list(self, **kwargs): + """ + + watch individual changes to a list of CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_certificates_v1alpha1_certificate_signing_request_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_certificates_v1alpha1_certificate_signing_request_list_with_http_info(**kwargs) + else: + (data) = self.watch_certificates_v1alpha1_certificate_signing_request_list_with_http_info(**kwargs) + return data + + def watch_certificates_v1alpha1_certificate_signing_request_list_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of CertificateSigningRequest + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_certificates_v1alpha1_certificate_signing_request_list_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_certificates_v1alpha1_certificate_signing_request_list" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/watch/certificatesigningrequests'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/core_api.py b/k8sclient/apis/core_api.py new file mode 100644 index 000000000..d573083ac --- /dev/null +++ b/k8sclient/apis/core_api.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class CoreApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_core_api_versions(self, **kwargs): + """ + + get available API versions + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_core_api_versions(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIVersions + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_core_api_versions_with_http_info(**kwargs) + else: + (data) = self.get_core_api_versions_with_http_info(**kwargs) + return data + + def get_core_api_versions_with_http_info(self, **kwargs): + """ + + get available API versions + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_core_api_versions_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIVersions + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_core_api_versions" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIVersions', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/core_v1_api.py b/k8sclient/apis/core_v1_api.py new file mode 100644 index 000000000..af6c8f658 --- /dev/null +++ b/k8sclient/apis/core_v1_api.py @@ -0,0 +1,33650 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class CoreV1Api(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def connect_core_v1_delete_namespaced_pod_proxy(self, name, namespace, **kwargs): + """ + + connect DELETE requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_delete_namespaced_pod_proxy(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_delete_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_core_v1_delete_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + return data + + def connect_core_v1_delete_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): + """ + + connect DELETE requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_delete_namespaced_pod_proxy_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_delete_namespaced_pod_proxy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_delete_namespaced_pod_proxy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_delete_namespaced_pod_proxy`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_delete_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): + """ + + connect DELETE requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_delete_namespaced_pod_proxy_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_delete_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.connect_core_v1_delete_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def connect_core_v1_delete_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + connect DELETE requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_delete_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_delete_namespaced_pod_proxy_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_delete_namespaced_pod_proxy_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_delete_namespaced_pod_proxy_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_core_v1_delete_namespaced_pod_proxy_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_delete_namespaced_service_proxy(self, name, namespace, **kwargs): + """ + + connect DELETE requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_delete_namespaced_service_proxy(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_delete_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_core_v1_delete_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + return data + + def connect_core_v1_delete_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): + """ + + connect DELETE requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_delete_namespaced_service_proxy_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_delete_namespaced_service_proxy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_delete_namespaced_service_proxy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_delete_namespaced_service_proxy`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_delete_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): + """ + + connect DELETE requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_delete_namespaced_service_proxy_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_delete_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.connect_core_v1_delete_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def connect_core_v1_delete_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + connect DELETE requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_delete_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_delete_namespaced_service_proxy_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_delete_namespaced_service_proxy_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_delete_namespaced_service_proxy_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_core_v1_delete_namespaced_service_proxy_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_delete_node_proxy(self, name, **kwargs): + """ + + connect DELETE requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_delete_node_proxy(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_delete_node_proxy_with_http_info(name, **kwargs) + else: + (data) = self.connect_core_v1_delete_node_proxy_with_http_info(name, **kwargs) + return data + + def connect_core_v1_delete_node_proxy_with_http_info(self, name, **kwargs): + """ + + connect DELETE requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_delete_node_proxy_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_delete_node_proxy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_delete_node_proxy`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}/proxy'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_delete_node_proxy_with_path(self, name, path, **kwargs): + """ + + connect DELETE requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_delete_node_proxy_with_path(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_delete_node_proxy_with_path_with_http_info(name, path, **kwargs) + else: + (data) = self.connect_core_v1_delete_node_proxy_with_path_with_http_info(name, path, **kwargs) + return data + + def connect_core_v1_delete_node_proxy_with_path_with_http_info(self, name, path, **kwargs): + """ + + connect DELETE requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_delete_node_proxy_with_path_with_http_info(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_delete_node_proxy_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_delete_node_proxy_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_core_v1_delete_node_proxy_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}/proxy/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_get_namespaced_pod_attach(self, name, namespace, **kwargs): + """ + + connect GET requests to attach of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_get_namespaced_pod_attach(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str container: The container in which to execute the command. Defaults to only container if there is only one container in the pod. + :param bool stderr: Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. + :param bool stdin: Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. + :param bool stdout: Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. + :param bool tty: TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_get_namespaced_pod_attach_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_core_v1_get_namespaced_pod_attach_with_http_info(name, namespace, **kwargs) + return data + + def connect_core_v1_get_namespaced_pod_attach_with_http_info(self, name, namespace, **kwargs): + """ + + connect GET requests to attach of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_get_namespaced_pod_attach_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str container: The container in which to execute the command. Defaults to only container if there is only one container in the pod. + :param bool stderr: Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. + :param bool stdin: Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. + :param bool stdout: Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. + :param bool tty: TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'container', 'stderr', 'stdin', 'stdout', 'tty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_get_namespaced_pod_attach" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_get_namespaced_pod_attach`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_get_namespaced_pod_attach`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/attach'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'container' in params: + query_params['container'] = params['container'] + if 'stderr' in params: + query_params['stderr'] = params['stderr'] + if 'stdin' in params: + query_params['stdin'] = params['stdin'] + if 'stdout' in params: + query_params['stdout'] = params['stdout'] + if 'tty' in params: + query_params['tty'] = params['tty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_get_namespaced_pod_exec(self, name, namespace, **kwargs): + """ + + connect GET requests to exec of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_get_namespaced_pod_exec(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str command: Command is the remote command to execute. argv array. Not executed within a shell. + :param str container: Container in which to execute the command. Defaults to only container if there is only one container in the pod. + :param bool stderr: Redirect the standard error stream of the pod for this call. Defaults to true. + :param bool stdin: Redirect the standard input stream of the pod for this call. Defaults to false. + :param bool stdout: Redirect the standard output stream of the pod for this call. Defaults to true. + :param bool tty: TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_get_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_core_v1_get_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) + return data + + def connect_core_v1_get_namespaced_pod_exec_with_http_info(self, name, namespace, **kwargs): + """ + + connect GET requests to exec of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_get_namespaced_pod_exec_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str command: Command is the remote command to execute. argv array. Not executed within a shell. + :param str container: Container in which to execute the command. Defaults to only container if there is only one container in the pod. + :param bool stderr: Redirect the standard error stream of the pod for this call. Defaults to true. + :param bool stdin: Redirect the standard input stream of the pod for this call. Defaults to false. + :param bool stdout: Redirect the standard output stream of the pod for this call. Defaults to true. + :param bool tty: TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'command', 'container', 'stderr', 'stdin', 'stdout', 'tty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_get_namespaced_pod_exec" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_get_namespaced_pod_exec`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_get_namespaced_pod_exec`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/exec'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'command' in params: + query_params['command'] = params['command'] + if 'container' in params: + query_params['container'] = params['container'] + if 'stderr' in params: + query_params['stderr'] = params['stderr'] + if 'stdin' in params: + query_params['stdin'] = params['stdin'] + if 'stdout' in params: + query_params['stdout'] = params['stdout'] + if 'tty' in params: + query_params['tty'] = params['tty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_get_namespaced_pod_portforward(self, name, namespace, **kwargs): + """ + + connect GET requests to portforward of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_get_namespaced_pod_portforward(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_get_namespaced_pod_portforward_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_core_v1_get_namespaced_pod_portforward_with_http_info(name, namespace, **kwargs) + return data + + def connect_core_v1_get_namespaced_pod_portforward_with_http_info(self, name, namespace, **kwargs): + """ + + connect GET requests to portforward of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_get_namespaced_pod_portforward_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_get_namespaced_pod_portforward" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_get_namespaced_pod_portforward`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_get_namespaced_pod_portforward`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/portforward'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_get_namespaced_pod_proxy(self, name, namespace, **kwargs): + """ + + connect GET requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_get_namespaced_pod_proxy(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_get_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_core_v1_get_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + return data + + def connect_core_v1_get_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): + """ + + connect GET requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_get_namespaced_pod_proxy_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_get_namespaced_pod_proxy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_get_namespaced_pod_proxy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_get_namespaced_pod_proxy`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_get_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): + """ + + connect GET requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_get_namespaced_pod_proxy_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_get_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.connect_core_v1_get_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def connect_core_v1_get_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + connect GET requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_get_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_get_namespaced_pod_proxy_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_get_namespaced_pod_proxy_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_get_namespaced_pod_proxy_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_core_v1_get_namespaced_pod_proxy_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_get_namespaced_service_proxy(self, name, namespace, **kwargs): + """ + + connect GET requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_get_namespaced_service_proxy(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_get_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_core_v1_get_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + return data + + def connect_core_v1_get_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): + """ + + connect GET requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_get_namespaced_service_proxy_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_get_namespaced_service_proxy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_get_namespaced_service_proxy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_get_namespaced_service_proxy`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_get_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): + """ + + connect GET requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_get_namespaced_service_proxy_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_get_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.connect_core_v1_get_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def connect_core_v1_get_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + connect GET requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_get_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_get_namespaced_service_proxy_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_get_namespaced_service_proxy_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_get_namespaced_service_proxy_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_core_v1_get_namespaced_service_proxy_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_get_node_proxy(self, name, **kwargs): + """ + + connect GET requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_get_node_proxy(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_get_node_proxy_with_http_info(name, **kwargs) + else: + (data) = self.connect_core_v1_get_node_proxy_with_http_info(name, **kwargs) + return data + + def connect_core_v1_get_node_proxy_with_http_info(self, name, **kwargs): + """ + + connect GET requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_get_node_proxy_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_get_node_proxy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_get_node_proxy`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}/proxy'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_get_node_proxy_with_path(self, name, path, **kwargs): + """ + + connect GET requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_get_node_proxy_with_path(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_get_node_proxy_with_path_with_http_info(name, path, **kwargs) + else: + (data) = self.connect_core_v1_get_node_proxy_with_path_with_http_info(name, path, **kwargs) + return data + + def connect_core_v1_get_node_proxy_with_path_with_http_info(self, name, path, **kwargs): + """ + + connect GET requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_get_node_proxy_with_path_with_http_info(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_get_node_proxy_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_get_node_proxy_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_core_v1_get_node_proxy_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}/proxy/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_head_namespaced_pod_proxy(self, name, namespace, **kwargs): + """ + + connect HEAD requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_head_namespaced_pod_proxy(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_head_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_core_v1_head_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + return data + + def connect_core_v1_head_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): + """ + + connect HEAD requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_head_namespaced_pod_proxy_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_head_namespaced_pod_proxy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_head_namespaced_pod_proxy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_head_namespaced_pod_proxy`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_head_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): + """ + + connect HEAD requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_head_namespaced_pod_proxy_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_head_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.connect_core_v1_head_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def connect_core_v1_head_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + connect HEAD requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_head_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_head_namespaced_pod_proxy_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_head_namespaced_pod_proxy_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_head_namespaced_pod_proxy_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_core_v1_head_namespaced_pod_proxy_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_head_namespaced_service_proxy(self, name, namespace, **kwargs): + """ + + connect HEAD requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_head_namespaced_service_proxy(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_head_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_core_v1_head_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + return data + + def connect_core_v1_head_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): + """ + + connect HEAD requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_head_namespaced_service_proxy_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_head_namespaced_service_proxy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_head_namespaced_service_proxy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_head_namespaced_service_proxy`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_head_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): + """ + + connect HEAD requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_head_namespaced_service_proxy_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_head_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.connect_core_v1_head_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def connect_core_v1_head_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + connect HEAD requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_head_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_head_namespaced_service_proxy_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_head_namespaced_service_proxy_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_head_namespaced_service_proxy_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_core_v1_head_namespaced_service_proxy_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_head_node_proxy(self, name, **kwargs): + """ + + connect HEAD requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_head_node_proxy(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_head_node_proxy_with_http_info(name, **kwargs) + else: + (data) = self.connect_core_v1_head_node_proxy_with_http_info(name, **kwargs) + return data + + def connect_core_v1_head_node_proxy_with_http_info(self, name, **kwargs): + """ + + connect HEAD requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_head_node_proxy_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_head_node_proxy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_head_node_proxy`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}/proxy'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_head_node_proxy_with_path(self, name, path, **kwargs): + """ + + connect HEAD requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_head_node_proxy_with_path(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_head_node_proxy_with_path_with_http_info(name, path, **kwargs) + else: + (data) = self.connect_core_v1_head_node_proxy_with_path_with_http_info(name, path, **kwargs) + return data + + def connect_core_v1_head_node_proxy_with_path_with_http_info(self, name, path, **kwargs): + """ + + connect HEAD requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_head_node_proxy_with_path_with_http_info(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_head_node_proxy_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_head_node_proxy_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_core_v1_head_node_proxy_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}/proxy/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_options_namespaced_pod_proxy(self, name, namespace, **kwargs): + """ + + connect OPTIONS requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_options_namespaced_pod_proxy(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_options_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_core_v1_options_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + return data + + def connect_core_v1_options_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): + """ + + connect OPTIONS requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_options_namespaced_pod_proxy_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_options_namespaced_pod_proxy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_options_namespaced_pod_proxy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_options_namespaced_pod_proxy`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'OPTIONS', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_options_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): + """ + + connect OPTIONS requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_options_namespaced_pod_proxy_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_options_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.connect_core_v1_options_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def connect_core_v1_options_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + connect OPTIONS requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_options_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_options_namespaced_pod_proxy_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_options_namespaced_pod_proxy_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_options_namespaced_pod_proxy_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_core_v1_options_namespaced_pod_proxy_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'OPTIONS', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_options_namespaced_service_proxy(self, name, namespace, **kwargs): + """ + + connect OPTIONS requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_options_namespaced_service_proxy(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_options_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_core_v1_options_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + return data + + def connect_core_v1_options_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): + """ + + connect OPTIONS requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_options_namespaced_service_proxy_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_options_namespaced_service_proxy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_options_namespaced_service_proxy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_options_namespaced_service_proxy`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'OPTIONS', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_options_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): + """ + + connect OPTIONS requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_options_namespaced_service_proxy_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_options_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.connect_core_v1_options_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def connect_core_v1_options_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + connect OPTIONS requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_options_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_options_namespaced_service_proxy_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_options_namespaced_service_proxy_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_options_namespaced_service_proxy_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_core_v1_options_namespaced_service_proxy_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'OPTIONS', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_options_node_proxy(self, name, **kwargs): + """ + + connect OPTIONS requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_options_node_proxy(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_options_node_proxy_with_http_info(name, **kwargs) + else: + (data) = self.connect_core_v1_options_node_proxy_with_http_info(name, **kwargs) + return data + + def connect_core_v1_options_node_proxy_with_http_info(self, name, **kwargs): + """ + + connect OPTIONS requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_options_node_proxy_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_options_node_proxy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_options_node_proxy`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}/proxy'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'OPTIONS', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_options_node_proxy_with_path(self, name, path, **kwargs): + """ + + connect OPTIONS requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_options_node_proxy_with_path(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_options_node_proxy_with_path_with_http_info(name, path, **kwargs) + else: + (data) = self.connect_core_v1_options_node_proxy_with_path_with_http_info(name, path, **kwargs) + return data + + def connect_core_v1_options_node_proxy_with_path_with_http_info(self, name, path, **kwargs): + """ + + connect OPTIONS requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_options_node_proxy_with_path_with_http_info(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_options_node_proxy_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_options_node_proxy_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_core_v1_options_node_proxy_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}/proxy/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'OPTIONS', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_post_namespaced_pod_attach(self, name, namespace, **kwargs): + """ + + connect POST requests to attach of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_post_namespaced_pod_attach(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str container: The container in which to execute the command. Defaults to only container if there is only one container in the pod. + :param bool stderr: Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. + :param bool stdin: Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. + :param bool stdout: Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. + :param bool tty: TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_post_namespaced_pod_attach_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_core_v1_post_namespaced_pod_attach_with_http_info(name, namespace, **kwargs) + return data + + def connect_core_v1_post_namespaced_pod_attach_with_http_info(self, name, namespace, **kwargs): + """ + + connect POST requests to attach of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_post_namespaced_pod_attach_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str container: The container in which to execute the command. Defaults to only container if there is only one container in the pod. + :param bool stderr: Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. + :param bool stdin: Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. + :param bool stdout: Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. + :param bool tty: TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'container', 'stderr', 'stdin', 'stdout', 'tty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_post_namespaced_pod_attach" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_post_namespaced_pod_attach`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_post_namespaced_pod_attach`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/attach'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'container' in params: + query_params['container'] = params['container'] + if 'stderr' in params: + query_params['stderr'] = params['stderr'] + if 'stdin' in params: + query_params['stdin'] = params['stdin'] + if 'stdout' in params: + query_params['stdout'] = params['stdout'] + if 'tty' in params: + query_params['tty'] = params['tty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_post_namespaced_pod_exec(self, name, namespace, **kwargs): + """ + + connect POST requests to exec of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_post_namespaced_pod_exec(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str command: Command is the remote command to execute. argv array. Not executed within a shell. + :param str container: Container in which to execute the command. Defaults to only container if there is only one container in the pod. + :param bool stderr: Redirect the standard error stream of the pod for this call. Defaults to true. + :param bool stdin: Redirect the standard input stream of the pod for this call. Defaults to false. + :param bool stdout: Redirect the standard output stream of the pod for this call. Defaults to true. + :param bool tty: TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_post_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_core_v1_post_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) + return data + + def connect_core_v1_post_namespaced_pod_exec_with_http_info(self, name, namespace, **kwargs): + """ + + connect POST requests to exec of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_post_namespaced_pod_exec_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str command: Command is the remote command to execute. argv array. Not executed within a shell. + :param str container: Container in which to execute the command. Defaults to only container if there is only one container in the pod. + :param bool stderr: Redirect the standard error stream of the pod for this call. Defaults to true. + :param bool stdin: Redirect the standard input stream of the pod for this call. Defaults to false. + :param bool stdout: Redirect the standard output stream of the pod for this call. Defaults to true. + :param bool tty: TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'command', 'container', 'stderr', 'stdin', 'stdout', 'tty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_post_namespaced_pod_exec" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_post_namespaced_pod_exec`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_post_namespaced_pod_exec`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/exec'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'command' in params: + query_params['command'] = params['command'] + if 'container' in params: + query_params['container'] = params['container'] + if 'stderr' in params: + query_params['stderr'] = params['stderr'] + if 'stdin' in params: + query_params['stdin'] = params['stdin'] + if 'stdout' in params: + query_params['stdout'] = params['stdout'] + if 'tty' in params: + query_params['tty'] = params['tty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_post_namespaced_pod_portforward(self, name, namespace, **kwargs): + """ + + connect POST requests to portforward of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_post_namespaced_pod_portforward(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_post_namespaced_pod_portforward_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_core_v1_post_namespaced_pod_portforward_with_http_info(name, namespace, **kwargs) + return data + + def connect_core_v1_post_namespaced_pod_portforward_with_http_info(self, name, namespace, **kwargs): + """ + + connect POST requests to portforward of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_post_namespaced_pod_portforward_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_post_namespaced_pod_portforward" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_post_namespaced_pod_portforward`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_post_namespaced_pod_portforward`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/portforward'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_post_namespaced_pod_proxy(self, name, namespace, **kwargs): + """ + + connect POST requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_post_namespaced_pod_proxy(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_post_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_core_v1_post_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + return data + + def connect_core_v1_post_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): + """ + + connect POST requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_post_namespaced_pod_proxy_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_post_namespaced_pod_proxy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_post_namespaced_pod_proxy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_post_namespaced_pod_proxy`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_post_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): + """ + + connect POST requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_post_namespaced_pod_proxy_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_post_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.connect_core_v1_post_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def connect_core_v1_post_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + connect POST requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_post_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_post_namespaced_pod_proxy_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_post_namespaced_pod_proxy_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_post_namespaced_pod_proxy_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_core_v1_post_namespaced_pod_proxy_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_post_namespaced_service_proxy(self, name, namespace, **kwargs): + """ + + connect POST requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_post_namespaced_service_proxy(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_post_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_core_v1_post_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + return data + + def connect_core_v1_post_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): + """ + + connect POST requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_post_namespaced_service_proxy_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_post_namespaced_service_proxy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_post_namespaced_service_proxy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_post_namespaced_service_proxy`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_post_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): + """ + + connect POST requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_post_namespaced_service_proxy_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_post_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.connect_core_v1_post_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def connect_core_v1_post_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + connect POST requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_post_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_post_namespaced_service_proxy_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_post_namespaced_service_proxy_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_post_namespaced_service_proxy_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_core_v1_post_namespaced_service_proxy_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_post_node_proxy(self, name, **kwargs): + """ + + connect POST requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_post_node_proxy(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_post_node_proxy_with_http_info(name, **kwargs) + else: + (data) = self.connect_core_v1_post_node_proxy_with_http_info(name, **kwargs) + return data + + def connect_core_v1_post_node_proxy_with_http_info(self, name, **kwargs): + """ + + connect POST requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_post_node_proxy_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_post_node_proxy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_post_node_proxy`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}/proxy'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_post_node_proxy_with_path(self, name, path, **kwargs): + """ + + connect POST requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_post_node_proxy_with_path(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_post_node_proxy_with_path_with_http_info(name, path, **kwargs) + else: + (data) = self.connect_core_v1_post_node_proxy_with_path_with_http_info(name, path, **kwargs) + return data + + def connect_core_v1_post_node_proxy_with_path_with_http_info(self, name, path, **kwargs): + """ + + connect POST requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_post_node_proxy_with_path_with_http_info(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_post_node_proxy_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_post_node_proxy_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_core_v1_post_node_proxy_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}/proxy/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_put_namespaced_pod_proxy(self, name, namespace, **kwargs): + """ + + connect PUT requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_put_namespaced_pod_proxy(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_put_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_core_v1_put_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + return data + + def connect_core_v1_put_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): + """ + + connect PUT requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_put_namespaced_pod_proxy_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_put_namespaced_pod_proxy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_put_namespaced_pod_proxy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_put_namespaced_pod_proxy`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_put_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): + """ + + connect PUT requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_put_namespaced_pod_proxy_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_put_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.connect_core_v1_put_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def connect_core_v1_put_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + connect PUT requests to proxy of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_put_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_put_namespaced_pod_proxy_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_put_namespaced_pod_proxy_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_put_namespaced_pod_proxy_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_core_v1_put_namespaced_pod_proxy_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_put_namespaced_service_proxy(self, name, namespace, **kwargs): + """ + + connect PUT requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_put_namespaced_service_proxy(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_put_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_core_v1_put_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + return data + + def connect_core_v1_put_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): + """ + + connect PUT requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_put_namespaced_service_proxy_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_put_namespaced_service_proxy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_put_namespaced_service_proxy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_put_namespaced_service_proxy`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_put_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): + """ + + connect PUT requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_put_namespaced_service_proxy_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_put_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.connect_core_v1_put_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def connect_core_v1_put_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + connect PUT requests to proxy of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_put_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_put_namespaced_service_proxy_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_put_namespaced_service_proxy_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_core_v1_put_namespaced_service_proxy_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_core_v1_put_namespaced_service_proxy_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_put_node_proxy(self, name, **kwargs): + """ + + connect PUT requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_put_node_proxy(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_put_node_proxy_with_http_info(name, **kwargs) + else: + (data) = self.connect_core_v1_put_node_proxy_with_http_info(name, **kwargs) + return data + + def connect_core_v1_put_node_proxy_with_http_info(self, name, **kwargs): + """ + + connect PUT requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_put_node_proxy_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_put_node_proxy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_put_node_proxy`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}/proxy'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def connect_core_v1_put_node_proxy_with_path(self, name, path, **kwargs): + """ + + connect PUT requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_put_node_proxy_with_path(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_core_v1_put_node_proxy_with_path_with_http_info(name, path, **kwargs) + else: + (data) = self.connect_core_v1_put_node_proxy_with_path_with_http_info(name, path, **kwargs) + return data + + def connect_core_v1_put_node_proxy_with_path_with_http_info(self, name, path, **kwargs): + """ + + connect PUT requests to proxy of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_core_v1_put_node_proxy_with_path_with_http_info(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_core_v1_put_node_proxy_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_core_v1_put_node_proxy_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_core_v1_put_node_proxy_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}/proxy/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_core_v1_namespace(self, body, **kwargs): + """ + + create a Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespace(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Namespace body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_core_v1_namespace_with_http_info(body, **kwargs) + else: + (data) = self.create_core_v1_namespace_with_http_info(body, **kwargs) + return data + + def create_core_v1_namespace_with_http_info(self, body, **kwargs): + """ + + create a Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespace_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Namespace body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_core_v1_namespace" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_core_v1_namespace`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Namespace', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_core_v1_namespaced_binding(self, body, namespace, **kwargs): + """ + + create a Binding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_binding(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Binding body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Binding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_core_v1_namespaced_binding_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_core_v1_namespaced_binding_with_http_info(body, namespace, **kwargs) + return data + + def create_core_v1_namespaced_binding_with_http_info(self, body, namespace, **kwargs): + """ + + create a Binding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_binding_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Binding body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Binding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_core_v1_namespaced_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_core_v1_namespaced_binding`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_core_v1_namespaced_binding`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/bindings'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Binding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_core_v1_namespaced_binding_binding(self, body, name, namespace, **kwargs): + """ + + create binding of a Binding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_binding_binding(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Binding body: (required) + :param str name: name of the Binding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Binding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_core_v1_namespaced_binding_binding_with_http_info(body, name, namespace, **kwargs) + else: + (data) = self.create_core_v1_namespaced_binding_binding_with_http_info(body, name, namespace, **kwargs) + return data + + def create_core_v1_namespaced_binding_binding_with_http_info(self, body, name, namespace, **kwargs): + """ + + create binding of a Binding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_binding_binding_with_http_info(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Binding body: (required) + :param str name: name of the Binding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Binding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_core_v1_namespaced_binding_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_core_v1_namespaced_binding_binding`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `create_core_v1_namespaced_binding_binding`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_core_v1_namespaced_binding_binding`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/binding'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Binding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_core_v1_namespaced_config_map(self, namespace, body, **kwargs): + """ + + create a ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_config_map(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ConfigMap body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ConfigMap + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_core_v1_namespaced_config_map_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_core_v1_namespaced_config_map_with_http_info(namespace, body, **kwargs) + return data + + def create_core_v1_namespaced_config_map_with_http_info(self, namespace, body, **kwargs): + """ + + create a ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_config_map_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ConfigMap body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ConfigMap + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_core_v1_namespaced_config_map" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_core_v1_namespaced_config_map`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_core_v1_namespaced_config_map`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/configmaps'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ConfigMap', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_core_v1_namespaced_endpoints(self, namespace, body, **kwargs): + """ + + create Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_endpoints(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Endpoints body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Endpoints + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_core_v1_namespaced_endpoints_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_core_v1_namespaced_endpoints_with_http_info(namespace, body, **kwargs) + return data + + def create_core_v1_namespaced_endpoints_with_http_info(self, namespace, body, **kwargs): + """ + + create Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_endpoints_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Endpoints body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Endpoints + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_core_v1_namespaced_endpoints" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_core_v1_namespaced_endpoints`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_core_v1_namespaced_endpoints`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/endpoints'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Endpoints', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_core_v1_namespaced_event(self, namespace, body, **kwargs): + """ + + create an Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_event(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Event body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Event + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_core_v1_namespaced_event_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_core_v1_namespaced_event_with_http_info(namespace, body, **kwargs) + return data + + def create_core_v1_namespaced_event_with_http_info(self, namespace, body, **kwargs): + """ + + create an Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_event_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Event body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Event + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_core_v1_namespaced_event" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_core_v1_namespaced_event`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_core_v1_namespaced_event`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/events'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Event', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_core_v1_namespaced_eviction_eviction(self, body, name, namespace, **kwargs): + """ + + create eviction of an Eviction + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_eviction_eviction(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1Eviction body: (required) + :param str name: name of the Eviction (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1Eviction + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_core_v1_namespaced_eviction_eviction_with_http_info(body, name, namespace, **kwargs) + else: + (data) = self.create_core_v1_namespaced_eviction_eviction_with_http_info(body, name, namespace, **kwargs) + return data + + def create_core_v1_namespaced_eviction_eviction_with_http_info(self, body, name, namespace, **kwargs): + """ + + create eviction of an Eviction + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_eviction_eviction_with_http_info(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1Eviction body: (required) + :param str name: name of the Eviction (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1Eviction + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_core_v1_namespaced_eviction_eviction" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_core_v1_namespaced_eviction_eviction`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `create_core_v1_namespaced_eviction_eviction`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_core_v1_namespaced_eviction_eviction`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/eviction'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1Eviction', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_core_v1_namespaced_limit_range(self, namespace, body, **kwargs): + """ + + create a LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_limit_range(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1LimitRange body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LimitRange + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_core_v1_namespaced_limit_range_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_core_v1_namespaced_limit_range_with_http_info(namespace, body, **kwargs) + return data + + def create_core_v1_namespaced_limit_range_with_http_info(self, namespace, body, **kwargs): + """ + + create a LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_limit_range_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1LimitRange body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LimitRange + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_core_v1_namespaced_limit_range" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_core_v1_namespaced_limit_range`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_core_v1_namespaced_limit_range`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/limitranges'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LimitRange', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_core_v1_namespaced_persistent_volume_claim(self, namespace, body, **kwargs): + """ + + create a PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_persistent_volume_claim(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PersistentVolumeClaim body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_core_v1_namespaced_persistent_volume_claim_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_core_v1_namespaced_persistent_volume_claim_with_http_info(namespace, body, **kwargs) + return data + + def create_core_v1_namespaced_persistent_volume_claim_with_http_info(self, namespace, body, **kwargs): + """ + + create a PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_persistent_volume_claim_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PersistentVolumeClaim body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_core_v1_namespaced_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_core_v1_namespaced_persistent_volume_claim`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_core_v1_namespaced_persistent_volume_claim`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeClaim', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_core_v1_namespaced_pod(self, namespace, body, **kwargs): + """ + + create a Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_pod(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Pod body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_core_v1_namespaced_pod_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_core_v1_namespaced_pod_with_http_info(namespace, body, **kwargs) + return data + + def create_core_v1_namespaced_pod_with_http_info(self, namespace, body, **kwargs): + """ + + create a Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_pod_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Pod body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_core_v1_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_core_v1_namespaced_pod`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_core_v1_namespaced_pod`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Pod', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_core_v1_namespaced_pod_template(self, namespace, body, **kwargs): + """ + + create a PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_pod_template(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PodTemplate body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodTemplate + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_core_v1_namespaced_pod_template_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_core_v1_namespaced_pod_template_with_http_info(namespace, body, **kwargs) + return data + + def create_core_v1_namespaced_pod_template_with_http_info(self, namespace, body, **kwargs): + """ + + create a PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_pod_template_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PodTemplate body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodTemplate + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_core_v1_namespaced_pod_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_core_v1_namespaced_pod_template`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_core_v1_namespaced_pod_template`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodTemplate', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_core_v1_namespaced_replication_controller(self, namespace, body, **kwargs): + """ + + create a ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_replication_controller(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ReplicationController body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_core_v1_namespaced_replication_controller_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_core_v1_namespaced_replication_controller_with_http_info(namespace, body, **kwargs) + return data + + def create_core_v1_namespaced_replication_controller_with_http_info(self, namespace, body, **kwargs): + """ + + create a ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_replication_controller_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ReplicationController body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_core_v1_namespaced_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_core_v1_namespaced_replication_controller`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_core_v1_namespaced_replication_controller`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicationController', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_core_v1_namespaced_resource_quota(self, namespace, body, **kwargs): + """ + + create a ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_resource_quota(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ResourceQuota body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_core_v1_namespaced_resource_quota_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_core_v1_namespaced_resource_quota_with_http_info(namespace, body, **kwargs) + return data + + def create_core_v1_namespaced_resource_quota_with_http_info(self, namespace, body, **kwargs): + """ + + create a ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_resource_quota_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ResourceQuota body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_core_v1_namespaced_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_core_v1_namespaced_resource_quota`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_core_v1_namespaced_resource_quota`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_core_v1_namespaced_secret(self, namespace, body, **kwargs): + """ + + create a Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_secret(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Secret body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Secret + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_core_v1_namespaced_secret_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_core_v1_namespaced_secret_with_http_info(namespace, body, **kwargs) + return data + + def create_core_v1_namespaced_secret_with_http_info(self, namespace, body, **kwargs): + """ + + create a Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_secret_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Secret body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Secret + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_core_v1_namespaced_secret" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_core_v1_namespaced_secret`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_core_v1_namespaced_secret`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/secrets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Secret', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_core_v1_namespaced_service(self, namespace, body, **kwargs): + """ + + create a Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_service(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Service body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_core_v1_namespaced_service_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_core_v1_namespaced_service_with_http_info(namespace, body, **kwargs) + return data + + def create_core_v1_namespaced_service_with_http_info(self, namespace, body, **kwargs): + """ + + create a Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_service_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Service body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_core_v1_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_core_v1_namespaced_service`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_core_v1_namespaced_service`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Service', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_core_v1_namespaced_service_account(self, namespace, body, **kwargs): + """ + + create a ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_service_account(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ServiceAccount body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ServiceAccount + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_core_v1_namespaced_service_account_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_core_v1_namespaced_service_account_with_http_info(namespace, body, **kwargs) + return data + + def create_core_v1_namespaced_service_account_with_http_info(self, namespace, body, **kwargs): + """ + + create a ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_namespaced_service_account_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ServiceAccount body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ServiceAccount + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_core_v1_namespaced_service_account" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_core_v1_namespaced_service_account`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_core_v1_namespaced_service_account`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ServiceAccount', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_core_v1_node(self, body, **kwargs): + """ + + create a Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_node(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Node body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_core_v1_node_with_http_info(body, **kwargs) + else: + (data) = self.create_core_v1_node_with_http_info(body, **kwargs) + return data + + def create_core_v1_node_with_http_info(self, body, **kwargs): + """ + + create a Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_node_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Node body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_core_v1_node" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_core_v1_node`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Node', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_core_v1_persistent_volume(self, body, **kwargs): + """ + + create a PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_persistent_volume(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PersistentVolume body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_core_v1_persistent_volume_with_http_info(body, **kwargs) + else: + (data) = self.create_core_v1_persistent_volume_with_http_info(body, **kwargs) + return data + + def create_core_v1_persistent_volume_with_http_info(self, body, **kwargs): + """ + + create a PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_core_v1_persistent_volume_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PersistentVolume body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_core_v1_persistent_volume" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_core_v1_persistent_volume`") + + + collection_formats = {} + + resource_path = '/api/v1/persistentvolumes'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolume', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_collection_namespace(self, **kwargs): + """ + + delete collection of Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespace(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_collection_namespace_with_http_info(**kwargs) + else: + (data) = self.delete_core_v1_collection_namespace_with_http_info(**kwargs) + return data + + def delete_core_v1_collection_namespace_with_http_info(self, **kwargs): + """ + + delete collection of Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespace_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_collection_namespace" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/namespaces'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_collection_namespaced_config_map(self, namespace, **kwargs): + """ + + delete collection of ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_config_map(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_collection_namespaced_config_map_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_core_v1_collection_namespaced_config_map_with_http_info(namespace, **kwargs) + return data + + def delete_core_v1_collection_namespaced_config_map_with_http_info(self, namespace, **kwargs): + """ + + delete collection of ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_config_map_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_collection_namespaced_config_map" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_collection_namespaced_config_map`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/configmaps'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_collection_namespaced_endpoints(self, namespace, **kwargs): + """ + + delete collection of Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_endpoints(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_collection_namespaced_endpoints_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_core_v1_collection_namespaced_endpoints_with_http_info(namespace, **kwargs) + return data + + def delete_core_v1_collection_namespaced_endpoints_with_http_info(self, namespace, **kwargs): + """ + + delete collection of Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_endpoints_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_collection_namespaced_endpoints" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_collection_namespaced_endpoints`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/endpoints'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_collection_namespaced_event(self, namespace, **kwargs): + """ + + delete collection of Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_event(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_collection_namespaced_event_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_core_v1_collection_namespaced_event_with_http_info(namespace, **kwargs) + return data + + def delete_core_v1_collection_namespaced_event_with_http_info(self, namespace, **kwargs): + """ + + delete collection of Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_event_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_collection_namespaced_event" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_collection_namespaced_event`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/events'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_collection_namespaced_limit_range(self, namespace, **kwargs): + """ + + delete collection of LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_limit_range(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_collection_namespaced_limit_range_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_core_v1_collection_namespaced_limit_range_with_http_info(namespace, **kwargs) + return data + + def delete_core_v1_collection_namespaced_limit_range_with_http_info(self, namespace, **kwargs): + """ + + delete collection of LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_limit_range_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_collection_namespaced_limit_range" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_collection_namespaced_limit_range`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/limitranges'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_collection_namespaced_persistent_volume_claim(self, namespace, **kwargs): + """ + + delete collection of PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_persistent_volume_claim(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_collection_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_core_v1_collection_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) + return data + + def delete_core_v1_collection_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kwargs): + """ + + delete collection of PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_persistent_volume_claim_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_collection_namespaced_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_collection_namespaced_persistent_volume_claim`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_collection_namespaced_pod(self, namespace, **kwargs): + """ + + delete collection of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_pod(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_collection_namespaced_pod_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_core_v1_collection_namespaced_pod_with_http_info(namespace, **kwargs) + return data + + def delete_core_v1_collection_namespaced_pod_with_http_info(self, namespace, **kwargs): + """ + + delete collection of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_pod_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_collection_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_collection_namespaced_pod`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_collection_namespaced_pod_template(self, namespace, **kwargs): + """ + + delete collection of PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_pod_template(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_collection_namespaced_pod_template_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_core_v1_collection_namespaced_pod_template_with_http_info(namespace, **kwargs) + return data + + def delete_core_v1_collection_namespaced_pod_template_with_http_info(self, namespace, **kwargs): + """ + + delete collection of PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_pod_template_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_collection_namespaced_pod_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_collection_namespaced_pod_template`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_collection_namespaced_replication_controller(self, namespace, **kwargs): + """ + + delete collection of ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_replication_controller(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_collection_namespaced_replication_controller_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_core_v1_collection_namespaced_replication_controller_with_http_info(namespace, **kwargs) + return data + + def delete_core_v1_collection_namespaced_replication_controller_with_http_info(self, namespace, **kwargs): + """ + + delete collection of ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_replication_controller_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_collection_namespaced_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_collection_namespaced_replication_controller`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_collection_namespaced_resource_quota(self, namespace, **kwargs): + """ + + delete collection of ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_resource_quota(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_collection_namespaced_resource_quota_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_core_v1_collection_namespaced_resource_quota_with_http_info(namespace, **kwargs) + return data + + def delete_core_v1_collection_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): + """ + + delete collection of ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_resource_quota_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_collection_namespaced_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_collection_namespaced_resource_quota`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_collection_namespaced_secret(self, namespace, **kwargs): + """ + + delete collection of Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_secret(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_collection_namespaced_secret_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_core_v1_collection_namespaced_secret_with_http_info(namespace, **kwargs) + return data + + def delete_core_v1_collection_namespaced_secret_with_http_info(self, namespace, **kwargs): + """ + + delete collection of Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_secret_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_collection_namespaced_secret" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_collection_namespaced_secret`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/secrets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_collection_namespaced_service_account(self, namespace, **kwargs): + """ + + delete collection of ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_service_account(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_collection_namespaced_service_account_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_core_v1_collection_namespaced_service_account_with_http_info(namespace, **kwargs) + return data + + def delete_core_v1_collection_namespaced_service_account_with_http_info(self, namespace, **kwargs): + """ + + delete collection of ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_namespaced_service_account_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_collection_namespaced_service_account" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_collection_namespaced_service_account`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_collection_node(self, **kwargs): + """ + + delete collection of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_node(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_collection_node_with_http_info(**kwargs) + else: + (data) = self.delete_core_v1_collection_node_with_http_info(**kwargs) + return data + + def delete_core_v1_collection_node_with_http_info(self, **kwargs): + """ + + delete collection of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_node_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_collection_node" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/nodes'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_collection_persistent_volume(self, **kwargs): + """ + + delete collection of PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_persistent_volume(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_collection_persistent_volume_with_http_info(**kwargs) + else: + (data) = self.delete_core_v1_collection_persistent_volume_with_http_info(**kwargs) + return data + + def delete_core_v1_collection_persistent_volume_with_http_info(self, **kwargs): + """ + + delete collection of PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_collection_persistent_volume_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_collection_persistent_volume" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/persistentvolumes'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_namespace(self, name, body, **kwargs): + """ + + delete a Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespace(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Namespace (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_namespace_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_core_v1_namespace_with_http_info(name, body, **kwargs) + return data + + def delete_core_v1_namespace_with_http_info(self, name, body, **kwargs): + """ + + delete a Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespace_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Namespace (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_namespace" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_core_v1_namespace`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_core_v1_namespace`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_namespaced_config_map(self, name, namespace, body, **kwargs): + """ + + delete a ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_config_map(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ConfigMap (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_core_v1_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_core_v1_namespaced_config_map_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_config_map_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ConfigMap (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_namespaced_config_map" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_core_v1_namespaced_config_map`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_namespaced_config_map`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_core_v1_namespaced_config_map`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_namespaced_endpoints(self, name, namespace, body, **kwargs): + """ + + delete Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_endpoints(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Endpoints (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_core_v1_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_core_v1_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_endpoints_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Endpoints (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_namespaced_endpoints" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_core_v1_namespaced_endpoints`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_namespaced_endpoints`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_core_v1_namespaced_endpoints`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_namespaced_event(self, name, namespace, body, **kwargs): + """ + + delete an Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_event(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Event (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_namespaced_event_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_core_v1_namespaced_event_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_core_v1_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete an Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_event_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Event (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_namespaced_event" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_core_v1_namespaced_event`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_namespaced_event`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_core_v1_namespaced_event`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_namespaced_limit_range(self, name, namespace, body, **kwargs): + """ + + delete a LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_limit_range(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the LimitRange (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_core_v1_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_core_v1_namespaced_limit_range_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_limit_range_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the LimitRange (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_namespaced_limit_range" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_core_v1_namespaced_limit_range`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_namespaced_limit_range`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_core_v1_namespaced_limit_range`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_namespaced_persistent_volume_claim(self, name, namespace, body, **kwargs): + """ + + delete a PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_persistent_volume_claim(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolumeClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_core_v1_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolumeClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_namespaced_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_core_v1_namespaced_persistent_volume_claim`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_namespaced_persistent_volume_claim`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_core_v1_namespaced_persistent_volume_claim`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_namespaced_pod(self, name, namespace, body, **kwargs): + """ + + delete a Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_pod(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_namespaced_pod_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_core_v1_namespaced_pod_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_core_v1_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_pod_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_core_v1_namespaced_pod`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_namespaced_pod`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_core_v1_namespaced_pod`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_namespaced_pod_template(self, name, namespace, body, **kwargs): + """ + + delete a PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_pod_template(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_core_v1_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_core_v1_namespaced_pod_template_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_pod_template_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_namespaced_pod_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_core_v1_namespaced_pod_template`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_namespaced_pod_template`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_core_v1_namespaced_pod_template`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_namespaced_replication_controller(self, name, namespace, body, **kwargs): + """ + + delete a ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_replication_controller(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicationController (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_core_v1_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_core_v1_namespaced_replication_controller_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_replication_controller_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicationController (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_namespaced_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_core_v1_namespaced_replication_controller`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_namespaced_replication_controller`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_core_v1_namespaced_replication_controller`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_namespaced_resource_quota(self, name, namespace, body, **kwargs): + """ + + delete a ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_resource_quota(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_core_v1_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_core_v1_namespaced_resource_quota_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_resource_quota_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_namespaced_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_core_v1_namespaced_resource_quota`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_namespaced_resource_quota`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_core_v1_namespaced_resource_quota`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_namespaced_secret(self, name, namespace, body, **kwargs): + """ + + delete a Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_secret(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Secret (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_namespaced_secret_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_core_v1_namespaced_secret_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_core_v1_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_secret_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Secret (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_namespaced_secret" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_core_v1_namespaced_secret`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_namespaced_secret`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_core_v1_namespaced_secret`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_namespaced_service(self, name, namespace, **kwargs): + """ + + delete a Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_service(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_namespaced_service_with_http_info(name, namespace, **kwargs) + else: + (data) = self.delete_core_v1_namespaced_service_with_http_info(name, namespace, **kwargs) + return data + + def delete_core_v1_namespaced_service_with_http_info(self, name, namespace, **kwargs): + """ + + delete a Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_service_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_core_v1_namespaced_service`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_namespaced_service`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_namespaced_service_account(self, name, namespace, body, **kwargs): + """ + + delete a ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_service_account(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ServiceAccount (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_core_v1_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_core_v1_namespaced_service_account_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_namespaced_service_account_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ServiceAccount (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_namespaced_service_account" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_core_v1_namespaced_service_account`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_core_v1_namespaced_service_account`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_core_v1_namespaced_service_account`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_node(self, name, body, **kwargs): + """ + + delete a Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_node(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_node_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_core_v1_node_with_http_info(name, body, **kwargs) + return data + + def delete_core_v1_node_with_http_info(self, name, body, **kwargs): + """ + + delete a Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_node_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_node" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_core_v1_node`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_core_v1_node`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_core_v1_persistent_volume(self, name, body, **kwargs): + """ + + delete a PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_persistent_volume(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_core_v1_persistent_volume_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_core_v1_persistent_volume_with_http_info(name, body, **kwargs) + return data + + def delete_core_v1_persistent_volume_with_http_info(self, name, body, **kwargs): + """ + + delete a PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_core_v1_persistent_volume_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_core_v1_persistent_volume" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_core_v1_persistent_volume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_core_v1_persistent_volume`") + + + collection_formats = {} + + resource_path = '/api/v1/persistentvolumes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def get_core_v1_api_resources(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_core_v1_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_core_v1_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_core_v1_api_resources_with_http_info(**kwargs) + return data + + def get_core_v1_api_resources_with_http_info(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_core_v1_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_core_v1_api_resources" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_component_status(self, **kwargs): + """ + + list objects of kind ComponentStatus + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_component_status(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ComponentStatusList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_component_status_with_http_info(**kwargs) + else: + (data) = self.list_core_v1_component_status_with_http_info(**kwargs) + return data + + def list_core_v1_component_status_with_http_info(self, **kwargs): + """ + + list objects of kind ComponentStatus + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_component_status_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ComponentStatusList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_component_status" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/componentstatuses'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ComponentStatusList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_config_map_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_config_map_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ConfigMapList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_config_map_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_core_v1_config_map_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_core_v1_config_map_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_config_map_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ConfigMapList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_config_map_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/configmaps'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ConfigMapList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_endpoints_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_endpoints_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1EndpointsList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_endpoints_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_core_v1_endpoints_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_core_v1_endpoints_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_endpoints_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1EndpointsList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_endpoints_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/endpoints'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1EndpointsList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_event_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_event_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1EventList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_event_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_core_v1_event_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_core_v1_event_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_event_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1EventList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_event_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/events'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1EventList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_limit_range_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_limit_range_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1LimitRangeList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_limit_range_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_core_v1_limit_range_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_core_v1_limit_range_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_limit_range_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1LimitRangeList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_limit_range_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/limitranges'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LimitRangeList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_namespace(self, **kwargs): + """ + + list or watch objects of kind Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespace(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1NamespaceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_namespace_with_http_info(**kwargs) + else: + (data) = self.list_core_v1_namespace_with_http_info(**kwargs) + return data + + def list_core_v1_namespace_with_http_info(self, **kwargs): + """ + + list or watch objects of kind Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespace_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1NamespaceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_namespace" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/namespaces'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1NamespaceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_namespaced_config_map(self, namespace, **kwargs): + """ + + list or watch objects of kind ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_config_map(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ConfigMapList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_namespaced_config_map_with_http_info(namespace, **kwargs) + else: + (data) = self.list_core_v1_namespaced_config_map_with_http_info(namespace, **kwargs) + return data + + def list_core_v1_namespaced_config_map_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_config_map_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ConfigMapList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_namespaced_config_map" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_core_v1_namespaced_config_map`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/configmaps'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ConfigMapList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_namespaced_endpoints(self, namespace, **kwargs): + """ + + list or watch objects of kind Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_endpoints(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1EndpointsList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_namespaced_endpoints_with_http_info(namespace, **kwargs) + else: + (data) = self.list_core_v1_namespaced_endpoints_with_http_info(namespace, **kwargs) + return data + + def list_core_v1_namespaced_endpoints_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_endpoints_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1EndpointsList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_namespaced_endpoints" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_core_v1_namespaced_endpoints`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/endpoints'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1EndpointsList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_namespaced_event(self, namespace, **kwargs): + """ + + list or watch objects of kind Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_event(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1EventList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_namespaced_event_with_http_info(namespace, **kwargs) + else: + (data) = self.list_core_v1_namespaced_event_with_http_info(namespace, **kwargs) + return data + + def list_core_v1_namespaced_event_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_event_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1EventList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_namespaced_event" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_core_v1_namespaced_event`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/events'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1EventList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_namespaced_limit_range(self, namespace, **kwargs): + """ + + list or watch objects of kind LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_limit_range(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1LimitRangeList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_namespaced_limit_range_with_http_info(namespace, **kwargs) + else: + (data) = self.list_core_v1_namespaced_limit_range_with_http_info(namespace, **kwargs) + return data + + def list_core_v1_namespaced_limit_range_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_limit_range_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1LimitRangeList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_namespaced_limit_range" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_core_v1_namespaced_limit_range`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/limitranges'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LimitRangeList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_namespaced_persistent_volume_claim(self, namespace, **kwargs): + """ + + list or watch objects of kind PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_persistent_volume_claim(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PersistentVolumeClaimList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) + else: + (data) = self.list_core_v1_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) + return data + + def list_core_v1_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_persistent_volume_claim_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PersistentVolumeClaimList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_namespaced_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_core_v1_namespaced_persistent_volume_claim`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeClaimList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_namespaced_pod(self, namespace, **kwargs): + """ + + list or watch objects of kind Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_pod(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PodList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_namespaced_pod_with_http_info(namespace, **kwargs) + else: + (data) = self.list_core_v1_namespaced_pod_with_http_info(namespace, **kwargs) + return data + + def list_core_v1_namespaced_pod_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_pod_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PodList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_core_v1_namespaced_pod`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_namespaced_pod_template(self, namespace, **kwargs): + """ + + list or watch objects of kind PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_pod_template(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PodTemplateList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_namespaced_pod_template_with_http_info(namespace, **kwargs) + else: + (data) = self.list_core_v1_namespaced_pod_template_with_http_info(namespace, **kwargs) + return data + + def list_core_v1_namespaced_pod_template_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_pod_template_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PodTemplateList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_namespaced_pod_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_core_v1_namespaced_pod_template`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodTemplateList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_namespaced_replication_controller(self, namespace, **kwargs): + """ + + list or watch objects of kind ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_replication_controller(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ReplicationControllerList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_namespaced_replication_controller_with_http_info(namespace, **kwargs) + else: + (data) = self.list_core_v1_namespaced_replication_controller_with_http_info(namespace, **kwargs) + return data + + def list_core_v1_namespaced_replication_controller_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_replication_controller_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ReplicationControllerList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_namespaced_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_core_v1_namespaced_replication_controller`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicationControllerList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_namespaced_resource_quota(self, namespace, **kwargs): + """ + + list or watch objects of kind ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_resource_quota(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ResourceQuotaList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_namespaced_resource_quota_with_http_info(namespace, **kwargs) + else: + (data) = self.list_core_v1_namespaced_resource_quota_with_http_info(namespace, **kwargs) + return data + + def list_core_v1_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_resource_quota_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ResourceQuotaList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_namespaced_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_core_v1_namespaced_resource_quota`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceQuotaList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_namespaced_secret(self, namespace, **kwargs): + """ + + list or watch objects of kind Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_secret(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1SecretList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_namespaced_secret_with_http_info(namespace, **kwargs) + else: + (data) = self.list_core_v1_namespaced_secret_with_http_info(namespace, **kwargs) + return data + + def list_core_v1_namespaced_secret_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_secret_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1SecretList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_namespaced_secret" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_core_v1_namespaced_secret`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/secrets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SecretList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_namespaced_service(self, namespace, **kwargs): + """ + + list or watch objects of kind Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_service(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ServiceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_namespaced_service_with_http_info(namespace, **kwargs) + else: + (data) = self.list_core_v1_namespaced_service_with_http_info(namespace, **kwargs) + return data + + def list_core_v1_namespaced_service_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_service_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ServiceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_core_v1_namespaced_service`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ServiceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_namespaced_service_account(self, namespace, **kwargs): + """ + + list or watch objects of kind ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_service_account(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ServiceAccountList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_namespaced_service_account_with_http_info(namespace, **kwargs) + else: + (data) = self.list_core_v1_namespaced_service_account_with_http_info(namespace, **kwargs) + return data + + def list_core_v1_namespaced_service_account_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_namespaced_service_account_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ServiceAccountList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_namespaced_service_account" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_core_v1_namespaced_service_account`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ServiceAccountList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_node(self, **kwargs): + """ + + list or watch objects of kind Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_node(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1NodeList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_node_with_http_info(**kwargs) + else: + (data) = self.list_core_v1_node_with_http_info(**kwargs) + return data + + def list_core_v1_node_with_http_info(self, **kwargs): + """ + + list or watch objects of kind Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_node_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1NodeList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_node" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/nodes'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1NodeList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_persistent_volume(self, **kwargs): + """ + + list or watch objects of kind PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_persistent_volume(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PersistentVolumeList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_persistent_volume_with_http_info(**kwargs) + else: + (data) = self.list_core_v1_persistent_volume_with_http_info(**kwargs) + return data + + def list_core_v1_persistent_volume_with_http_info(self, **kwargs): + """ + + list or watch objects of kind PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_persistent_volume_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PersistentVolumeList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_persistent_volume" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/persistentvolumes'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_persistent_volume_claim_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_persistent_volume_claim_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PersistentVolumeClaimList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_persistent_volume_claim_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_core_v1_persistent_volume_claim_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_core_v1_persistent_volume_claim_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_persistent_volume_claim_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PersistentVolumeClaimList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_persistent_volume_claim_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/persistentvolumeclaims'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeClaimList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_pod_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_pod_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PodList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_pod_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_core_v1_pod_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_core_v1_pod_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_pod_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PodList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_pod_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/pods'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_pod_template_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_pod_template_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PodTemplateList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_pod_template_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_core_v1_pod_template_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_core_v1_pod_template_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_pod_template_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PodTemplateList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_pod_template_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/podtemplates'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodTemplateList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_replication_controller_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_replication_controller_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ReplicationControllerList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_replication_controller_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_core_v1_replication_controller_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_core_v1_replication_controller_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_replication_controller_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ReplicationControllerList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_replication_controller_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/replicationcontrollers'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicationControllerList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_resource_quota_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_resource_quota_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ResourceQuotaList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_resource_quota_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_core_v1_resource_quota_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_core_v1_resource_quota_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_resource_quota_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ResourceQuotaList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_resource_quota_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/resourcequotas'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceQuotaList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_secret_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_secret_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1SecretList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_secret_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_core_v1_secret_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_core_v1_secret_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_secret_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1SecretList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_secret_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/secrets'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SecretList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_service_account_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_service_account_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ServiceAccountList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_service_account_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_core_v1_service_account_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_core_v1_service_account_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_service_account_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ServiceAccountList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_service_account_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/serviceaccounts'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ServiceAccountList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_core_v1_service_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_service_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ServiceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_core_v1_service_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_core_v1_service_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_core_v1_service_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_core_v1_service_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ServiceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_core_v1_service_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/services'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ServiceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespace(self, name, body, **kwargs): + """ + + partially update the specified Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespace(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Namespace (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespace_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_core_v1_namespace_with_http_info(name, body, **kwargs) + return data + + def patch_core_v1_namespace_with_http_info(self, name, body, **kwargs): + """ + + partially update the specified Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespace_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Namespace (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespace" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespace`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespace`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Namespace', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespace_status(self, name, body, **kwargs): + """ + + partially update status of the specified Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespace_status(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Namespace (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespace_status_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_core_v1_namespace_status_with_http_info(name, body, **kwargs) + return data + + def patch_core_v1_namespace_status_with_http_info(self, name, body, **kwargs): + """ + + partially update status of the specified Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespace_status_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Namespace (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespace_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespace_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespace_status`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Namespace', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespaced_config_map(self, name, namespace, body, **kwargs): + """ + + partially update the specified ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_config_map(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ConfigMap (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ConfigMap + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_core_v1_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_core_v1_namespaced_config_map_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_config_map_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ConfigMap (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ConfigMap + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespaced_config_map" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespaced_config_map`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_core_v1_namespaced_config_map`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespaced_config_map`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ConfigMap', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespaced_endpoints(self, name, namespace, body, **kwargs): + """ + + partially update the specified Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_endpoints(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Endpoints (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Endpoints + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_core_v1_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_core_v1_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_endpoints_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Endpoints (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Endpoints + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespaced_endpoints" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespaced_endpoints`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_core_v1_namespaced_endpoints`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespaced_endpoints`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Endpoints', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespaced_event(self, name, namespace, body, **kwargs): + """ + + partially update the specified Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_event(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Event (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Event + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespaced_event_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_core_v1_namespaced_event_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_core_v1_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_event_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Event (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Event + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespaced_event" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespaced_event`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_core_v1_namespaced_event`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespaced_event`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Event', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespaced_limit_range(self, name, namespace, body, **kwargs): + """ + + partially update the specified LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_limit_range(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the LimitRange (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LimitRange + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_core_v1_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_core_v1_namespaced_limit_range_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_limit_range_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the LimitRange (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LimitRange + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespaced_limit_range" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespaced_limit_range`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_core_v1_namespaced_limit_range`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespaced_limit_range`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LimitRange', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespaced_persistent_volume_claim(self, name, namespace, body, **kwargs): + """ + + partially update the specified PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_persistent_volume_claim(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolumeClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_core_v1_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolumeClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespaced_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespaced_persistent_volume_claim`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_core_v1_namespaced_persistent_volume_claim`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespaced_persistent_volume_claim`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeClaim', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespaced_persistent_volume_claim_status(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_persistent_volume_claim_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolumeClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_core_v1_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_core_v1_namespaced_persistent_volume_claim_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolumeClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespaced_persistent_volume_claim_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespaced_persistent_volume_claim_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_core_v1_namespaced_persistent_volume_claim_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespaced_persistent_volume_claim_status`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeClaim', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespaced_pod(self, name, namespace, body, **kwargs): + """ + + partially update the specified Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_pod(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespaced_pod_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_core_v1_namespaced_pod_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_core_v1_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_pod_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespaced_pod`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_core_v1_namespaced_pod`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespaced_pod`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Pod', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespaced_pod_status(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_pod_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_core_v1_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_core_v1_namespaced_pod_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_pod_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespaced_pod_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespaced_pod_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_core_v1_namespaced_pod_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespaced_pod_status`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Pod', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespaced_pod_template(self, name, namespace, body, **kwargs): + """ + + partially update the specified PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_pod_template(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodTemplate + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_core_v1_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_core_v1_namespaced_pod_template_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_pod_template_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodTemplate + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespaced_pod_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespaced_pod_template`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_core_v1_namespaced_pod_template`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespaced_pod_template`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodTemplate', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespaced_replication_controller(self, name, namespace, body, **kwargs): + """ + + partially update the specified ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_replication_controller(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicationController (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_core_v1_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_core_v1_namespaced_replication_controller_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_replication_controller_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicationController (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespaced_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespaced_replication_controller`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_core_v1_namespaced_replication_controller`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespaced_replication_controller`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicationController', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespaced_replication_controller_status(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_replication_controller_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicationController (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_core_v1_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_core_v1_namespaced_replication_controller_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_replication_controller_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicationController (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespaced_replication_controller_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespaced_replication_controller_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_core_v1_namespaced_replication_controller_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespaced_replication_controller_status`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicationController', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespaced_resource_quota(self, name, namespace, body, **kwargs): + """ + + partially update the specified ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_resource_quota(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_core_v1_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_core_v1_namespaced_resource_quota_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_resource_quota_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespaced_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespaced_resource_quota`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_core_v1_namespaced_resource_quota`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespaced_resource_quota`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespaced_resource_quota_status(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_resource_quota_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_core_v1_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_core_v1_namespaced_resource_quota_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_resource_quota_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespaced_resource_quota_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespaced_resource_quota_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_core_v1_namespaced_resource_quota_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespaced_resource_quota_status`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespaced_scale_scale(self, name, namespace, body, **kwargs): + """ + + partially update scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_scale_scale(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Scale + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_core_v1_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_core_v1_namespaced_scale_scale_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_scale_scale_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Scale + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespaced_scale_scale" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespaced_scale_scale`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_core_v1_namespaced_scale_scale`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespaced_scale_scale`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Scale', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespaced_secret(self, name, namespace, body, **kwargs): + """ + + partially update the specified Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_secret(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Secret (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Secret + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespaced_secret_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_core_v1_namespaced_secret_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_core_v1_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_secret_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Secret (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Secret + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespaced_secret" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespaced_secret`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_core_v1_namespaced_secret`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespaced_secret`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Secret', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespaced_service(self, name, namespace, body, **kwargs): + """ + + partially update the specified Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_service(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespaced_service_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_core_v1_namespaced_service_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_core_v1_namespaced_service_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_service_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespaced_service`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_core_v1_namespaced_service`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespaced_service`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Service', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespaced_service_account(self, name, namespace, body, **kwargs): + """ + + partially update the specified ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_service_account(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ServiceAccount (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ServiceAccount + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_core_v1_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_core_v1_namespaced_service_account_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_service_account_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ServiceAccount (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ServiceAccount + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespaced_service_account" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespaced_service_account`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_core_v1_namespaced_service_account`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespaced_service_account`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ServiceAccount', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_namespaced_service_status(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_service_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_core_v1_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_core_v1_namespaced_service_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_namespaced_service_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_namespaced_service_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_namespaced_service_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_core_v1_namespaced_service_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_namespaced_service_status`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Service', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_node(self, name, body, **kwargs): + """ + + partially update the specified Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_node(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_node_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_core_v1_node_with_http_info(name, body, **kwargs) + return data + + def patch_core_v1_node_with_http_info(self, name, body, **kwargs): + """ + + partially update the specified Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_node_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_node" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_node`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_node`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Node', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_node_status(self, name, body, **kwargs): + """ + + partially update status of the specified Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_node_status(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_node_status_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_core_v1_node_status_with_http_info(name, body, **kwargs) + return data + + def patch_core_v1_node_status_with_http_info(self, name, body, **kwargs): + """ + + partially update status of the specified Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_node_status_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_node_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_node_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_node_status`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Node', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_persistent_volume(self, name, body, **kwargs): + """ + + partially update the specified PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_persistent_volume(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_persistent_volume_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_core_v1_persistent_volume_with_http_info(name, body, **kwargs) + return data + + def patch_core_v1_persistent_volume_with_http_info(self, name, body, **kwargs): + """ + + partially update the specified PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_persistent_volume_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_persistent_volume" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_persistent_volume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_persistent_volume`") + + + collection_formats = {} + + resource_path = '/api/v1/persistentvolumes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolume', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_core_v1_persistent_volume_status(self, name, body, **kwargs): + """ + + partially update status of the specified PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_persistent_volume_status(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_core_v1_persistent_volume_status_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_core_v1_persistent_volume_status_with_http_info(name, body, **kwargs) + return data + + def patch_core_v1_persistent_volume_status_with_http_info(self, name, body, **kwargs): + """ + + partially update status of the specified PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_core_v1_persistent_volume_status_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_core_v1_persistent_volume_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_core_v1_persistent_volume_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_core_v1_persistent_volume_status`") + + + collection_formats = {} + + resource_path = '/api/v1/persistentvolumes/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolume', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_delete_namespaced_pod(self, name, namespace, **kwargs): + """ + + proxy DELETE requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_delete_namespaced_pod(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_delete_namespaced_pod_with_http_info(name, namespace, **kwargs) + else: + (data) = self.proxy_core_v1_delete_namespaced_pod_with_http_info(name, namespace, **kwargs) + return data + + def proxy_core_v1_delete_namespaced_pod_with_http_info(self, name, namespace, **kwargs): + """ + + proxy DELETE requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_delete_namespaced_pod_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_delete_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_delete_namespaced_pod`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_delete_namespaced_pod`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_delete_namespaced_pod_with_path(self, name, namespace, path, **kwargs): + """ + + proxy DELETE requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_delete_namespaced_pod_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_delete_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.proxy_core_v1_delete_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def proxy_core_v1_delete_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + proxy DELETE requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_delete_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_delete_namespaced_pod_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_delete_namespaced_pod_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_delete_namespaced_pod_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `proxy_core_v1_delete_namespaced_pod_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_delete_namespaced_service(self, name, namespace, **kwargs): + """ + + proxy DELETE requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_delete_namespaced_service(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_delete_namespaced_service_with_http_info(name, namespace, **kwargs) + else: + (data) = self.proxy_core_v1_delete_namespaced_service_with_http_info(name, namespace, **kwargs) + return data + + def proxy_core_v1_delete_namespaced_service_with_http_info(self, name, namespace, **kwargs): + """ + + proxy DELETE requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_delete_namespaced_service_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_delete_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_delete_namespaced_service`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_delete_namespaced_service`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_delete_namespaced_service_with_path(self, name, namespace, path, **kwargs): + """ + + proxy DELETE requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_delete_namespaced_service_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_delete_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.proxy_core_v1_delete_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def proxy_core_v1_delete_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + proxy DELETE requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_delete_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_delete_namespaced_service_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_delete_namespaced_service_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_delete_namespaced_service_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `proxy_core_v1_delete_namespaced_service_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_delete_node(self, name, **kwargs): + """ + + proxy DELETE requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_delete_node(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_delete_node_with_http_info(name, **kwargs) + else: + (data) = self.proxy_core_v1_delete_node_with_http_info(name, **kwargs) + return data + + def proxy_core_v1_delete_node_with_http_info(self, name, **kwargs): + """ + + proxy DELETE requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_delete_node_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_delete_node" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_delete_node`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/nodes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_delete_node_with_path(self, name, path, **kwargs): + """ + + proxy DELETE requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_delete_node_with_path(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_delete_node_with_path_with_http_info(name, path, **kwargs) + else: + (data) = self.proxy_core_v1_delete_node_with_path_with_http_info(name, path, **kwargs) + return data + + def proxy_core_v1_delete_node_with_path_with_http_info(self, name, path, **kwargs): + """ + + proxy DELETE requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_delete_node_with_path_with_http_info(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_delete_node_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_delete_node_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `proxy_core_v1_delete_node_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/nodes/{name}/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_get_namespaced_pod(self, name, namespace, **kwargs): + """ + + proxy GET requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_get_namespaced_pod(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_get_namespaced_pod_with_http_info(name, namespace, **kwargs) + else: + (data) = self.proxy_core_v1_get_namespaced_pod_with_http_info(name, namespace, **kwargs) + return data + + def proxy_core_v1_get_namespaced_pod_with_http_info(self, name, namespace, **kwargs): + """ + + proxy GET requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_get_namespaced_pod_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_get_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_get_namespaced_pod`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_get_namespaced_pod`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_get_namespaced_pod_with_path(self, name, namespace, path, **kwargs): + """ + + proxy GET requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_get_namespaced_pod_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_get_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.proxy_core_v1_get_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def proxy_core_v1_get_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + proxy GET requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_get_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_get_namespaced_pod_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_get_namespaced_pod_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_get_namespaced_pod_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `proxy_core_v1_get_namespaced_pod_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_get_namespaced_service(self, name, namespace, **kwargs): + """ + + proxy GET requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_get_namespaced_service(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_get_namespaced_service_with_http_info(name, namespace, **kwargs) + else: + (data) = self.proxy_core_v1_get_namespaced_service_with_http_info(name, namespace, **kwargs) + return data + + def proxy_core_v1_get_namespaced_service_with_http_info(self, name, namespace, **kwargs): + """ + + proxy GET requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_get_namespaced_service_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_get_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_get_namespaced_service`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_get_namespaced_service`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_get_namespaced_service_with_path(self, name, namespace, path, **kwargs): + """ + + proxy GET requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_get_namespaced_service_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_get_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.proxy_core_v1_get_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def proxy_core_v1_get_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + proxy GET requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_get_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_get_namespaced_service_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_get_namespaced_service_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_get_namespaced_service_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `proxy_core_v1_get_namespaced_service_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_get_node(self, name, **kwargs): + """ + + proxy GET requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_get_node(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_get_node_with_http_info(name, **kwargs) + else: + (data) = self.proxy_core_v1_get_node_with_http_info(name, **kwargs) + return data + + def proxy_core_v1_get_node_with_http_info(self, name, **kwargs): + """ + + proxy GET requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_get_node_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_get_node" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_get_node`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/nodes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_get_node_with_path(self, name, path, **kwargs): + """ + + proxy GET requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_get_node_with_path(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_get_node_with_path_with_http_info(name, path, **kwargs) + else: + (data) = self.proxy_core_v1_get_node_with_path_with_http_info(name, path, **kwargs) + return data + + def proxy_core_v1_get_node_with_path_with_http_info(self, name, path, **kwargs): + """ + + proxy GET requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_get_node_with_path_with_http_info(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_get_node_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_get_node_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `proxy_core_v1_get_node_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/nodes/{name}/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_head_namespaced_pod(self, name, namespace, **kwargs): + """ + + proxy HEAD requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_head_namespaced_pod(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_head_namespaced_pod_with_http_info(name, namespace, **kwargs) + else: + (data) = self.proxy_core_v1_head_namespaced_pod_with_http_info(name, namespace, **kwargs) + return data + + def proxy_core_v1_head_namespaced_pod_with_http_info(self, name, namespace, **kwargs): + """ + + proxy HEAD requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_head_namespaced_pod_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_head_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_head_namespaced_pod`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_head_namespaced_pod`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_head_namespaced_pod_with_path(self, name, namespace, path, **kwargs): + """ + + proxy HEAD requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_head_namespaced_pod_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_head_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.proxy_core_v1_head_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def proxy_core_v1_head_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + proxy HEAD requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_head_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_head_namespaced_pod_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_head_namespaced_pod_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_head_namespaced_pod_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `proxy_core_v1_head_namespaced_pod_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_head_namespaced_service(self, name, namespace, **kwargs): + """ + + proxy HEAD requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_head_namespaced_service(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_head_namespaced_service_with_http_info(name, namespace, **kwargs) + else: + (data) = self.proxy_core_v1_head_namespaced_service_with_http_info(name, namespace, **kwargs) + return data + + def proxy_core_v1_head_namespaced_service_with_http_info(self, name, namespace, **kwargs): + """ + + proxy HEAD requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_head_namespaced_service_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_head_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_head_namespaced_service`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_head_namespaced_service`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_head_namespaced_service_with_path(self, name, namespace, path, **kwargs): + """ + + proxy HEAD requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_head_namespaced_service_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_head_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.proxy_core_v1_head_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def proxy_core_v1_head_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + proxy HEAD requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_head_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_head_namespaced_service_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_head_namespaced_service_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_head_namespaced_service_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `proxy_core_v1_head_namespaced_service_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_head_node(self, name, **kwargs): + """ + + proxy HEAD requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_head_node(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_head_node_with_http_info(name, **kwargs) + else: + (data) = self.proxy_core_v1_head_node_with_http_info(name, **kwargs) + return data + + def proxy_core_v1_head_node_with_http_info(self, name, **kwargs): + """ + + proxy HEAD requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_head_node_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_head_node" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_head_node`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/nodes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_head_node_with_path(self, name, path, **kwargs): + """ + + proxy HEAD requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_head_node_with_path(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_head_node_with_path_with_http_info(name, path, **kwargs) + else: + (data) = self.proxy_core_v1_head_node_with_path_with_http_info(name, path, **kwargs) + return data + + def proxy_core_v1_head_node_with_path_with_http_info(self, name, path, **kwargs): + """ + + proxy HEAD requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_head_node_with_path_with_http_info(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_head_node_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_head_node_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `proxy_core_v1_head_node_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/nodes/{name}/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_options_namespaced_pod(self, name, namespace, **kwargs): + """ + + proxy OPTIONS requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_options_namespaced_pod(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_options_namespaced_pod_with_http_info(name, namespace, **kwargs) + else: + (data) = self.proxy_core_v1_options_namespaced_pod_with_http_info(name, namespace, **kwargs) + return data + + def proxy_core_v1_options_namespaced_pod_with_http_info(self, name, namespace, **kwargs): + """ + + proxy OPTIONS requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_options_namespaced_pod_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_options_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_options_namespaced_pod`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_options_namespaced_pod`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'OPTIONS', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_options_namespaced_pod_with_path(self, name, namespace, path, **kwargs): + """ + + proxy OPTIONS requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_options_namespaced_pod_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_options_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.proxy_core_v1_options_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def proxy_core_v1_options_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + proxy OPTIONS requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_options_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_options_namespaced_pod_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_options_namespaced_pod_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_options_namespaced_pod_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `proxy_core_v1_options_namespaced_pod_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'OPTIONS', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_options_namespaced_service(self, name, namespace, **kwargs): + """ + + proxy OPTIONS requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_options_namespaced_service(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_options_namespaced_service_with_http_info(name, namespace, **kwargs) + else: + (data) = self.proxy_core_v1_options_namespaced_service_with_http_info(name, namespace, **kwargs) + return data + + def proxy_core_v1_options_namespaced_service_with_http_info(self, name, namespace, **kwargs): + """ + + proxy OPTIONS requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_options_namespaced_service_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_options_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_options_namespaced_service`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_options_namespaced_service`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'OPTIONS', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_options_namespaced_service_with_path(self, name, namespace, path, **kwargs): + """ + + proxy OPTIONS requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_options_namespaced_service_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_options_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.proxy_core_v1_options_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def proxy_core_v1_options_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + proxy OPTIONS requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_options_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_options_namespaced_service_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_options_namespaced_service_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_options_namespaced_service_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `proxy_core_v1_options_namespaced_service_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'OPTIONS', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_options_node(self, name, **kwargs): + """ + + proxy OPTIONS requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_options_node(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_options_node_with_http_info(name, **kwargs) + else: + (data) = self.proxy_core_v1_options_node_with_http_info(name, **kwargs) + return data + + def proxy_core_v1_options_node_with_http_info(self, name, **kwargs): + """ + + proxy OPTIONS requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_options_node_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_options_node" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_options_node`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/nodes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'OPTIONS', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_options_node_with_path(self, name, path, **kwargs): + """ + + proxy OPTIONS requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_options_node_with_path(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_options_node_with_path_with_http_info(name, path, **kwargs) + else: + (data) = self.proxy_core_v1_options_node_with_path_with_http_info(name, path, **kwargs) + return data + + def proxy_core_v1_options_node_with_path_with_http_info(self, name, path, **kwargs): + """ + + proxy OPTIONS requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_options_node_with_path_with_http_info(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_options_node_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_options_node_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `proxy_core_v1_options_node_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/nodes/{name}/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'OPTIONS', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_post_namespaced_pod(self, name, namespace, **kwargs): + """ + + proxy POST requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_post_namespaced_pod(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_post_namespaced_pod_with_http_info(name, namespace, **kwargs) + else: + (data) = self.proxy_core_v1_post_namespaced_pod_with_http_info(name, namespace, **kwargs) + return data + + def proxy_core_v1_post_namespaced_pod_with_http_info(self, name, namespace, **kwargs): + """ + + proxy POST requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_post_namespaced_pod_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_post_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_post_namespaced_pod`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_post_namespaced_pod`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_post_namespaced_pod_with_path(self, name, namespace, path, **kwargs): + """ + + proxy POST requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_post_namespaced_pod_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_post_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.proxy_core_v1_post_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def proxy_core_v1_post_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + proxy POST requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_post_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_post_namespaced_pod_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_post_namespaced_pod_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_post_namespaced_pod_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `proxy_core_v1_post_namespaced_pod_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_post_namespaced_service(self, name, namespace, **kwargs): + """ + + proxy POST requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_post_namespaced_service(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_post_namespaced_service_with_http_info(name, namespace, **kwargs) + else: + (data) = self.proxy_core_v1_post_namespaced_service_with_http_info(name, namespace, **kwargs) + return data + + def proxy_core_v1_post_namespaced_service_with_http_info(self, name, namespace, **kwargs): + """ + + proxy POST requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_post_namespaced_service_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_post_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_post_namespaced_service`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_post_namespaced_service`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_post_namespaced_service_with_path(self, name, namespace, path, **kwargs): + """ + + proxy POST requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_post_namespaced_service_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_post_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.proxy_core_v1_post_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def proxy_core_v1_post_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + proxy POST requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_post_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_post_namespaced_service_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_post_namespaced_service_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_post_namespaced_service_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `proxy_core_v1_post_namespaced_service_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_post_node(self, name, **kwargs): + """ + + proxy POST requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_post_node(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_post_node_with_http_info(name, **kwargs) + else: + (data) = self.proxy_core_v1_post_node_with_http_info(name, **kwargs) + return data + + def proxy_core_v1_post_node_with_http_info(self, name, **kwargs): + """ + + proxy POST requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_post_node_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_post_node" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_post_node`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/nodes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_post_node_with_path(self, name, path, **kwargs): + """ + + proxy POST requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_post_node_with_path(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_post_node_with_path_with_http_info(name, path, **kwargs) + else: + (data) = self.proxy_core_v1_post_node_with_path_with_http_info(name, path, **kwargs) + return data + + def proxy_core_v1_post_node_with_path_with_http_info(self, name, path, **kwargs): + """ + + proxy POST requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_post_node_with_path_with_http_info(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_post_node_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_post_node_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `proxy_core_v1_post_node_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/nodes/{name}/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_put_namespaced_pod(self, name, namespace, **kwargs): + """ + + proxy PUT requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_put_namespaced_pod(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_put_namespaced_pod_with_http_info(name, namespace, **kwargs) + else: + (data) = self.proxy_core_v1_put_namespaced_pod_with_http_info(name, namespace, **kwargs) + return data + + def proxy_core_v1_put_namespaced_pod_with_http_info(self, name, namespace, **kwargs): + """ + + proxy PUT requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_put_namespaced_pod_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_put_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_put_namespaced_pod`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_put_namespaced_pod`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_put_namespaced_pod_with_path(self, name, namespace, path, **kwargs): + """ + + proxy PUT requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_put_namespaced_pod_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_put_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.proxy_core_v1_put_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def proxy_core_v1_put_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + proxy PUT requests to Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_put_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_put_namespaced_pod_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_put_namespaced_pod_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_put_namespaced_pod_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `proxy_core_v1_put_namespaced_pod_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_put_namespaced_service(self, name, namespace, **kwargs): + """ + + proxy PUT requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_put_namespaced_service(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_put_namespaced_service_with_http_info(name, namespace, **kwargs) + else: + (data) = self.proxy_core_v1_put_namespaced_service_with_http_info(name, namespace, **kwargs) + return data + + def proxy_core_v1_put_namespaced_service_with_http_info(self, name, namespace, **kwargs): + """ + + proxy PUT requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_put_namespaced_service_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_put_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_put_namespaced_service`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_put_namespaced_service`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_put_namespaced_service_with_path(self, name, namespace, path, **kwargs): + """ + + proxy PUT requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_put_namespaced_service_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_put_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.proxy_core_v1_put_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def proxy_core_v1_put_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + + proxy PUT requests to Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_put_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_put_namespaced_service_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_put_namespaced_service_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `proxy_core_v1_put_namespaced_service_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `proxy_core_v1_put_namespaced_service_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_put_node(self, name, **kwargs): + """ + + proxy PUT requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_put_node(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_put_node_with_http_info(name, **kwargs) + else: + (data) = self.proxy_core_v1_put_node_with_http_info(name, **kwargs) + return data + + def proxy_core_v1_put_node_with_http_info(self, name, **kwargs): + """ + + proxy PUT requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_put_node_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_put_node" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_put_node`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/nodes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def proxy_core_v1_put_node_with_path(self, name, path, **kwargs): + """ + + proxy PUT requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_put_node_with_path(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.proxy_core_v1_put_node_with_path_with_http_info(name, path, **kwargs) + else: + (data) = self.proxy_core_v1_put_node_with_path_with_http_info(name, path, **kwargs) + return data + + def proxy_core_v1_put_node_with_path_with_http_info(self, name, path, **kwargs): + """ + + proxy PUT requests to Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_core_v1_put_node_with_path_with_http_info(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_core_v1_put_node_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `proxy_core_v1_put_node_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `proxy_core_v1_put_node_with_path`") + + + collection_formats = {} + + resource_path = '/api/v1/proxy/nodes/{name}/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_component_status(self, name, **kwargs): + """ + + read the specified ComponentStatus + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_component_status(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ComponentStatus (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ComponentStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_component_status_with_http_info(name, **kwargs) + else: + (data) = self.read_core_v1_component_status_with_http_info(name, **kwargs) + return data + + def read_core_v1_component_status_with_http_info(self, name, **kwargs): + """ + + read the specified ComponentStatus + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_component_status_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ComponentStatus (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ComponentStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_component_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_component_status`") + + + collection_formats = {} + + resource_path = '/api/v1/componentstatuses/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ComponentStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespace(self, name, **kwargs): + """ + + read the specified Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespace(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Namespace (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespace_with_http_info(name, **kwargs) + else: + (data) = self.read_core_v1_namespace_with_http_info(name, **kwargs) + return data + + def read_core_v1_namespace_with_http_info(self, name, **kwargs): + """ + + read the specified Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespace_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Namespace (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespace" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespace`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Namespace', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespace_status(self, name, **kwargs): + """ + + read status of the specified Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespace_status(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Namespace (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespace_status_with_http_info(name, **kwargs) + else: + (data) = self.read_core_v1_namespace_status_with_http_info(name, **kwargs) + return data + + def read_core_v1_namespace_status_with_http_info(self, name, **kwargs): + """ + + read status of the specified Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespace_status_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Namespace (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespace_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespace_status`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Namespace', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_config_map(self, name, namespace, **kwargs): + """ + + read the specified ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_config_map(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ConfigMap (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1ConfigMap + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_config_map_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_config_map_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_config_map_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_config_map_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ConfigMap (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1ConfigMap + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_config_map" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_config_map`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_config_map`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ConfigMap', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_endpoints(self, name, namespace, **kwargs): + """ + + read the specified Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_endpoints(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Endpoints (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Endpoints + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_endpoints_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_endpoints_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_endpoints_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Endpoints (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Endpoints + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_endpoints" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_endpoints`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_endpoints`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Endpoints', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_event(self, name, namespace, **kwargs): + """ + + read the specified Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_event(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Event (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Event + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_event_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_event_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_event_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_event_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Event (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Event + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_event" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_event`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_event`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Event', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_limit_range(self, name, namespace, **kwargs): + """ + + read the specified LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_limit_range(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the LimitRange (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1LimitRange + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_limit_range_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_limit_range_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_limit_range_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the LimitRange (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1LimitRange + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_limit_range" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_limit_range`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_limit_range`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LimitRange', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_persistent_volume_claim(self, name, namespace, **kwargs): + """ + + read the specified PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_persistent_volume_claim(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolumeClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolumeClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_persistent_volume_claim`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_persistent_volume_claim`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeClaim', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_persistent_volume_claim_status(self, name, namespace, **kwargs): + """ + + read status of the specified PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_persistent_volume_claim_status(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolumeClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_persistent_volume_claim_status_with_http_info(self, name, namespace, **kwargs): + """ + + read status of the specified PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolumeClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_persistent_volume_claim_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_persistent_volume_claim_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_persistent_volume_claim_status`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeClaim', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_pod(self, name, namespace, **kwargs): + """ + + read the specified Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_pod(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_pod_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_pod_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_pod_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_pod_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_pod`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_pod`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Pod', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_pod_log(self, name, namespace, **kwargs): + """ + + read log of the specified Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_pod_log(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str container: The container for which to stream logs. Defaults to only container if there is one container in the pod. + :param bool follow: Follow the log stream of the pod. Defaults to false. + :param int limit_bytes: If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. + :param str pretty: If 'true', then the output is pretty printed. + :param bool previous: Return previous terminated container logs. Defaults to false. + :param int since_seconds: A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + :param str since_time: An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + :param int tail_lines: If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime + :param bool timestamps: If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_pod_log_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_pod_log_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_pod_log_with_http_info(self, name, namespace, **kwargs): + """ + + read log of the specified Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_pod_log_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str container: The container for which to stream logs. Defaults to only container if there is one container in the pod. + :param bool follow: Follow the log stream of the pod. Defaults to false. + :param int limit_bytes: If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. + :param str pretty: If 'true', then the output is pretty printed. + :param bool previous: Return previous terminated container logs. Defaults to false. + :param int since_seconds: A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + :param str since_time: An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + :param int tail_lines: If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime + :param bool timestamps: If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'container', 'follow', 'limit_bytes', 'pretty', 'previous', 'since_seconds', 'since_time', 'tail_lines', 'timestamps'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_pod_log" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_pod_log`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_pod_log`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/log'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'container' in params: + query_params['container'] = params['container'] + if 'follow' in params: + query_params['follow'] = params['follow'] + if 'limit_bytes' in params: + query_params['limitBytes'] = params['limit_bytes'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'previous' in params: + query_params['previous'] = params['previous'] + if 'since_seconds' in params: + query_params['sinceSeconds'] = params['since_seconds'] + if 'since_time' in params: + query_params['sinceTime'] = params['since_time'] + if 'tail_lines' in params: + query_params['tailLines'] = params['tail_lines'] + if 'timestamps' in params: + query_params['timestamps'] = params['timestamps'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['text/plain', 'application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Pod', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_pod_status(self, name, namespace, **kwargs): + """ + + read status of the specified Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_pod_status(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_pod_status_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_pod_status_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_pod_status_with_http_info(self, name, namespace, **kwargs): + """ + + read status of the specified Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_pod_status_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_pod_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_pod_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_pod_status`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Pod', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_pod_template(self, name, namespace, **kwargs): + """ + + read the specified PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_pod_template(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1PodTemplate + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_pod_template_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_pod_template_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_pod_template_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_pod_template_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1PodTemplate + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_pod_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_pod_template`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_pod_template`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodTemplate', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_replication_controller(self, name, namespace, **kwargs): + """ + + read the specified ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_replication_controller(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicationController (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_replication_controller_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_replication_controller_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicationController (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_replication_controller`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_replication_controller`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicationController', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_replication_controller_status(self, name, namespace, **kwargs): + """ + + read status of the specified ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_replication_controller_status(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicationController (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_replication_controller_status_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_replication_controller_status_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_replication_controller_status_with_http_info(self, name, namespace, **kwargs): + """ + + read status of the specified ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_replication_controller_status_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicationController (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_replication_controller_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_replication_controller_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_replication_controller_status`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicationController', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_resource_quota(self, name, namespace, **kwargs): + """ + + read the specified ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_resource_quota(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_resource_quota_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_resource_quota_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_resource_quota`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_resource_quota`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_resource_quota_status(self, name, namespace, **kwargs): + """ + + read status of the specified ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_resource_quota_status(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_resource_quota_status_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_resource_quota_status_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_resource_quota_status_with_http_info(self, name, namespace, **kwargs): + """ + + read status of the specified ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_resource_quota_status_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_resource_quota_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_resource_quota_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_resource_quota_status`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_scale_scale(self, name, namespace, **kwargs): + """ + + read scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_scale_scale(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Scale + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_scale_scale_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_scale_scale_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_scale_scale_with_http_info(self, name, namespace, **kwargs): + """ + + read scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_scale_scale_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Scale + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_scale_scale" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_scale_scale`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_scale_scale`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Scale', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_secret(self, name, namespace, **kwargs): + """ + + read the specified Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_secret(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Secret (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Secret + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_secret_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_secret_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_secret_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_secret_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Secret (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Secret + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_secret" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_secret`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_secret`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Secret', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_service(self, name, namespace, **kwargs): + """ + + read the specified Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_service(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_service_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_service_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_service_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_service_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_service`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_service`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Service', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_service_account(self, name, namespace, **kwargs): + """ + + read the specified ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_service_account(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ServiceAccount (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1ServiceAccount + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_service_account_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_service_account_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_service_account_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_service_account_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ServiceAccount (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1ServiceAccount + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_service_account" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_service_account`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_service_account`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ServiceAccount', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_namespaced_service_status(self, name, namespace, **kwargs): + """ + + read status of the specified Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_service_status(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_namespaced_service_status_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_core_v1_namespaced_service_status_with_http_info(name, namespace, **kwargs) + return data + + def read_core_v1_namespaced_service_status_with_http_info(self, name, namespace, **kwargs): + """ + + read status of the specified Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_namespaced_service_status_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_namespaced_service_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_namespaced_service_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_core_v1_namespaced_service_status`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Service', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_node(self, name, **kwargs): + """ + + read the specified Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_node(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_node_with_http_info(name, **kwargs) + else: + (data) = self.read_core_v1_node_with_http_info(name, **kwargs) + return data + + def read_core_v1_node_with_http_info(self, name, **kwargs): + """ + + read the specified Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_node_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_node" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_node`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Node', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_node_status(self, name, **kwargs): + """ + + read status of the specified Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_node_status(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_node_status_with_http_info(name, **kwargs) + else: + (data) = self.read_core_v1_node_status_with_http_info(name, **kwargs) + return data + + def read_core_v1_node_status_with_http_info(self, name, **kwargs): + """ + + read status of the specified Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_node_status_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_node_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_node_status`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Node', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_persistent_volume(self, name, **kwargs): + """ + + read the specified PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_persistent_volume(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_persistent_volume_with_http_info(name, **kwargs) + else: + (data) = self.read_core_v1_persistent_volume_with_http_info(name, **kwargs) + return data + + def read_core_v1_persistent_volume_with_http_info(self, name, **kwargs): + """ + + read the specified PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_persistent_volume_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_persistent_volume" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_persistent_volume`") + + + collection_formats = {} + + resource_path = '/api/v1/persistentvolumes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolume', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_core_v1_persistent_volume_status(self, name, **kwargs): + """ + + read status of the specified PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_persistent_volume_status(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_core_v1_persistent_volume_status_with_http_info(name, **kwargs) + else: + (data) = self.read_core_v1_persistent_volume_status_with_http_info(name, **kwargs) + return data + + def read_core_v1_persistent_volume_status_with_http_info(self, name, **kwargs): + """ + + read status of the specified PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_core_v1_persistent_volume_status_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_core_v1_persistent_volume_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_core_v1_persistent_volume_status`") + + + collection_formats = {} + + resource_path = '/api/v1/persistentvolumes/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolume', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespace(self, name, body, **kwargs): + """ + + replace the specified Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespace(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Namespace (required) + :param V1Namespace body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespace_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_core_v1_namespace_with_http_info(name, body, **kwargs) + return data + + def replace_core_v1_namespace_with_http_info(self, name, body, **kwargs): + """ + + replace the specified Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespace_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Namespace (required) + :param V1Namespace body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespace" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespace`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespace`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Namespace', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespace_finalize(self, body, name, **kwargs): + """ + + replace finalize of the specified Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespace_finalize(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Namespace body: (required) + :param str name: name of the Namespace (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespace_finalize_with_http_info(body, name, **kwargs) + else: + (data) = self.replace_core_v1_namespace_finalize_with_http_info(body, name, **kwargs) + return data + + def replace_core_v1_namespace_finalize_with_http_info(self, body, name, **kwargs): + """ + + replace finalize of the specified Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespace_finalize_with_http_info(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Namespace body: (required) + :param str name: name of the Namespace (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespace_finalize" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespace_finalize`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespace_finalize`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{name}/finalize'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Namespace', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespace_status(self, name, body, **kwargs): + """ + + replace status of the specified Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespace_status(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Namespace (required) + :param V1Namespace body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespace_status_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_core_v1_namespace_status_with_http_info(name, body, **kwargs) + return data + + def replace_core_v1_namespace_status_with_http_info(self, name, body, **kwargs): + """ + + replace status of the specified Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespace_status_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Namespace (required) + :param V1Namespace body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespace_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespace_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespace_status`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Namespace', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespaced_config_map(self, name, namespace, body, **kwargs): + """ + + replace the specified ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_config_map(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ConfigMap (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ConfigMap body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ConfigMap + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_core_v1_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_core_v1_namespaced_config_map_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_config_map_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ConfigMap (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ConfigMap body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ConfigMap + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespaced_config_map" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespaced_config_map`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_core_v1_namespaced_config_map`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespaced_config_map`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ConfigMap', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespaced_endpoints(self, name, namespace, body, **kwargs): + """ + + replace the specified Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_endpoints(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Endpoints (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Endpoints body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Endpoints + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_core_v1_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_core_v1_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_endpoints_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Endpoints (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Endpoints body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Endpoints + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespaced_endpoints" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespaced_endpoints`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_core_v1_namespaced_endpoints`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespaced_endpoints`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Endpoints', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespaced_event(self, name, namespace, body, **kwargs): + """ + + replace the specified Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_event(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Event (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Event body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Event + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespaced_event_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_core_v1_namespaced_event_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_core_v1_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_event_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Event (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Event body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Event + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespaced_event" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespaced_event`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_core_v1_namespaced_event`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespaced_event`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Event', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespaced_limit_range(self, name, namespace, body, **kwargs): + """ + + replace the specified LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_limit_range(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the LimitRange (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1LimitRange body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LimitRange + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_core_v1_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_core_v1_namespaced_limit_range_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_limit_range_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the LimitRange (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1LimitRange body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LimitRange + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespaced_limit_range" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespaced_limit_range`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_core_v1_namespaced_limit_range`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespaced_limit_range`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LimitRange', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespaced_persistent_volume_claim(self, name, namespace, body, **kwargs): + """ + + replace the specified PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_persistent_volume_claim(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolumeClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PersistentVolumeClaim body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_core_v1_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolumeClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PersistentVolumeClaim body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespaced_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespaced_persistent_volume_claim`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_core_v1_namespaced_persistent_volume_claim`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespaced_persistent_volume_claim`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeClaim', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespaced_persistent_volume_claim_status(self, name, namespace, body, **kwargs): + """ + + replace status of the specified PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_persistent_volume_claim_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolumeClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PersistentVolumeClaim body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_core_v1_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_core_v1_namespaced_persistent_volume_claim_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace status of the specified PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolumeClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PersistentVolumeClaim body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespaced_persistent_volume_claim_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespaced_persistent_volume_claim_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_core_v1_namespaced_persistent_volume_claim_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespaced_persistent_volume_claim_status`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeClaim', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespaced_pod(self, name, namespace, body, **kwargs): + """ + + replace the specified Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_pod(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Pod body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespaced_pod_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_core_v1_namespaced_pod_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_core_v1_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_pod_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Pod body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespaced_pod`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_core_v1_namespaced_pod`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespaced_pod`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Pod', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespaced_pod_status(self, name, namespace, body, **kwargs): + """ + + replace status of the specified Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_pod_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Pod body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_core_v1_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_core_v1_namespaced_pod_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace status of the specified Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_pod_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Pod body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespaced_pod_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespaced_pod_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_core_v1_namespaced_pod_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespaced_pod_status`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Pod', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespaced_pod_template(self, name, namespace, body, **kwargs): + """ + + replace the specified PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_pod_template(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PodTemplate body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodTemplate + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_core_v1_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_core_v1_namespaced_pod_template_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_pod_template_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PodTemplate body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodTemplate + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespaced_pod_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespaced_pod_template`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_core_v1_namespaced_pod_template`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespaced_pod_template`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodTemplate', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespaced_replication_controller(self, name, namespace, body, **kwargs): + """ + + replace the specified ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_replication_controller(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicationController (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ReplicationController body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_core_v1_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_core_v1_namespaced_replication_controller_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_replication_controller_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicationController (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ReplicationController body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespaced_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespaced_replication_controller`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_core_v1_namespaced_replication_controller`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespaced_replication_controller`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicationController', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespaced_replication_controller_status(self, name, namespace, body, **kwargs): + """ + + replace status of the specified ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_replication_controller_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicationController (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ReplicationController body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_core_v1_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_core_v1_namespaced_replication_controller_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace status of the specified ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_replication_controller_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicationController (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ReplicationController body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespaced_replication_controller_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespaced_replication_controller_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_core_v1_namespaced_replication_controller_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespaced_replication_controller_status`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicationController', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespaced_resource_quota(self, name, namespace, body, **kwargs): + """ + + replace the specified ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_resource_quota(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ResourceQuota body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_core_v1_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_core_v1_namespaced_resource_quota_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_resource_quota_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ResourceQuota body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespaced_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespaced_resource_quota`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_core_v1_namespaced_resource_quota`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespaced_resource_quota`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespaced_resource_quota_status(self, name, namespace, body, **kwargs): + """ + + replace status of the specified ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_resource_quota_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ResourceQuota body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_core_v1_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_core_v1_namespaced_resource_quota_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace status of the specified ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_resource_quota_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ResourceQuota body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespaced_resource_quota_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespaced_resource_quota_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_core_v1_namespaced_resource_quota_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespaced_resource_quota_status`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespaced_scale_scale(self, name, namespace, body, **kwargs): + """ + + replace scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_scale_scale(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Scale body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Scale + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_core_v1_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_core_v1_namespaced_scale_scale_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_scale_scale_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Scale body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Scale + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespaced_scale_scale" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespaced_scale_scale`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_core_v1_namespaced_scale_scale`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespaced_scale_scale`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Scale', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespaced_secret(self, name, namespace, body, **kwargs): + """ + + replace the specified Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_secret(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Secret (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Secret body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Secret + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespaced_secret_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_core_v1_namespaced_secret_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_core_v1_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_secret_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Secret (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Secret body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Secret + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespaced_secret" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespaced_secret`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_core_v1_namespaced_secret`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespaced_secret`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Secret', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespaced_service(self, name, namespace, body, **kwargs): + """ + + replace the specified Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_service(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Service body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespaced_service_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_core_v1_namespaced_service_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_core_v1_namespaced_service_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_service_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Service body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespaced_service`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_core_v1_namespaced_service`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespaced_service`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Service', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespaced_service_account(self, name, namespace, body, **kwargs): + """ + + replace the specified ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_service_account(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ServiceAccount (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ServiceAccount body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ServiceAccount + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_core_v1_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_core_v1_namespaced_service_account_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_service_account_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ServiceAccount (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ServiceAccount body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ServiceAccount + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespaced_service_account" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespaced_service_account`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_core_v1_namespaced_service_account`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespaced_service_account`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ServiceAccount', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_namespaced_service_status(self, name, namespace, body, **kwargs): + """ + + replace status of the specified Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_service_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Service body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_core_v1_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_core_v1_namespaced_service_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace status of the specified Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_namespaced_service_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Service body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_namespaced_service_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_namespaced_service_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_core_v1_namespaced_service_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_namespaced_service_status`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Service', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_node(self, name, body, **kwargs): + """ + + replace the specified Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_node(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param V1Node body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_node_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_core_v1_node_with_http_info(name, body, **kwargs) + return data + + def replace_core_v1_node_with_http_info(self, name, body, **kwargs): + """ + + replace the specified Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_node_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param V1Node body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_node" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_node`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_node`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Node', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_node_status(self, name, body, **kwargs): + """ + + replace status of the specified Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_node_status(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param V1Node body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_node_status_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_core_v1_node_status_with_http_info(name, body, **kwargs) + return data + + def replace_core_v1_node_status_with_http_info(self, name, body, **kwargs): + """ + + replace status of the specified Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_node_status_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param V1Node body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_node_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_node_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_node_status`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Node', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_persistent_volume(self, name, body, **kwargs): + """ + + replace the specified PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_persistent_volume(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param V1PersistentVolume body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_persistent_volume_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_core_v1_persistent_volume_with_http_info(name, body, **kwargs) + return data + + def replace_core_v1_persistent_volume_with_http_info(self, name, body, **kwargs): + """ + + replace the specified PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_persistent_volume_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param V1PersistentVolume body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_persistent_volume" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_persistent_volume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_persistent_volume`") + + + collection_formats = {} + + resource_path = '/api/v1/persistentvolumes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolume', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_core_v1_persistent_volume_status(self, name, body, **kwargs): + """ + + replace status of the specified PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_persistent_volume_status(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param V1PersistentVolume body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_core_v1_persistent_volume_status_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_core_v1_persistent_volume_status_with_http_info(name, body, **kwargs) + return data + + def replace_core_v1_persistent_volume_status_with_http_info(self, name, body, **kwargs): + """ + + replace status of the specified PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_core_v1_persistent_volume_status_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param V1PersistentVolume body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_core_v1_persistent_volume_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_core_v1_persistent_volume_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_core_v1_persistent_volume_status`") + + + collection_formats = {} + + resource_path = '/api/v1/persistentvolumes/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolume', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_config_map_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_config_map_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_config_map_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_core_v1_config_map_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_core_v1_config_map_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_config_map_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_config_map_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/watch/configmaps'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_endpoints_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_endpoints_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_endpoints_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_core_v1_endpoints_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_core_v1_endpoints_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_endpoints_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_endpoints_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/watch/endpoints'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_event_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_event_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_event_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_core_v1_event_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_core_v1_event_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_event_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_event_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/watch/events'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_limit_range_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_limit_range_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_limit_range_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_core_v1_limit_range_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_core_v1_limit_range_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_limit_range_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_limit_range_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/watch/limitranges'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespace(self, name, **kwargs): + """ + + watch changes to an object of kind Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespace(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Namespace (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespace_with_http_info(name, **kwargs) + else: + (data) = self.watch_core_v1_namespace_with_http_info(name, **kwargs) + return data + + def watch_core_v1_namespace_with_http_info(self, name, **kwargs): + """ + + watch changes to an object of kind Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespace_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Namespace (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespace" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_core_v1_namespace`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespace_list(self, **kwargs): + """ + + watch individual changes to a list of Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespace_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespace_list_with_http_info(**kwargs) + else: + (data) = self.watch_core_v1_namespace_list_with_http_info(**kwargs) + return data + + def watch_core_v1_namespace_list_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of Namespace + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespace_list_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespace_list" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_config_map(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_config_map(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ConfigMap (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_config_map_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_config_map_with_http_info(name, namespace, **kwargs) + return data + + def watch_core_v1_namespaced_config_map_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_config_map_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ConfigMap (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_config_map" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_core_v1_namespaced_config_map`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_config_map`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_config_map_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_config_map_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_config_map_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_config_map_list_with_http_info(namespace, **kwargs) + return data + + def watch_core_v1_namespaced_config_map_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of ConfigMap + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_config_map_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_config_map_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_config_map_list`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/configmaps'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_endpoints(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_endpoints(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Endpoints (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_endpoints_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_endpoints_with_http_info(name, namespace, **kwargs) + return data + + def watch_core_v1_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_endpoints_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Endpoints (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_endpoints" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_core_v1_namespaced_endpoints`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_endpoints`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_endpoints_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_endpoints_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_endpoints_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_endpoints_list_with_http_info(namespace, **kwargs) + return data + + def watch_core_v1_namespaced_endpoints_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of Endpoints + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_endpoints_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_endpoints_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_endpoints_list`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/endpoints'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_event(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_event(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Event (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_event_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_event_with_http_info(name, namespace, **kwargs) + return data + + def watch_core_v1_namespaced_event_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_event_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Event (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_event" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_core_v1_namespaced_event`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_event`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_event_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_event_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_event_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_event_list_with_http_info(namespace, **kwargs) + return data + + def watch_core_v1_namespaced_event_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of Event + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_event_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_event_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_event_list`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/events'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_limit_range(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_limit_range(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the LimitRange (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_limit_range_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_limit_range_with_http_info(name, namespace, **kwargs) + return data + + def watch_core_v1_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_limit_range_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the LimitRange (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_limit_range" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_core_v1_namespaced_limit_range`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_limit_range`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_limit_range_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_limit_range_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_limit_range_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_limit_range_list_with_http_info(namespace, **kwargs) + return data + + def watch_core_v1_namespaced_limit_range_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of LimitRange + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_limit_range_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_limit_range_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_limit_range_list`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/limitranges'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_persistent_volume_claim(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_persistent_volume_claim(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolumeClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) + return data + + def watch_core_v1_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolumeClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_core_v1_namespaced_persistent_volume_claim`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_persistent_volume_claim`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_persistent_volume_claim_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_persistent_volume_claim_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_persistent_volume_claim_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_persistent_volume_claim_list_with_http_info(namespace, **kwargs) + return data + + def watch_core_v1_namespaced_persistent_volume_claim_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_persistent_volume_claim_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_persistent_volume_claim_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_persistent_volume_claim_list`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_pod(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_pod(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_pod_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_pod_with_http_info(name, namespace, **kwargs) + return data + + def watch_core_v1_namespaced_pod_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_pod_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_core_v1_namespaced_pod`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_pod`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_pod_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_pod_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_pod_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_pod_list_with_http_info(namespace, **kwargs) + return data + + def watch_core_v1_namespaced_pod_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_pod_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_pod_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_pod_list`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/pods'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_pod_template(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_pod_template(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_pod_template_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_pod_template_with_http_info(name, namespace, **kwargs) + return data + + def watch_core_v1_namespaced_pod_template_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_pod_template_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_pod_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_core_v1_namespaced_pod_template`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_pod_template`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_pod_template_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_pod_template_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_pod_template_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_pod_template_list_with_http_info(namespace, **kwargs) + return data + + def watch_core_v1_namespaced_pod_template_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_pod_template_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_pod_template_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_pod_template_list`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_replication_controller(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_replication_controller(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicationController (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) + return data + + def watch_core_v1_namespaced_replication_controller_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_replication_controller_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicationController (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_core_v1_namespaced_replication_controller`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_replication_controller`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_replication_controller_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_replication_controller_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_replication_controller_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_replication_controller_list_with_http_info(namespace, **kwargs) + return data + + def watch_core_v1_namespaced_replication_controller_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_replication_controller_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_replication_controller_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_replication_controller_list`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_resource_quota(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_resource_quota(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) + return data + + def watch_core_v1_namespaced_resource_quota_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_resource_quota_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_core_v1_namespaced_resource_quota`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_resource_quota`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_resource_quota_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_resource_quota_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_resource_quota_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_resource_quota_list_with_http_info(namespace, **kwargs) + return data + + def watch_core_v1_namespaced_resource_quota_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_resource_quota_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_resource_quota_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_resource_quota_list`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_secret(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_secret(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Secret (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_secret_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_secret_with_http_info(name, namespace, **kwargs) + return data + + def watch_core_v1_namespaced_secret_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_secret_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Secret (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_secret" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_core_v1_namespaced_secret`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_secret`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_secret_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_secret_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_secret_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_secret_list_with_http_info(namespace, **kwargs) + return data + + def watch_core_v1_namespaced_secret_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_secret_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_secret_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_secret_list`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/secrets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_service(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_service(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_service_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_service_with_http_info(name, namespace, **kwargs) + return data + + def watch_core_v1_namespaced_service_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_service_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_core_v1_namespaced_service`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_service`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_service_account(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_service_account(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ServiceAccount (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_service_account_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_service_account_with_http_info(name, namespace, **kwargs) + return data + + def watch_core_v1_namespaced_service_account_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_service_account_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ServiceAccount (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_service_account" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_core_v1_namespaced_service_account`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_service_account`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_service_account_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_service_account_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_service_account_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_service_account_list_with_http_info(namespace, **kwargs) + return data + + def watch_core_v1_namespaced_service_account_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_service_account_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_service_account_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_service_account_list`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_namespaced_service_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_service_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_namespaced_service_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_core_v1_namespaced_service_list_with_http_info(namespace, **kwargs) + return data + + def watch_core_v1_namespaced_service_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_namespaced_service_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_namespaced_service_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_core_v1_namespaced_service_list`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/namespaces/{namespace}/services'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_node(self, name, **kwargs): + """ + + watch changes to an object of kind Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_node(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_node_with_http_info(name, **kwargs) + else: + (data) = self.watch_core_v1_node_with_http_info(name, **kwargs) + return data + + def watch_core_v1_node_with_http_info(self, name, **kwargs): + """ + + watch changes to an object of kind Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_node_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_node" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_core_v1_node`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/nodes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_node_list(self, **kwargs): + """ + + watch individual changes to a list of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_node_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_node_list_with_http_info(**kwargs) + else: + (data) = self.watch_core_v1_node_list_with_http_info(**kwargs) + return data + + def watch_core_v1_node_list_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of Node + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_node_list_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_node_list" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/watch/nodes'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_persistent_volume(self, name, **kwargs): + """ + + watch changes to an object of kind PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_persistent_volume(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_persistent_volume_with_http_info(name, **kwargs) + else: + (data) = self.watch_core_v1_persistent_volume_with_http_info(name, **kwargs) + return data + + def watch_core_v1_persistent_volume_with_http_info(self, name, **kwargs): + """ + + watch changes to an object of kind PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_persistent_volume_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_persistent_volume" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_core_v1_persistent_volume`") + + + collection_formats = {} + + resource_path = '/api/v1/watch/persistentvolumes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_persistent_volume_claim_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_persistent_volume_claim_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_persistent_volume_claim_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_core_v1_persistent_volume_claim_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_core_v1_persistent_volume_claim_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of PersistentVolumeClaim + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_persistent_volume_claim_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_persistent_volume_claim_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/watch/persistentvolumeclaims'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_persistent_volume_list(self, **kwargs): + """ + + watch individual changes to a list of PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_persistent_volume_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_persistent_volume_list_with_http_info(**kwargs) + else: + (data) = self.watch_core_v1_persistent_volume_list_with_http_info(**kwargs) + return data + + def watch_core_v1_persistent_volume_list_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of PersistentVolume + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_persistent_volume_list_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_persistent_volume_list" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/watch/persistentvolumes'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_pod_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_pod_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_pod_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_core_v1_pod_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_core_v1_pod_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of Pod + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_pod_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_pod_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/watch/pods'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_pod_template_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_pod_template_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_pod_template_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_core_v1_pod_template_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_core_v1_pod_template_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of PodTemplate + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_pod_template_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_pod_template_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/watch/podtemplates'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_replication_controller_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_replication_controller_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_replication_controller_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_core_v1_replication_controller_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_core_v1_replication_controller_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of ReplicationController + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_replication_controller_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_replication_controller_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/watch/replicationcontrollers'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_resource_quota_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_resource_quota_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_resource_quota_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_core_v1_resource_quota_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_core_v1_resource_quota_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of ResourceQuota + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_resource_quota_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_resource_quota_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/watch/resourcequotas'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_secret_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_secret_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_secret_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_core_v1_secret_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_core_v1_secret_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of Secret + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_secret_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_secret_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/watch/secrets'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_service_account_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_service_account_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_service_account_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_core_v1_service_account_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_core_v1_service_account_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of ServiceAccount + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_service_account_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_service_account_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/watch/serviceaccounts'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_core_v1_service_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_service_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_core_v1_service_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_core_v1_service_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_core_v1_service_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of Service + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_core_v1_service_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_core_v1_service_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/api/v1/watch/services'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/extensions_api.py b/k8sclient/apis/extensions_api.py new file mode 100644 index 000000000..9f1e19f7a --- /dev/null +++ b/k8sclient/apis/extensions_api.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class ExtensionsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_extensions_api_group(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_extensions_api_group(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_extensions_api_group_with_http_info(**kwargs) + else: + (data) = self.get_extensions_api_group_with_http_info(**kwargs) + return data + + def get_extensions_api_group_with_http_info(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_extensions_api_group_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_extensions_api_group" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIGroup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/extensions_v1beta1_api.py b/k8sclient/apis/extensions_v1beta1_api.py new file mode 100644 index 000000000..0bdc728e0 --- /dev/null +++ b/k8sclient/apis/extensions_v1beta1_api.py @@ -0,0 +1,14577 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class ExtensionsV1beta1Api(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_extensions_v1beta1_namespaced_daemon_set(self, namespace, body, **kwargs): + """ + + create a DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_extensions_v1beta1_namespaced_daemon_set(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1DaemonSet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1DaemonSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_extensions_v1beta1_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_extensions_v1beta1_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) + return data + + def create_extensions_v1beta1_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs): + """ + + create a DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_extensions_v1beta1_namespaced_daemon_set_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1DaemonSet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1DaemonSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_extensions_v1beta1_namespaced_daemon_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_extensions_v1beta1_namespaced_daemon_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_extensions_v1beta1_namespaced_daemon_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_extensions_v1beta1_namespaced_deployment(self, namespace, body, **kwargs): + """ + + create a Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_extensions_v1beta1_namespaced_deployment(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Deployment body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_extensions_v1beta1_namespaced_deployment_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_extensions_v1beta1_namespaced_deployment_with_http_info(namespace, body, **kwargs) + return data + + def create_extensions_v1beta1_namespaced_deployment_with_http_info(self, namespace, body, **kwargs): + """ + + create a Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_extensions_v1beta1_namespaced_deployment_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Deployment body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_extensions_v1beta1_namespaced_deployment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_extensions_v1beta1_namespaced_deployment`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_extensions_v1beta1_namespaced_deployment`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Deployment', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_extensions_v1beta1_namespaced_deployment_rollback_rollback(self, body, name, namespace, **kwargs): + """ + + create rollback of a DeploymentRollback + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_extensions_v1beta1_namespaced_deployment_rollback_rollback(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1DeploymentRollback body: (required) + :param str name: name of the DeploymentRollback (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1DeploymentRollback + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_extensions_v1beta1_namespaced_deployment_rollback_rollback_with_http_info(body, name, namespace, **kwargs) + else: + (data) = self.create_extensions_v1beta1_namespaced_deployment_rollback_rollback_with_http_info(body, name, namespace, **kwargs) + return data + + def create_extensions_v1beta1_namespaced_deployment_rollback_rollback_with_http_info(self, body, name, namespace, **kwargs): + """ + + create rollback of a DeploymentRollback + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_extensions_v1beta1_namespaced_deployment_rollback_rollback_with_http_info(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1DeploymentRollback body: (required) + :param str name: name of the DeploymentRollback (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1DeploymentRollback + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_extensions_v1beta1_namespaced_deployment_rollback_rollback" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_extensions_v1beta1_namespaced_deployment_rollback_rollback`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `create_extensions_v1beta1_namespaced_deployment_rollback_rollback`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_extensions_v1beta1_namespaced_deployment_rollback_rollback`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DeploymentRollback', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(self, namespace, body, **kwargs): + """ + + create a HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) + return data + + def create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, body, **kwargs): + """ + + create a HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_extensions_v1beta1_namespaced_ingress(self, namespace, body, **kwargs): + """ + + create an Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_extensions_v1beta1_namespaced_ingress(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Ingress body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Ingress + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_extensions_v1beta1_namespaced_ingress_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_extensions_v1beta1_namespaced_ingress_with_http_info(namespace, body, **kwargs) + return data + + def create_extensions_v1beta1_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): + """ + + create an Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_extensions_v1beta1_namespaced_ingress_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Ingress body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Ingress + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_extensions_v1beta1_namespaced_ingress" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_extensions_v1beta1_namespaced_ingress`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_extensions_v1beta1_namespaced_ingress`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Ingress', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_extensions_v1beta1_namespaced_job(self, namespace, body, **kwargs): + """ + + create a Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_extensions_v1beta1_namespaced_job(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Job body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Job + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_extensions_v1beta1_namespaced_job_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_extensions_v1beta1_namespaced_job_with_http_info(namespace, body, **kwargs) + return data + + def create_extensions_v1beta1_namespaced_job_with_http_info(self, namespace, body, **kwargs): + """ + + create a Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_extensions_v1beta1_namespaced_job_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Job body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Job + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_extensions_v1beta1_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_extensions_v1beta1_namespaced_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_extensions_v1beta1_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Job', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_extensions_v1beta1_namespaced_network_policy(self, namespace, body, **kwargs): + """ + + create a NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_extensions_v1beta1_namespaced_network_policy(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1NetworkPolicy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1NetworkPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_extensions_v1beta1_namespaced_network_policy_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_extensions_v1beta1_namespaced_network_policy_with_http_info(namespace, body, **kwargs) + return data + + def create_extensions_v1beta1_namespaced_network_policy_with_http_info(self, namespace, body, **kwargs): + """ + + create a NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_extensions_v1beta1_namespaced_network_policy_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1NetworkPolicy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1NetworkPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_extensions_v1beta1_namespaced_network_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_extensions_v1beta1_namespaced_network_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_extensions_v1beta1_namespaced_network_policy`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1NetworkPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_extensions_v1beta1_namespaced_replica_set(self, namespace, body, **kwargs): + """ + + create a ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_extensions_v1beta1_namespaced_replica_set(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1ReplicaSet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_extensions_v1beta1_namespaced_replica_set_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_extensions_v1beta1_namespaced_replica_set_with_http_info(namespace, body, **kwargs) + return data + + def create_extensions_v1beta1_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs): + """ + + create a ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_extensions_v1beta1_namespaced_replica_set_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1ReplicaSet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_extensions_v1beta1_namespaced_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_extensions_v1beta1_namespaced_replica_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_extensions_v1beta1_namespaced_replica_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_extensions_v1beta1_third_party_resource(self, body, **kwargs): + """ + + create a ThirdPartyResource + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_extensions_v1beta1_third_party_resource(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1ThirdPartyResource body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ThirdPartyResource + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_extensions_v1beta1_third_party_resource_with_http_info(body, **kwargs) + else: + (data) = self.create_extensions_v1beta1_third_party_resource_with_http_info(body, **kwargs) + return data + + def create_extensions_v1beta1_third_party_resource_with_http_info(self, body, **kwargs): + """ + + create a ThirdPartyResource + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_extensions_v1beta1_third_party_resource_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1ThirdPartyResource body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ThirdPartyResource + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_extensions_v1beta1_third_party_resource" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_extensions_v1beta1_third_party_resource`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/thirdpartyresources'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ThirdPartyResource', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_extensions_v1beta1_collection_namespaced_daemon_set(self, namespace, **kwargs): + """ + + delete collection of DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_collection_namespaced_daemon_set(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_extensions_v1beta1_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_extensions_v1beta1_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) + return data + + def delete_extensions_v1beta1_collection_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): + """ + + delete collection of DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_collection_namespaced_daemon_set_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_extensions_v1beta1_collection_namespaced_daemon_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_extensions_v1beta1_collection_namespaced_daemon_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_extensions_v1beta1_collection_namespaced_deployment(self, namespace, **kwargs): + """ + + delete collection of Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_collection_namespaced_deployment(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_extensions_v1beta1_collection_namespaced_deployment_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_extensions_v1beta1_collection_namespaced_deployment_with_http_info(namespace, **kwargs) + return data + + def delete_extensions_v1beta1_collection_namespaced_deployment_with_http_info(self, namespace, **kwargs): + """ + + delete collection of Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_collection_namespaced_deployment_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_extensions_v1beta1_collection_namespaced_deployment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_extensions_v1beta1_collection_namespaced_deployment`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_extensions_v1beta1_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): + """ + + delete collection of HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_collection_namespaced_horizontal_pod_autoscaler(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_extensions_v1beta1_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_extensions_v1beta1_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + return data + + def delete_extensions_v1beta1_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): + """ + + delete collection of HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_extensions_v1beta1_collection_namespaced_horizontal_pod_autoscaler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_extensions_v1beta1_collection_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_extensions_v1beta1_collection_namespaced_ingress(self, namespace, **kwargs): + """ + + delete collection of Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_collection_namespaced_ingress(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_extensions_v1beta1_collection_namespaced_ingress_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_extensions_v1beta1_collection_namespaced_ingress_with_http_info(namespace, **kwargs) + return data + + def delete_extensions_v1beta1_collection_namespaced_ingress_with_http_info(self, namespace, **kwargs): + """ + + delete collection of Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_collection_namespaced_ingress_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_extensions_v1beta1_collection_namespaced_ingress" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_extensions_v1beta1_collection_namespaced_ingress`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_extensions_v1beta1_collection_namespaced_job(self, namespace, **kwargs): + """ + + delete collection of Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_collection_namespaced_job(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_extensions_v1beta1_collection_namespaced_job_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_extensions_v1beta1_collection_namespaced_job_with_http_info(namespace, **kwargs) + return data + + def delete_extensions_v1beta1_collection_namespaced_job_with_http_info(self, namespace, **kwargs): + """ + + delete collection of Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_collection_namespaced_job_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_extensions_v1beta1_collection_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_extensions_v1beta1_collection_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_extensions_v1beta1_collection_namespaced_network_policy(self, namespace, **kwargs): + """ + + delete collection of NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_collection_namespaced_network_policy(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_extensions_v1beta1_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_extensions_v1beta1_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) + return data + + def delete_extensions_v1beta1_collection_namespaced_network_policy_with_http_info(self, namespace, **kwargs): + """ + + delete collection of NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_collection_namespaced_network_policy_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_extensions_v1beta1_collection_namespaced_network_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_extensions_v1beta1_collection_namespaced_network_policy`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_extensions_v1beta1_collection_namespaced_replica_set(self, namespace, **kwargs): + """ + + delete collection of ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_collection_namespaced_replica_set(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_extensions_v1beta1_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_extensions_v1beta1_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) + return data + + def delete_extensions_v1beta1_collection_namespaced_replica_set_with_http_info(self, namespace, **kwargs): + """ + + delete collection of ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_collection_namespaced_replica_set_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_extensions_v1beta1_collection_namespaced_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_extensions_v1beta1_collection_namespaced_replica_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_extensions_v1beta1_collection_third_party_resource(self, **kwargs): + """ + + delete collection of ThirdPartyResource + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_collection_third_party_resource(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_extensions_v1beta1_collection_third_party_resource_with_http_info(**kwargs) + else: + (data) = self.delete_extensions_v1beta1_collection_third_party_resource_with_http_info(**kwargs) + return data + + def delete_extensions_v1beta1_collection_third_party_resource_with_http_info(self, **kwargs): + """ + + delete collection of ThirdPartyResource + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_collection_third_party_resource_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_extensions_v1beta1_collection_third_party_resource" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/thirdpartyresources'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_extensions_v1beta1_namespaced_daemon_set(self, name, namespace, body, **kwargs): + """ + + delete a DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_namespaced_daemon_set(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_extensions_v1beta1_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_extensions_v1beta1_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_extensions_v1beta1_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_namespaced_daemon_set_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_extensions_v1beta1_namespaced_daemon_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_extensions_v1beta1_namespaced_daemon_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_extensions_v1beta1_namespaced_daemon_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_extensions_v1beta1_namespaced_daemon_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_extensions_v1beta1_namespaced_deployment(self, name, namespace, body, **kwargs): + """ + + delete a Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_namespaced_deployment(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_extensions_v1beta1_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_extensions_v1beta1_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_extensions_v1beta1_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_namespaced_deployment_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_extensions_v1beta1_namespaced_deployment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_extensions_v1beta1_namespaced_deployment`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_extensions_v1beta1_namespaced_deployment`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_extensions_v1beta1_namespaced_deployment`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): + """ + + delete a HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_extensions_v1beta1_namespaced_ingress(self, name, namespace, body, **kwargs): + """ + + delete an Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_namespaced_ingress(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_extensions_v1beta1_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_extensions_v1beta1_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_extensions_v1beta1_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete an Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_namespaced_ingress_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_extensions_v1beta1_namespaced_ingress" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_extensions_v1beta1_namespaced_ingress`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_extensions_v1beta1_namespaced_ingress`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_extensions_v1beta1_namespaced_ingress`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_extensions_v1beta1_namespaced_job(self, name, namespace, body, **kwargs): + """ + + delete a Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_namespaced_job(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_extensions_v1beta1_namespaced_job_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_extensions_v1beta1_namespaced_job_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_extensions_v1beta1_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_namespaced_job_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_extensions_v1beta1_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_extensions_v1beta1_namespaced_job`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_extensions_v1beta1_namespaced_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_extensions_v1beta1_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_extensions_v1beta1_namespaced_network_policy(self, name, namespace, body, **kwargs): + """ + + delete a NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_namespaced_network_policy(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_extensions_v1beta1_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_extensions_v1beta1_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_extensions_v1beta1_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_namespaced_network_policy_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_extensions_v1beta1_namespaced_network_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_extensions_v1beta1_namespaced_network_policy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_extensions_v1beta1_namespaced_network_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_extensions_v1beta1_namespaced_network_policy`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_extensions_v1beta1_namespaced_replica_set(self, name, namespace, body, **kwargs): + """ + + delete a ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_namespaced_replica_set(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicaSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_extensions_v1beta1_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_extensions_v1beta1_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_extensions_v1beta1_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_namespaced_replica_set_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicaSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_extensions_v1beta1_namespaced_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_extensions_v1beta1_namespaced_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_extensions_v1beta1_namespaced_replica_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_extensions_v1beta1_namespaced_replica_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_extensions_v1beta1_third_party_resource(self, name, body, **kwargs): + """ + + delete a ThirdPartyResource + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_third_party_resource(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ThirdPartyResource (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_extensions_v1beta1_third_party_resource_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_extensions_v1beta1_third_party_resource_with_http_info(name, body, **kwargs) + return data + + def delete_extensions_v1beta1_third_party_resource_with_http_info(self, name, body, **kwargs): + """ + + delete a ThirdPartyResource + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_extensions_v1beta1_third_party_resource_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ThirdPartyResource (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_extensions_v1beta1_third_party_resource" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_extensions_v1beta1_third_party_resource`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_extensions_v1beta1_third_party_resource`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/thirdpartyresources/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def get_extensions_v1beta1_api_resources(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_extensions_v1beta1_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_extensions_v1beta1_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_extensions_v1beta1_api_resources_with_http_info(**kwargs) + return data + + def get_extensions_v1beta1_api_resources_with_http_info(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_extensions_v1beta1_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_extensions_v1beta1_api_resources" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_extensions_v1beta1_daemon_set_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_daemon_set_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1DaemonSetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_extensions_v1beta1_daemon_set_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_extensions_v1beta1_daemon_set_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_extensions_v1beta1_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_daemon_set_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1DaemonSetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_extensions_v1beta1_daemon_set_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/daemonsets'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_extensions_v1beta1_deployment_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_deployment_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1DeploymentList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_extensions_v1beta1_deployment_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_extensions_v1beta1_deployment_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_extensions_v1beta1_deployment_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_deployment_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1DeploymentList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_extensions_v1beta1_deployment_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/deployments'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DeploymentList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_extensions_v1beta1_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_horizontal_pod_autoscaler_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1HorizontalPodAutoscalerList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_extensions_v1beta1_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_extensions_v1beta1_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_extensions_v1beta1_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1HorizontalPodAutoscalerList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_extensions_v1beta1_horizontal_pod_autoscaler_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/horizontalpodautoscalers'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1HorizontalPodAutoscalerList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_extensions_v1beta1_ingress_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_ingress_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1IngressList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_extensions_v1beta1_ingress_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_extensions_v1beta1_ingress_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_extensions_v1beta1_ingress_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_ingress_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1IngressList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_extensions_v1beta1_ingress_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/ingresses'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1IngressList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_extensions_v1beta1_job_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_job_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1JobList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_extensions_v1beta1_job_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_extensions_v1beta1_job_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_extensions_v1beta1_job_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_job_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1JobList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_extensions_v1beta1_job_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/jobs'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1JobList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_extensions_v1beta1_namespaced_daemon_set(self, namespace, **kwargs): + """ + + list or watch objects of kind DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_namespaced_daemon_set(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1DaemonSetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_extensions_v1beta1_namespaced_daemon_set_with_http_info(namespace, **kwargs) + else: + (data) = self.list_extensions_v1beta1_namespaced_daemon_set_with_http_info(namespace, **kwargs) + return data + + def list_extensions_v1beta1_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_namespaced_daemon_set_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1DaemonSetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_extensions_v1beta1_namespaced_daemon_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_extensions_v1beta1_namespaced_daemon_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_extensions_v1beta1_namespaced_deployment(self, namespace, **kwargs): + """ + + list or watch objects of kind Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_namespaced_deployment(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1DeploymentList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_extensions_v1beta1_namespaced_deployment_with_http_info(namespace, **kwargs) + else: + (data) = self.list_extensions_v1beta1_namespaced_deployment_with_http_info(namespace, **kwargs) + return data + + def list_extensions_v1beta1_namespaced_deployment_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_namespaced_deployment_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1DeploymentList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_extensions_v1beta1_namespaced_deployment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_extensions_v1beta1_namespaced_deployment`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DeploymentList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): + """ + + list or watch objects of kind HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1HorizontalPodAutoscalerList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + else: + (data) = self.list_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + return data + + def list_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1HorizontalPodAutoscalerList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_extensions_v1beta1_namespaced_horizontal_pod_autoscaler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_extensions_v1beta1_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1HorizontalPodAutoscalerList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_extensions_v1beta1_namespaced_ingress(self, namespace, **kwargs): + """ + + list or watch objects of kind Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_namespaced_ingress(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1IngressList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_extensions_v1beta1_namespaced_ingress_with_http_info(namespace, **kwargs) + else: + (data) = self.list_extensions_v1beta1_namespaced_ingress_with_http_info(namespace, **kwargs) + return data + + def list_extensions_v1beta1_namespaced_ingress_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_namespaced_ingress_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1IngressList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_extensions_v1beta1_namespaced_ingress" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_extensions_v1beta1_namespaced_ingress`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1IngressList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_extensions_v1beta1_namespaced_job(self, namespace, **kwargs): + """ + + list or watch objects of kind Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_namespaced_job(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1JobList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_extensions_v1beta1_namespaced_job_with_http_info(namespace, **kwargs) + else: + (data) = self.list_extensions_v1beta1_namespaced_job_with_http_info(namespace, **kwargs) + return data + + def list_extensions_v1beta1_namespaced_job_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_namespaced_job_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1JobList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_extensions_v1beta1_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_extensions_v1beta1_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1JobList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_extensions_v1beta1_namespaced_network_policy(self, namespace, **kwargs): + """ + + list or watch objects of kind NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_namespaced_network_policy(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1NetworkPolicyList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_extensions_v1beta1_namespaced_network_policy_with_http_info(namespace, **kwargs) + else: + (data) = self.list_extensions_v1beta1_namespaced_network_policy_with_http_info(namespace, **kwargs) + return data + + def list_extensions_v1beta1_namespaced_network_policy_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_namespaced_network_policy_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1NetworkPolicyList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_extensions_v1beta1_namespaced_network_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_extensions_v1beta1_namespaced_network_policy`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1NetworkPolicyList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_extensions_v1beta1_namespaced_replica_set(self, namespace, **kwargs): + """ + + list or watch objects of kind ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_namespaced_replica_set(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1ReplicaSetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_extensions_v1beta1_namespaced_replica_set_with_http_info(namespace, **kwargs) + else: + (data) = self.list_extensions_v1beta1_namespaced_replica_set_with_http_info(namespace, **kwargs) + return data + + def list_extensions_v1beta1_namespaced_replica_set_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_namespaced_replica_set_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1ReplicaSetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_extensions_v1beta1_namespaced_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_extensions_v1beta1_namespaced_replica_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_extensions_v1beta1_network_policy_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_network_policy_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1NetworkPolicyList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_extensions_v1beta1_network_policy_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_extensions_v1beta1_network_policy_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_extensions_v1beta1_network_policy_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_network_policy_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1NetworkPolicyList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_extensions_v1beta1_network_policy_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/networkpolicies'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1NetworkPolicyList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_extensions_v1beta1_replica_set_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_replica_set_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1ReplicaSetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_extensions_v1beta1_replica_set_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_extensions_v1beta1_replica_set_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_extensions_v1beta1_replica_set_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_replica_set_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1ReplicaSetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_extensions_v1beta1_replica_set_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/replicasets'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_extensions_v1beta1_third_party_resource(self, **kwargs): + """ + + list or watch objects of kind ThirdPartyResource + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_third_party_resource(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1ThirdPartyResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_extensions_v1beta1_third_party_resource_with_http_info(**kwargs) + else: + (data) = self.list_extensions_v1beta1_third_party_resource_with_http_info(**kwargs) + return data + + def list_extensions_v1beta1_third_party_resource_with_http_info(self, **kwargs): + """ + + list or watch objects of kind ThirdPartyResource + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_extensions_v1beta1_third_party_resource_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1ThirdPartyResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_extensions_v1beta1_third_party_resource" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/thirdpartyresources'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ThirdPartyResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_extensions_v1beta1_namespaced_daemon_set(self, name, namespace, body, **kwargs): + """ + + partially update the specified DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_daemon_set(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1DaemonSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_extensions_v1beta1_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_extensions_v1beta1_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_extensions_v1beta1_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_daemon_set_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1DaemonSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_extensions_v1beta1_namespaced_daemon_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_extensions_v1beta1_namespaced_daemon_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_extensions_v1beta1_namespaced_daemon_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_extensions_v1beta1_namespaced_daemon_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_extensions_v1beta1_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_daemon_set_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1DaemonSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_extensions_v1beta1_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_extensions_v1beta1_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_extensions_v1beta1_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_daemon_set_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1DaemonSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_extensions_v1beta1_namespaced_daemon_set_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_extensions_v1beta1_namespaced_daemon_set_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_extensions_v1beta1_namespaced_daemon_set_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_extensions_v1beta1_namespaced_daemon_set_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_extensions_v1beta1_namespaced_deployment(self, name, namespace, body, **kwargs): + """ + + partially update the specified Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_deployment(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_extensions_v1beta1_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_extensions_v1beta1_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_extensions_v1beta1_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_deployment_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_extensions_v1beta1_namespaced_deployment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_extensions_v1beta1_namespaced_deployment`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_extensions_v1beta1_namespaced_deployment`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_extensions_v1beta1_namespaced_deployment`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Deployment', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_extensions_v1beta1_namespaced_deployment_status(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_deployment_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_extensions_v1beta1_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_extensions_v1beta1_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_extensions_v1beta1_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_deployment_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_extensions_v1beta1_namespaced_deployment_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_extensions_v1beta1_namespaced_deployment_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_extensions_v1beta1_namespaced_deployment_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_extensions_v1beta1_namespaced_deployment_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Deployment', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_extensions_v1beta1_namespaced_deployments_scale(self, name, namespace, body, **kwargs): + """ + + partially update scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_deployments_scale(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_extensions_v1beta1_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_extensions_v1beta1_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_extensions_v1beta1_namespaced_deployments_scale_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_deployments_scale_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_extensions_v1beta1_namespaced_deployments_scale" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_extensions_v1beta1_namespaced_deployments_scale`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_extensions_v1beta1_namespaced_deployments_scale`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_extensions_v1beta1_namespaced_deployments_scale`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Scale', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): + """ + + partially update the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_extensions_v1beta1_namespaced_ingress(self, name, namespace, body, **kwargs): + """ + + partially update the specified Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_ingress(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Ingress + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_extensions_v1beta1_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_extensions_v1beta1_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_extensions_v1beta1_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_ingress_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Ingress + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_extensions_v1beta1_namespaced_ingress" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_extensions_v1beta1_namespaced_ingress`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_extensions_v1beta1_namespaced_ingress`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_extensions_v1beta1_namespaced_ingress`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Ingress', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_extensions_v1beta1_namespaced_ingress_status(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_ingress_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Ingress + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_extensions_v1beta1_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_extensions_v1beta1_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_extensions_v1beta1_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_ingress_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Ingress + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_extensions_v1beta1_namespaced_ingress_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_extensions_v1beta1_namespaced_ingress_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_extensions_v1beta1_namespaced_ingress_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_extensions_v1beta1_namespaced_ingress_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Ingress', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_extensions_v1beta1_namespaced_job(self, name, namespace, body, **kwargs): + """ + + partially update the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_job(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Job + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_extensions_v1beta1_namespaced_job_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_extensions_v1beta1_namespaced_job_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_extensions_v1beta1_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_job_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Job + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_extensions_v1beta1_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_extensions_v1beta1_namespaced_job`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_extensions_v1beta1_namespaced_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_extensions_v1beta1_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Job', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_extensions_v1beta1_namespaced_job_status(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_job_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Job + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_extensions_v1beta1_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_extensions_v1beta1_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_extensions_v1beta1_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_job_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Job + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_extensions_v1beta1_namespaced_job_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_extensions_v1beta1_namespaced_job_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_extensions_v1beta1_namespaced_job_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_extensions_v1beta1_namespaced_job_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Job', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_extensions_v1beta1_namespaced_network_policy(self, name, namespace, body, **kwargs): + """ + + partially update the specified NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_network_policy(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1NetworkPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_extensions_v1beta1_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_extensions_v1beta1_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_extensions_v1beta1_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_network_policy_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1NetworkPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_extensions_v1beta1_namespaced_network_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_extensions_v1beta1_namespaced_network_policy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_extensions_v1beta1_namespaced_network_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_extensions_v1beta1_namespaced_network_policy`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1NetworkPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_extensions_v1beta1_namespaced_replica_set(self, name, namespace, body, **kwargs): + """ + + partially update the specified ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_replica_set(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicaSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_extensions_v1beta1_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_extensions_v1beta1_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_extensions_v1beta1_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_replica_set_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicaSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_extensions_v1beta1_namespaced_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_extensions_v1beta1_namespaced_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_extensions_v1beta1_namespaced_replica_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_extensions_v1beta1_namespaced_replica_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_extensions_v1beta1_namespaced_replica_set_status(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_replica_set_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicaSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_extensions_v1beta1_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_extensions_v1beta1_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_extensions_v1beta1_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_replica_set_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicaSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_extensions_v1beta1_namespaced_replica_set_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_extensions_v1beta1_namespaced_replica_set_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_extensions_v1beta1_namespaced_replica_set_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_extensions_v1beta1_namespaced_replica_set_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_extensions_v1beta1_namespaced_replicasets_scale(self, name, namespace, body, **kwargs): + """ + + partially update scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_replicasets_scale(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_extensions_v1beta1_namespaced_replicasets_scale_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_extensions_v1beta1_namespaced_replicasets_scale_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_extensions_v1beta1_namespaced_replicasets_scale_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_replicasets_scale_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_extensions_v1beta1_namespaced_replicasets_scale" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_extensions_v1beta1_namespaced_replicasets_scale`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_extensions_v1beta1_namespaced_replicasets_scale`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_extensions_v1beta1_namespaced_replicasets_scale`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Scale', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_extensions_v1beta1_namespaced_replicationcontrollers_scale(self, name, namespace, body, **kwargs): + """ + + partially update scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_replicationcontrollers_scale(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_extensions_v1beta1_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_extensions_v1beta1_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_extensions_v1beta1_namespaced_replicationcontrollers_scale_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_extensions_v1beta1_namespaced_replicationcontrollers_scale" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_extensions_v1beta1_namespaced_replicationcontrollers_scale`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_extensions_v1beta1_namespaced_replicationcontrollers_scale`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_extensions_v1beta1_namespaced_replicationcontrollers_scale`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Scale', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_extensions_v1beta1_third_party_resource(self, name, body, **kwargs): + """ + + partially update the specified ThirdPartyResource + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_third_party_resource(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ThirdPartyResource (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ThirdPartyResource + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_extensions_v1beta1_third_party_resource_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_extensions_v1beta1_third_party_resource_with_http_info(name, body, **kwargs) + return data + + def patch_extensions_v1beta1_third_party_resource_with_http_info(self, name, body, **kwargs): + """ + + partially update the specified ThirdPartyResource + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_extensions_v1beta1_third_party_resource_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ThirdPartyResource (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ThirdPartyResource + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_extensions_v1beta1_third_party_resource" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_extensions_v1beta1_third_party_resource`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_extensions_v1beta1_third_party_resource`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/thirdpartyresources/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ThirdPartyResource', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_extensions_v1beta1_namespaced_daemon_set(self, name, namespace, **kwargs): + """ + + read the specified DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_daemon_set(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1DaemonSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_extensions_v1beta1_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_extensions_v1beta1_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) + return data + + def read_extensions_v1beta1_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_daemon_set_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1DaemonSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_extensions_v1beta1_namespaced_daemon_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_extensions_v1beta1_namespaced_daemon_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_extensions_v1beta1_namespaced_daemon_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_extensions_v1beta1_namespaced_daemon_set_status(self, name, namespace, **kwargs): + """ + + read status of the specified DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_daemon_set_status(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1DaemonSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_extensions_v1beta1_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_extensions_v1beta1_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) + return data + + def read_extensions_v1beta1_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kwargs): + """ + + read status of the specified DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_daemon_set_status_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1DaemonSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_extensions_v1beta1_namespaced_daemon_set_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_extensions_v1beta1_namespaced_daemon_set_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_extensions_v1beta1_namespaced_daemon_set_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_extensions_v1beta1_namespaced_deployment(self, name, namespace, **kwargs): + """ + + read the specified Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_deployment(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_extensions_v1beta1_namespaced_deployment_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_extensions_v1beta1_namespaced_deployment_with_http_info(name, namespace, **kwargs) + return data + + def read_extensions_v1beta1_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_deployment_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_extensions_v1beta1_namespaced_deployment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_extensions_v1beta1_namespaced_deployment`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_extensions_v1beta1_namespaced_deployment`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Deployment', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_extensions_v1beta1_namespaced_deployment_status(self, name, namespace, **kwargs): + """ + + read status of the specified Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_deployment_status(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_extensions_v1beta1_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_extensions_v1beta1_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) + return data + + def read_extensions_v1beta1_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs): + """ + + read status of the specified Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_deployment_status_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_extensions_v1beta1_namespaced_deployment_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_extensions_v1beta1_namespaced_deployment_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_extensions_v1beta1_namespaced_deployment_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Deployment', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_extensions_v1beta1_namespaced_deployments_scale(self, name, namespace, **kwargs): + """ + + read scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_deployments_scale(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_extensions_v1beta1_namespaced_deployments_scale_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_extensions_v1beta1_namespaced_deployments_scale_with_http_info(name, namespace, **kwargs) + return data + + def read_extensions_v1beta1_namespaced_deployments_scale_with_http_info(self, name, namespace, **kwargs): + """ + + read scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_deployments_scale_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_extensions_v1beta1_namespaced_deployments_scale" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_extensions_v1beta1_namespaced_deployments_scale`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_extensions_v1beta1_namespaced_deployments_scale`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Scale', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): + """ + + read the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + return data + + def read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, **kwargs): + """ + + read status of the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) + return data + + def read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, **kwargs): + """ + + read status of the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_extensions_v1beta1_namespaced_ingress(self, name, namespace, **kwargs): + """ + + read the specified Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_ingress(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1Ingress + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_extensions_v1beta1_namespaced_ingress_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_extensions_v1beta1_namespaced_ingress_with_http_info(name, namespace, **kwargs) + return data + + def read_extensions_v1beta1_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_ingress_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1Ingress + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_extensions_v1beta1_namespaced_ingress" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_extensions_v1beta1_namespaced_ingress`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_extensions_v1beta1_namespaced_ingress`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Ingress', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_extensions_v1beta1_namespaced_ingress_status(self, name, namespace, **kwargs): + """ + + read status of the specified Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_ingress_status(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Ingress + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_extensions_v1beta1_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_extensions_v1beta1_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) + return data + + def read_extensions_v1beta1_namespaced_ingress_status_with_http_info(self, name, namespace, **kwargs): + """ + + read status of the specified Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_ingress_status_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Ingress + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_extensions_v1beta1_namespaced_ingress_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_extensions_v1beta1_namespaced_ingress_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_extensions_v1beta1_namespaced_ingress_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Ingress', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_extensions_v1beta1_namespaced_job(self, name, namespace, **kwargs): + """ + + read the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_job(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1Job + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_extensions_v1beta1_namespaced_job_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_extensions_v1beta1_namespaced_job_with_http_info(name, namespace, **kwargs) + return data + + def read_extensions_v1beta1_namespaced_job_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_job_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1Job + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_extensions_v1beta1_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_extensions_v1beta1_namespaced_job`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_extensions_v1beta1_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Job', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_extensions_v1beta1_namespaced_job_status(self, name, namespace, **kwargs): + """ + + read status of the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_job_status(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Job + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_extensions_v1beta1_namespaced_job_status_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_extensions_v1beta1_namespaced_job_status_with_http_info(name, namespace, **kwargs) + return data + + def read_extensions_v1beta1_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): + """ + + read status of the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_job_status_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Job + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_extensions_v1beta1_namespaced_job_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_extensions_v1beta1_namespaced_job_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_extensions_v1beta1_namespaced_job_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Job', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_extensions_v1beta1_namespaced_network_policy(self, name, namespace, **kwargs): + """ + + read the specified NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_network_policy(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1NetworkPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_extensions_v1beta1_namespaced_network_policy_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_extensions_v1beta1_namespaced_network_policy_with_http_info(name, namespace, **kwargs) + return data + + def read_extensions_v1beta1_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_network_policy_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1NetworkPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_extensions_v1beta1_namespaced_network_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_extensions_v1beta1_namespaced_network_policy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_extensions_v1beta1_namespaced_network_policy`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1NetworkPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_extensions_v1beta1_namespaced_replica_set(self, name, namespace, **kwargs): + """ + + read the specified ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_replica_set(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicaSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1ReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_extensions_v1beta1_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_extensions_v1beta1_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + return data + + def read_extensions_v1beta1_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_replica_set_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicaSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1ReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_extensions_v1beta1_namespaced_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_extensions_v1beta1_namespaced_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_extensions_v1beta1_namespaced_replica_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_extensions_v1beta1_namespaced_replica_set_status(self, name, namespace, **kwargs): + """ + + read status of the specified ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_replica_set_status(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicaSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_extensions_v1beta1_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_extensions_v1beta1_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) + return data + + def read_extensions_v1beta1_namespaced_replica_set_status_with_http_info(self, name, namespace, **kwargs): + """ + + read status of the specified ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_replica_set_status_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicaSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_extensions_v1beta1_namespaced_replica_set_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_extensions_v1beta1_namespaced_replica_set_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_extensions_v1beta1_namespaced_replica_set_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_extensions_v1beta1_namespaced_replicasets_scale(self, name, namespace, **kwargs): + """ + + read scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_replicasets_scale(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_extensions_v1beta1_namespaced_replicasets_scale_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_extensions_v1beta1_namespaced_replicasets_scale_with_http_info(name, namespace, **kwargs) + return data + + def read_extensions_v1beta1_namespaced_replicasets_scale_with_http_info(self, name, namespace, **kwargs): + """ + + read scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_replicasets_scale_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_extensions_v1beta1_namespaced_replicasets_scale" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_extensions_v1beta1_namespaced_replicasets_scale`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_extensions_v1beta1_namespaced_replicasets_scale`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Scale', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_extensions_v1beta1_namespaced_replicationcontrollers_scale(self, name, namespace, **kwargs): + """ + + read scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_replicationcontrollers_scale(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_extensions_v1beta1_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_extensions_v1beta1_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, **kwargs) + return data + + def read_extensions_v1beta1_namespaced_replicationcontrollers_scale_with_http_info(self, name, namespace, **kwargs): + """ + + read scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_extensions_v1beta1_namespaced_replicationcontrollers_scale" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_extensions_v1beta1_namespaced_replicationcontrollers_scale`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_extensions_v1beta1_namespaced_replicationcontrollers_scale`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Scale', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_extensions_v1beta1_third_party_resource(self, name, **kwargs): + """ + + read the specified ThirdPartyResource + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_third_party_resource(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ThirdPartyResource (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1ThirdPartyResource + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_extensions_v1beta1_third_party_resource_with_http_info(name, **kwargs) + else: + (data) = self.read_extensions_v1beta1_third_party_resource_with_http_info(name, **kwargs) + return data + + def read_extensions_v1beta1_third_party_resource_with_http_info(self, name, **kwargs): + """ + + read the specified ThirdPartyResource + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_extensions_v1beta1_third_party_resource_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ThirdPartyResource (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1ThirdPartyResource + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_extensions_v1beta1_third_party_resource" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_extensions_v1beta1_third_party_resource`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/thirdpartyresources/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ThirdPartyResource', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_extensions_v1beta1_namespaced_daemon_set(self, name, namespace, body, **kwargs): + """ + + replace the specified DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_daemon_set(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1DaemonSet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1DaemonSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_extensions_v1beta1_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_extensions_v1beta1_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_extensions_v1beta1_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_daemon_set_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1DaemonSet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1DaemonSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_extensions_v1beta1_namespaced_daemon_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_extensions_v1beta1_namespaced_daemon_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_extensions_v1beta1_namespaced_daemon_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_extensions_v1beta1_namespaced_daemon_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_extensions_v1beta1_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): + """ + + replace status of the specified DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_daemon_set_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1DaemonSet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1DaemonSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_extensions_v1beta1_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_extensions_v1beta1_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_extensions_v1beta1_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace status of the specified DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_daemon_set_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1DaemonSet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1DaemonSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_extensions_v1beta1_namespaced_daemon_set_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_extensions_v1beta1_namespaced_daemon_set_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_extensions_v1beta1_namespaced_daemon_set_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_extensions_v1beta1_namespaced_daemon_set_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_extensions_v1beta1_namespaced_deployment(self, name, namespace, body, **kwargs): + """ + + replace the specified Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_deployment(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Deployment body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_extensions_v1beta1_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_extensions_v1beta1_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_extensions_v1beta1_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_deployment_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Deployment body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_extensions_v1beta1_namespaced_deployment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_extensions_v1beta1_namespaced_deployment`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_extensions_v1beta1_namespaced_deployment`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_extensions_v1beta1_namespaced_deployment`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Deployment', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_extensions_v1beta1_namespaced_deployment_status(self, name, namespace, body, **kwargs): + """ + + replace status of the specified Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_deployment_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Deployment body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_extensions_v1beta1_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_extensions_v1beta1_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_extensions_v1beta1_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace status of the specified Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_deployment_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Deployment body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_extensions_v1beta1_namespaced_deployment_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_extensions_v1beta1_namespaced_deployment_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_extensions_v1beta1_namespaced_deployment_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_extensions_v1beta1_namespaced_deployment_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Deployment', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_extensions_v1beta1_namespaced_deployments_scale(self, name, namespace, body, **kwargs): + """ + + replace scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_deployments_scale(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Scale body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_extensions_v1beta1_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_extensions_v1beta1_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_extensions_v1beta1_namespaced_deployments_scale_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_deployments_scale_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Scale body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_extensions_v1beta1_namespaced_deployments_scale" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_extensions_v1beta1_namespaced_deployments_scale`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_extensions_v1beta1_namespaced_deployments_scale`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_extensions_v1beta1_namespaced_deployments_scale`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Scale', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): + """ + + replace the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): + """ + + replace status of the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace status of the specified HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_extensions_v1beta1_namespaced_ingress(self, name, namespace, body, **kwargs): + """ + + replace the specified Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_ingress(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Ingress body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Ingress + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_extensions_v1beta1_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_extensions_v1beta1_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_extensions_v1beta1_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_ingress_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Ingress body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Ingress + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_extensions_v1beta1_namespaced_ingress" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_extensions_v1beta1_namespaced_ingress`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_extensions_v1beta1_namespaced_ingress`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_extensions_v1beta1_namespaced_ingress`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Ingress', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_extensions_v1beta1_namespaced_ingress_status(self, name, namespace, body, **kwargs): + """ + + replace status of the specified Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_ingress_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Ingress body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Ingress + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_extensions_v1beta1_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_extensions_v1beta1_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_extensions_v1beta1_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace status of the specified Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_ingress_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Ingress body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Ingress + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_extensions_v1beta1_namespaced_ingress_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_extensions_v1beta1_namespaced_ingress_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_extensions_v1beta1_namespaced_ingress_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_extensions_v1beta1_namespaced_ingress_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Ingress', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_extensions_v1beta1_namespaced_job(self, name, namespace, body, **kwargs): + """ + + replace the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_job(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Job body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Job + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_extensions_v1beta1_namespaced_job_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_extensions_v1beta1_namespaced_job_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_extensions_v1beta1_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_job_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Job body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Job + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_extensions_v1beta1_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_extensions_v1beta1_namespaced_job`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_extensions_v1beta1_namespaced_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_extensions_v1beta1_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Job', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_extensions_v1beta1_namespaced_job_status(self, name, namespace, body, **kwargs): + """ + + replace status of the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_job_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Job body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Job + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_extensions_v1beta1_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_extensions_v1beta1_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_extensions_v1beta1_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace status of the specified Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_job_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Job body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Job + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_extensions_v1beta1_namespaced_job_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_extensions_v1beta1_namespaced_job_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_extensions_v1beta1_namespaced_job_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_extensions_v1beta1_namespaced_job_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Job', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_extensions_v1beta1_namespaced_network_policy(self, name, namespace, body, **kwargs): + """ + + replace the specified NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_network_policy(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1NetworkPolicy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1NetworkPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_extensions_v1beta1_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_extensions_v1beta1_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_extensions_v1beta1_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_network_policy_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1NetworkPolicy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1NetworkPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_extensions_v1beta1_namespaced_network_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_extensions_v1beta1_namespaced_network_policy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_extensions_v1beta1_namespaced_network_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_extensions_v1beta1_namespaced_network_policy`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1NetworkPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_extensions_v1beta1_namespaced_replica_set(self, name, namespace, body, **kwargs): + """ + + replace the specified ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_replica_set(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicaSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1ReplicaSet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_extensions_v1beta1_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_extensions_v1beta1_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_extensions_v1beta1_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_replica_set_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicaSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1ReplicaSet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_extensions_v1beta1_namespaced_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_extensions_v1beta1_namespaced_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_extensions_v1beta1_namespaced_replica_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_extensions_v1beta1_namespaced_replica_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_extensions_v1beta1_namespaced_replica_set_status(self, name, namespace, body, **kwargs): + """ + + replace status of the specified ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_replica_set_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicaSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1ReplicaSet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_extensions_v1beta1_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_extensions_v1beta1_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_extensions_v1beta1_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace status of the specified ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_replica_set_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicaSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1ReplicaSet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_extensions_v1beta1_namespaced_replica_set_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_extensions_v1beta1_namespaced_replica_set_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_extensions_v1beta1_namespaced_replica_set_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_extensions_v1beta1_namespaced_replica_set_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_extensions_v1beta1_namespaced_replicasets_scale(self, name, namespace, body, **kwargs): + """ + + replace scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_replicasets_scale(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Scale body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_extensions_v1beta1_namespaced_replicasets_scale_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_extensions_v1beta1_namespaced_replicasets_scale_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_extensions_v1beta1_namespaced_replicasets_scale_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_replicasets_scale_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Scale body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_extensions_v1beta1_namespaced_replicasets_scale" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_extensions_v1beta1_namespaced_replicasets_scale`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_extensions_v1beta1_namespaced_replicasets_scale`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_extensions_v1beta1_namespaced_replicasets_scale`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Scale', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_extensions_v1beta1_namespaced_replicationcontrollers_scale(self, name, namespace, body, **kwargs): + """ + + replace scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_replicationcontrollers_scale(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Scale body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_extensions_v1beta1_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_extensions_v1beta1_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_extensions_v1beta1_namespaced_replicationcontrollers_scale_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace scale of the specified Scale + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Scale body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_extensions_v1beta1_namespaced_replicationcontrollers_scale" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_extensions_v1beta1_namespaced_replicationcontrollers_scale`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_extensions_v1beta1_namespaced_replicationcontrollers_scale`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_extensions_v1beta1_namespaced_replicationcontrollers_scale`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Scale', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_extensions_v1beta1_third_party_resource(self, name, body, **kwargs): + """ + + replace the specified ThirdPartyResource + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_third_party_resource(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ThirdPartyResource (required) + :param V1beta1ThirdPartyResource body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ThirdPartyResource + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_extensions_v1beta1_third_party_resource_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_extensions_v1beta1_third_party_resource_with_http_info(name, body, **kwargs) + return data + + def replace_extensions_v1beta1_third_party_resource_with_http_info(self, name, body, **kwargs): + """ + + replace the specified ThirdPartyResource + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_extensions_v1beta1_third_party_resource_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ThirdPartyResource (required) + :param V1beta1ThirdPartyResource body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ThirdPartyResource + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_extensions_v1beta1_third_party_resource" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_extensions_v1beta1_third_party_resource`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_extensions_v1beta1_third_party_resource`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/thirdpartyresources/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ThirdPartyResource', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_daemon_set_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_daemon_set_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_daemon_set_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_extensions_v1beta1_daemon_set_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_extensions_v1beta1_daemon_set_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_daemon_set_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_daemon_set_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/daemonsets'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_deployment_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_deployment_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_deployment_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_extensions_v1beta1_deployment_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_extensions_v1beta1_deployment_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_deployment_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_deployment_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/deployments'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_horizontal_pod_autoscaler_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_horizontal_pod_autoscaler_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_horizontal_pod_autoscaler_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_extensions_v1beta1_horizontal_pod_autoscaler_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_extensions_v1beta1_horizontal_pod_autoscaler_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_horizontal_pod_autoscaler_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_horizontal_pod_autoscaler_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/horizontalpodautoscalers'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_ingress_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_ingress_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_ingress_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_extensions_v1beta1_ingress_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_extensions_v1beta1_ingress_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_ingress_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_ingress_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/ingresses'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_job_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_job_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_job_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_extensions_v1beta1_job_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_extensions_v1beta1_job_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_job_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_job_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/jobs'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_namespaced_daemon_set(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_daemon_set(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_extensions_v1beta1_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) + return data + + def watch_extensions_v1beta1_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_daemon_set_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_namespaced_daemon_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_extensions_v1beta1_namespaced_daemon_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_extensions_v1beta1_namespaced_daemon_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_namespaced_daemon_set_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_daemon_set_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_namespaced_daemon_set_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_extensions_v1beta1_namespaced_daemon_set_list_with_http_info(namespace, **kwargs) + return data + + def watch_extensions_v1beta1_namespaced_daemon_set_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of DaemonSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_daemon_set_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_namespaced_daemon_set_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_extensions_v1beta1_namespaced_daemon_set_list`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_namespaced_deployment(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_deployment(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_namespaced_deployment_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_extensions_v1beta1_namespaced_deployment_with_http_info(name, namespace, **kwargs) + return data + + def watch_extensions_v1beta1_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_deployment_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_namespaced_deployment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_extensions_v1beta1_namespaced_deployment`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_extensions_v1beta1_namespaced_deployment`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_namespaced_deployment_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_deployment_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_namespaced_deployment_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_extensions_v1beta1_namespaced_deployment_list_with_http_info(namespace, **kwargs) + return data + + def watch_extensions_v1beta1_namespaced_deployment_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of Deployment + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_deployment_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_namespaced_deployment_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_extensions_v1beta1_namespaced_deployment_list`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + return data + + def watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_list_with_http_info(namespace, **kwargs) + return data + + def watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of HorizontalPodAutoscaler + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_list`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_namespaced_ingress(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_ingress(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_namespaced_ingress_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_extensions_v1beta1_namespaced_ingress_with_http_info(name, namespace, **kwargs) + return data + + def watch_extensions_v1beta1_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_ingress_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_namespaced_ingress" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_extensions_v1beta1_namespaced_ingress`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_extensions_v1beta1_namespaced_ingress`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_namespaced_ingress_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_ingress_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_namespaced_ingress_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_extensions_v1beta1_namespaced_ingress_list_with_http_info(namespace, **kwargs) + return data + + def watch_extensions_v1beta1_namespaced_ingress_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of Ingress + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_ingress_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_namespaced_ingress_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_extensions_v1beta1_namespaced_ingress_list`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_namespaced_job(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_job(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_namespaced_job_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_extensions_v1beta1_namespaced_job_with_http_info(name, namespace, **kwargs) + return data + + def watch_extensions_v1beta1_namespaced_job_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_job_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_extensions_v1beta1_namespaced_job`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_extensions_v1beta1_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_namespaced_job_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_job_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_namespaced_job_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_extensions_v1beta1_namespaced_job_list_with_http_info(namespace, **kwargs) + return data + + def watch_extensions_v1beta1_namespaced_job_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of Job + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_job_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_namespaced_job_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_extensions_v1beta1_namespaced_job_list`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_namespaced_network_policy(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_network_policy(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_namespaced_network_policy_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_extensions_v1beta1_namespaced_network_policy_with_http_info(name, namespace, **kwargs) + return data + + def watch_extensions_v1beta1_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_network_policy_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_namespaced_network_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_extensions_v1beta1_namespaced_network_policy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_extensions_v1beta1_namespaced_network_policy`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_namespaced_network_policy_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_network_policy_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_namespaced_network_policy_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_extensions_v1beta1_namespaced_network_policy_list_with_http_info(namespace, **kwargs) + return data + + def watch_extensions_v1beta1_namespaced_network_policy_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_network_policy_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_namespaced_network_policy_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_extensions_v1beta1_namespaced_network_policy_list`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_namespaced_replica_set(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_replica_set(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicaSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_extensions_v1beta1_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + return data + + def watch_extensions_v1beta1_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_replica_set_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicaSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_namespaced_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_extensions_v1beta1_namespaced_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_extensions_v1beta1_namespaced_replica_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_namespaced_replica_set_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_replica_set_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_namespaced_replica_set_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_extensions_v1beta1_namespaced_replica_set_list_with_http_info(namespace, **kwargs) + return data + + def watch_extensions_v1beta1_namespaced_replica_set_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_namespaced_replica_set_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_namespaced_replica_set_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_extensions_v1beta1_namespaced_replica_set_list`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_network_policy_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_network_policy_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_network_policy_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_extensions_v1beta1_network_policy_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_extensions_v1beta1_network_policy_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of NetworkPolicy + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_network_policy_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_network_policy_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/networkpolicies'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_replica_set_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_replica_set_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_replica_set_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_extensions_v1beta1_replica_set_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_extensions_v1beta1_replica_set_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of ReplicaSet + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_replica_set_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_replica_set_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/replicasets'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_third_party_resource(self, name, **kwargs): + """ + + watch changes to an object of kind ThirdPartyResource + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_third_party_resource(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ThirdPartyResource (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_third_party_resource_with_http_info(name, **kwargs) + else: + (data) = self.watch_extensions_v1beta1_third_party_resource_with_http_info(name, **kwargs) + return data + + def watch_extensions_v1beta1_third_party_resource_with_http_info(self, name, **kwargs): + """ + + watch changes to an object of kind ThirdPartyResource + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_third_party_resource_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ThirdPartyResource (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_third_party_resource" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_extensions_v1beta1_third_party_resource`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/thirdpartyresources/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_extensions_v1beta1_third_party_resource_list(self, **kwargs): + """ + + watch individual changes to a list of ThirdPartyResource + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_third_party_resource_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_extensions_v1beta1_third_party_resource_list_with_http_info(**kwargs) + else: + (data) = self.watch_extensions_v1beta1_third_party_resource_list_with_http_info(**kwargs) + return data + + def watch_extensions_v1beta1_third_party_resource_list_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of ThirdPartyResource + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_extensions_v1beta1_third_party_resource_list_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_extensions_v1beta1_third_party_resource_list" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/watch/thirdpartyresources'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/logs_api.py b/k8sclient/apis/logs_api.py new file mode 100644 index 000000000..b07214b87 --- /dev/null +++ b/k8sclient/apis/logs_api.py @@ -0,0 +1,261 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class LogsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def log_file_handler(self, logpath, **kwargs): + """ + + + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.log_file_handler(logpath, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str logpath: path to the log (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.log_file_handler_with_http_info(logpath, **kwargs) + else: + (data) = self.log_file_handler_with_http_info(logpath, **kwargs) + return data + + def log_file_handler_with_http_info(self, logpath, **kwargs): + """ + + + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.log_file_handler_with_http_info(logpath, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str logpath: path to the log (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['logpath'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method log_file_handler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'logpath' is set + if ('logpath' not in params) or (params['logpath'] is None): + raise ValueError("Missing the required parameter `logpath` when calling `log_file_handler`") + + + collection_formats = {} + + resource_path = '/logs/{logpath}'.replace('{format}', 'json') + path_params = {} + if 'logpath' in params: + path_params['logpath'] = params['logpath'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept([]) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type([]) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def log_file_list_handler(self, **kwargs): + """ + + + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.log_file_list_handler(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.log_file_list_handler_with_http_info(**kwargs) + else: + (data) = self.log_file_list_handler_with_http_info(**kwargs) + return data + + def log_file_list_handler_with_http_info(self, **kwargs): + """ + + + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.log_file_list_handler_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method log_file_list_handler" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/logs/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept([]) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type([]) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/policy_api.py b/k8sclient/apis/policy_api.py new file mode 100644 index 000000000..5ddc62b24 --- /dev/null +++ b/k8sclient/apis/policy_api.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class PolicyApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_policy_api_group(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_policy_api_group(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_policy_api_group_with_http_info(**kwargs) + else: + (data) = self.get_policy_api_group_with_http_info(**kwargs) + return data + + def get_policy_api_group_with_http_info(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_policy_api_group_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_policy_api_group" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/policy/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIGroup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/policy_v1alpha1_api.py b/k8sclient/apis/policy_v1alpha1_api.py new file mode 100644 index 000000000..01f485ac6 --- /dev/null +++ b/k8sclient/apis/policy_v1alpha1_api.py @@ -0,0 +1,1933 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class PolicyV1alpha1Api(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_policy_v1alpha1_namespaced_pod_disruption_budget(self, namespace, body, **kwargs): + """ + + create a PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_policy_v1alpha1_namespaced_pod_disruption_budget(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1PodDisruptionBudget body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1PodDisruptionBudget + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(namespace, body, **kwargs) + return data + + def create_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(self, namespace, body, **kwargs): + """ + + create a PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1PodDisruptionBudget body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1PodDisruptionBudget + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_policy_v1alpha1_namespaced_pod_disruption_budget" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_policy_v1alpha1_namespaced_pod_disruption_budget`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_policy_v1alpha1_namespaced_pod_disruption_budget`") + + + collection_formats = {} + + resource_path = '/apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodDisruptionBudget', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_policy_v1alpha1_collection_namespaced_pod_disruption_budget(self, namespace, **kwargs): + """ + + delete collection of PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_policy_v1alpha1_collection_namespaced_pod_disruption_budget(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_policy_v1alpha1_collection_namespaced_pod_disruption_budget_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_policy_v1alpha1_collection_namespaced_pod_disruption_budget_with_http_info(namespace, **kwargs) + return data + + def delete_policy_v1alpha1_collection_namespaced_pod_disruption_budget_with_http_info(self, namespace, **kwargs): + """ + + delete collection of PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_policy_v1alpha1_collection_namespaced_pod_disruption_budget_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_policy_v1alpha1_collection_namespaced_pod_disruption_budget" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_policy_v1alpha1_collection_namespaced_pod_disruption_budget`") + + + collection_formats = {} + + resource_path = '/apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_policy_v1alpha1_namespaced_pod_disruption_budget(self, name, namespace, body, **kwargs): + """ + + delete a PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_policy_v1alpha1_namespaced_pod_disruption_budget(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodDisruptionBudget (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodDisruptionBudget (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_policy_v1alpha1_namespaced_pod_disruption_budget" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_policy_v1alpha1_namespaced_pod_disruption_budget`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_policy_v1alpha1_namespaced_pod_disruption_budget`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_policy_v1alpha1_namespaced_pod_disruption_budget`") + + + collection_formats = {} + + resource_path = '/apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def get_policy_v1alpha1_api_resources(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_policy_v1alpha1_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_policy_v1alpha1_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_policy_v1alpha1_api_resources_with_http_info(**kwargs) + return data + + def get_policy_v1alpha1_api_resources_with_http_info(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_policy_v1alpha1_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_policy_v1alpha1_api_resources" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/policy/v1alpha1/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_policy_v1alpha1_namespaced_pod_disruption_budget(self, namespace, **kwargs): + """ + + list or watch objects of kind PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_policy_v1alpha1_namespaced_pod_disruption_budget(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1PodDisruptionBudgetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(namespace, **kwargs) + else: + (data) = self.list_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(namespace, **kwargs) + return data + + def list_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1PodDisruptionBudgetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_policy_v1alpha1_namespaced_pod_disruption_budget" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_policy_v1alpha1_namespaced_pod_disruption_budget`") + + + collection_formats = {} + + resource_path = '/apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodDisruptionBudgetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_policy_v1alpha1_pod_disruption_budget_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_policy_v1alpha1_pod_disruption_budget_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1PodDisruptionBudgetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_policy_v1alpha1_pod_disruption_budget_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_policy_v1alpha1_pod_disruption_budget_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_policy_v1alpha1_pod_disruption_budget_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_policy_v1alpha1_pod_disruption_budget_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1PodDisruptionBudgetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_policy_v1alpha1_pod_disruption_budget_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/policy/v1alpha1/poddisruptionbudgets'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodDisruptionBudgetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_policy_v1alpha1_namespaced_pod_disruption_budget(self, name, namespace, body, **kwargs): + """ + + partially update the specified PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_policy_v1alpha1_namespaced_pod_disruption_budget(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodDisruptionBudget (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1PodDisruptionBudget + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodDisruptionBudget (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1PodDisruptionBudget + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_policy_v1alpha1_namespaced_pod_disruption_budget" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_policy_v1alpha1_namespaced_pod_disruption_budget`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_policy_v1alpha1_namespaced_pod_disruption_budget`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_policy_v1alpha1_namespaced_pod_disruption_budget`") + + + collection_formats = {} + + resource_path = '/apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodDisruptionBudget', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_policy_v1alpha1_namespaced_pod_disruption_budget_status(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_policy_v1alpha1_namespaced_pod_disruption_budget_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodDisruptionBudget (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1PodDisruptionBudget + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_policy_v1alpha1_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_policy_v1alpha1_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_policy_v1alpha1_namespaced_pod_disruption_budget_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update status of the specified PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_policy_v1alpha1_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodDisruptionBudget (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1PodDisruptionBudget + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_policy_v1alpha1_namespaced_pod_disruption_budget_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_policy_v1alpha1_namespaced_pod_disruption_budget_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_policy_v1alpha1_namespaced_pod_disruption_budget_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_policy_v1alpha1_namespaced_pod_disruption_budget_status`") + + + collection_formats = {} + + resource_path = '/apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodDisruptionBudget', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_policy_v1alpha1_namespaced_pod_disruption_budget(self, name, namespace, **kwargs): + """ + + read the specified PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_policy_v1alpha1_namespaced_pod_disruption_budget(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodDisruptionBudget (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1PodDisruptionBudget + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) + return data + + def read_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodDisruptionBudget (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1PodDisruptionBudget + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_policy_v1alpha1_namespaced_pod_disruption_budget" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_policy_v1alpha1_namespaced_pod_disruption_budget`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_policy_v1alpha1_namespaced_pod_disruption_budget`") + + + collection_formats = {} + + resource_path = '/apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodDisruptionBudget', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_policy_v1alpha1_namespaced_pod_disruption_budget_status(self, name, namespace, **kwargs): + """ + + read status of the specified PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_policy_v1alpha1_namespaced_pod_disruption_budget_status(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodDisruptionBudget (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1PodDisruptionBudget + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_policy_v1alpha1_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_policy_v1alpha1_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, **kwargs) + return data + + def read_policy_v1alpha1_namespaced_pod_disruption_budget_status_with_http_info(self, name, namespace, **kwargs): + """ + + read status of the specified PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_policy_v1alpha1_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodDisruptionBudget (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1PodDisruptionBudget + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_policy_v1alpha1_namespaced_pod_disruption_budget_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_policy_v1alpha1_namespaced_pod_disruption_budget_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_policy_v1alpha1_namespaced_pod_disruption_budget_status`") + + + collection_formats = {} + + resource_path = '/apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodDisruptionBudget', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_policy_v1alpha1_namespaced_pod_disruption_budget(self, name, namespace, body, **kwargs): + """ + + replace the specified PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_policy_v1alpha1_namespaced_pod_disruption_budget(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodDisruptionBudget (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1PodDisruptionBudget body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1PodDisruptionBudget + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodDisruptionBudget (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1PodDisruptionBudget body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1PodDisruptionBudget + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_policy_v1alpha1_namespaced_pod_disruption_budget" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_policy_v1alpha1_namespaced_pod_disruption_budget`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_policy_v1alpha1_namespaced_pod_disruption_budget`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_policy_v1alpha1_namespaced_pod_disruption_budget`") + + + collection_formats = {} + + resource_path = '/apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodDisruptionBudget', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_policy_v1alpha1_namespaced_pod_disruption_budget_status(self, name, namespace, body, **kwargs): + """ + + replace status of the specified PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_policy_v1alpha1_namespaced_pod_disruption_budget_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodDisruptionBudget (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1PodDisruptionBudget body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1PodDisruptionBudget + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_policy_v1alpha1_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_policy_v1alpha1_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_policy_v1alpha1_namespaced_pod_disruption_budget_status_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace status of the specified PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_policy_v1alpha1_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodDisruptionBudget (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1PodDisruptionBudget body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1PodDisruptionBudget + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_policy_v1alpha1_namespaced_pod_disruption_budget_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_policy_v1alpha1_namespaced_pod_disruption_budget_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_policy_v1alpha1_namespaced_pod_disruption_budget_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_policy_v1alpha1_namespaced_pod_disruption_budget_status`") + + + collection_formats = {} + + resource_path = '/apis/policy/v1alpha1/namespaces/{namespace}/poddisruptionbudgets/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodDisruptionBudget', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_policy_v1alpha1_namespaced_pod_disruption_budget(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_policy_v1alpha1_namespaced_pod_disruption_budget(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodDisruptionBudget (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) + return data + + def watch_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_policy_v1alpha1_namespaced_pod_disruption_budget_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodDisruptionBudget (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_policy_v1alpha1_namespaced_pod_disruption_budget" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_policy_v1alpha1_namespaced_pod_disruption_budget`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_policy_v1alpha1_namespaced_pod_disruption_budget`") + + + collection_formats = {} + + resource_path = '/apis/policy/v1alpha1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_policy_v1alpha1_namespaced_pod_disruption_budget_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_policy_v1alpha1_namespaced_pod_disruption_budget_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_policy_v1alpha1_namespaced_pod_disruption_budget_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_policy_v1alpha1_namespaced_pod_disruption_budget_list_with_http_info(namespace, **kwargs) + return data + + def watch_policy_v1alpha1_namespaced_pod_disruption_budget_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_policy_v1alpha1_namespaced_pod_disruption_budget_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_policy_v1alpha1_namespaced_pod_disruption_budget_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_policy_v1alpha1_namespaced_pod_disruption_budget_list`") + + + collection_formats = {} + + resource_path = '/apis/policy/v1alpha1/watch/namespaces/{namespace}/poddisruptionbudgets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_policy_v1alpha1_pod_disruption_budget_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_policy_v1alpha1_pod_disruption_budget_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_policy_v1alpha1_pod_disruption_budget_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_policy_v1alpha1_pod_disruption_budget_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_policy_v1alpha1_pod_disruption_budget_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of PodDisruptionBudget + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_policy_v1alpha1_pod_disruption_budget_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_policy_v1alpha1_pod_disruption_budget_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/policy/v1alpha1/watch/poddisruptionbudgets'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/rbac_authorization_api.py b/k8sclient/apis/rbac_authorization_api.py new file mode 100644 index 000000000..9ba76715f --- /dev/null +++ b/k8sclient/apis/rbac_authorization_api.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class RbacAuthorizationApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_rbac_authorization_api_group(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_rbac_authorization_api_group(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_rbac_authorization_api_group_with_http_info(**kwargs) + else: + (data) = self.get_rbac_authorization_api_group_with_http_info(**kwargs) + return data + + def get_rbac_authorization_api_group_with_http_info(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_rbac_authorization_api_group_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_rbac_authorization_api_group" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIGroup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/rbac_authorization_v1alpha1_api.py b/k8sclient/apis/rbac_authorization_v1alpha1_api.py new file mode 100644 index 000000000..1586956c6 --- /dev/null +++ b/k8sclient/apis/rbac_authorization_v1alpha1_api.py @@ -0,0 +1,5131 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class RbacAuthorizationV1alpha1Api(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_rbac_authorization_v1alpha1_cluster_role(self, body, **kwargs): + """ + + create a ClusterRole + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_rbac_authorization_v1alpha1_cluster_role(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1ClusterRole body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_rbac_authorization_v1alpha1_cluster_role_with_http_info(body, **kwargs) + else: + (data) = self.create_rbac_authorization_v1alpha1_cluster_role_with_http_info(body, **kwargs) + return data + + def create_rbac_authorization_v1alpha1_cluster_role_with_http_info(self, body, **kwargs): + """ + + create a ClusterRole + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_rbac_authorization_v1alpha1_cluster_role_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1ClusterRole body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_rbac_authorization_v1alpha1_cluster_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_rbac_authorization_v1alpha1_cluster_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRole', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_rbac_authorization_v1alpha1_cluster_role_binding(self, body, **kwargs): + """ + + create a ClusterRoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_rbac_authorization_v1alpha1_cluster_role_binding(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1ClusterRoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(body, **kwargs) + else: + (data) = self.create_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(body, **kwargs) + return data + + def create_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(self, body, **kwargs): + """ + + create a ClusterRoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1ClusterRoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_rbac_authorization_v1alpha1_cluster_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_rbac_authorization_v1alpha1_cluster_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_rbac_authorization_v1alpha1_namespaced_role(self, namespace, body, **kwargs): + """ + + create a Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_rbac_authorization_v1alpha1_namespaced_role(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1Role body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_rbac_authorization_v1alpha1_namespaced_role_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_rbac_authorization_v1alpha1_namespaced_role_with_http_info(namespace, body, **kwargs) + return data + + def create_rbac_authorization_v1alpha1_namespaced_role_with_http_info(self, namespace, body, **kwargs): + """ + + create a Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_rbac_authorization_v1alpha1_namespaced_role_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1Role body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1Role + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_rbac_authorization_v1alpha1_namespaced_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_rbac_authorization_v1alpha1_namespaced_role`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_rbac_authorization_v1alpha1_namespaced_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1Role', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def create_rbac_authorization_v1alpha1_namespaced_role_binding(self, namespace, body, **kwargs): + """ + + create a RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_rbac_authorization_v1alpha1_namespaced_role_binding(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1RoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(namespace, body, **kwargs) + return data + + def create_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(self, namespace, body, **kwargs): + """ + + create a RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1RoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_rbac_authorization_v1alpha1_namespaced_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_rbac_authorization_v1alpha1_namespaced_role_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_rbac_authorization_v1alpha1_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_rbac_authorization_v1alpha1_cluster_role(self, name, body, **kwargs): + """ + + delete a ClusterRole + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_rbac_authorization_v1alpha1_cluster_role(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRole (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_rbac_authorization_v1alpha1_cluster_role_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_rbac_authorization_v1alpha1_cluster_role_with_http_info(name, body, **kwargs) + return data + + def delete_rbac_authorization_v1alpha1_cluster_role_with_http_info(self, name, body, **kwargs): + """ + + delete a ClusterRole + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_rbac_authorization_v1alpha1_cluster_role_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRole (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_rbac_authorization_v1alpha1_cluster_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_rbac_authorization_v1alpha1_cluster_role`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_rbac_authorization_v1alpha1_cluster_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_rbac_authorization_v1alpha1_cluster_role_binding(self, name, body, **kwargs): + """ + + delete a ClusterRoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_rbac_authorization_v1alpha1_cluster_role_binding(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRoleBinding (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(name, body, **kwargs) + return data + + def delete_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(self, name, body, **kwargs): + """ + + delete a ClusterRoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRoleBinding (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_rbac_authorization_v1alpha1_cluster_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_rbac_authorization_v1alpha1_cluster_role_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_rbac_authorization_v1alpha1_cluster_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_rbac_authorization_v1alpha1_collection_cluster_role(self, **kwargs): + """ + + delete collection of ClusterRole + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_rbac_authorization_v1alpha1_collection_cluster_role(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_rbac_authorization_v1alpha1_collection_cluster_role_with_http_info(**kwargs) + else: + (data) = self.delete_rbac_authorization_v1alpha1_collection_cluster_role_with_http_info(**kwargs) + return data + + def delete_rbac_authorization_v1alpha1_collection_cluster_role_with_http_info(self, **kwargs): + """ + + delete collection of ClusterRole + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_rbac_authorization_v1alpha1_collection_cluster_role_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_rbac_authorization_v1alpha1_collection_cluster_role" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_rbac_authorization_v1alpha1_collection_cluster_role_binding(self, **kwargs): + """ + + delete collection of ClusterRoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_rbac_authorization_v1alpha1_collection_cluster_role_binding(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_rbac_authorization_v1alpha1_collection_cluster_role_binding_with_http_info(**kwargs) + else: + (data) = self.delete_rbac_authorization_v1alpha1_collection_cluster_role_binding_with_http_info(**kwargs) + return data + + def delete_rbac_authorization_v1alpha1_collection_cluster_role_binding_with_http_info(self, **kwargs): + """ + + delete collection of ClusterRoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_rbac_authorization_v1alpha1_collection_cluster_role_binding_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_rbac_authorization_v1alpha1_collection_cluster_role_binding" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_rbac_authorization_v1alpha1_collection_namespaced_role(self, namespace, **kwargs): + """ + + delete collection of Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_rbac_authorization_v1alpha1_collection_namespaced_role(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_rbac_authorization_v1alpha1_collection_namespaced_role_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_rbac_authorization_v1alpha1_collection_namespaced_role_with_http_info(namespace, **kwargs) + return data + + def delete_rbac_authorization_v1alpha1_collection_namespaced_role_with_http_info(self, namespace, **kwargs): + """ + + delete collection of Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_rbac_authorization_v1alpha1_collection_namespaced_role_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_rbac_authorization_v1alpha1_collection_namespaced_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_rbac_authorization_v1alpha1_collection_namespaced_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_rbac_authorization_v1alpha1_collection_namespaced_role_binding(self, namespace, **kwargs): + """ + + delete collection of RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_rbac_authorization_v1alpha1_collection_namespaced_role_binding(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_rbac_authorization_v1alpha1_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_rbac_authorization_v1alpha1_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) + return data + + def delete_rbac_authorization_v1alpha1_collection_namespaced_role_binding_with_http_info(self, namespace, **kwargs): + """ + + delete collection of RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_rbac_authorization_v1alpha1_collection_namespaced_role_binding_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_rbac_authorization_v1alpha1_collection_namespaced_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_rbac_authorization_v1alpha1_collection_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_rbac_authorization_v1alpha1_namespaced_role(self, name, namespace, body, **kwargs): + """ + + delete a Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_rbac_authorization_v1alpha1_namespaced_role(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Role (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_rbac_authorization_v1alpha1_namespaced_role_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_rbac_authorization_v1alpha1_namespaced_role_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_rbac_authorization_v1alpha1_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_rbac_authorization_v1alpha1_namespaced_role_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Role (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_rbac_authorization_v1alpha1_namespaced_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_rbac_authorization_v1alpha1_namespaced_role`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_rbac_authorization_v1alpha1_namespaced_role`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_rbac_authorization_v1alpha1_namespaced_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_rbac_authorization_v1alpha1_namespaced_role_binding(self, name, namespace, body, **kwargs): + """ + + delete a RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_rbac_authorization_v1alpha1_namespaced_role_binding(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): + """ + + delete a RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_rbac_authorization_v1alpha1_namespaced_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_rbac_authorization_v1alpha1_namespaced_role_binding`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_rbac_authorization_v1alpha1_namespaced_role_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_rbac_authorization_v1alpha1_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def get_rbac_authorization_v1alpha1_api_resources(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_rbac_authorization_v1alpha1_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_rbac_authorization_v1alpha1_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_rbac_authorization_v1alpha1_api_resources_with_http_info(**kwargs) + return data + + def get_rbac_authorization_v1alpha1_api_resources_with_http_info(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_rbac_authorization_v1alpha1_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_rbac_authorization_v1alpha1_api_resources" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_rbac_authorization_v1alpha1_cluster_role(self, **kwargs): + """ + + list or watch objects of kind ClusterRole + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_rbac_authorization_v1alpha1_cluster_role(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1ClusterRoleList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_rbac_authorization_v1alpha1_cluster_role_with_http_info(**kwargs) + else: + (data) = self.list_rbac_authorization_v1alpha1_cluster_role_with_http_info(**kwargs) + return data + + def list_rbac_authorization_v1alpha1_cluster_role_with_http_info(self, **kwargs): + """ + + list or watch objects of kind ClusterRole + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_rbac_authorization_v1alpha1_cluster_role_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1ClusterRoleList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_rbac_authorization_v1alpha1_cluster_role" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRoleList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_rbac_authorization_v1alpha1_cluster_role_binding(self, **kwargs): + """ + + list or watch objects of kind ClusterRoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_rbac_authorization_v1alpha1_cluster_role_binding(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1ClusterRoleBindingList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(**kwargs) + else: + (data) = self.list_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(**kwargs) + return data + + def list_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(self, **kwargs): + """ + + list or watch objects of kind ClusterRoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1ClusterRoleBindingList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_rbac_authorization_v1alpha1_cluster_role_binding" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRoleBindingList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_rbac_authorization_v1alpha1_namespaced_role(self, namespace, **kwargs): + """ + + list or watch objects of kind Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_rbac_authorization_v1alpha1_namespaced_role(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1RoleList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_rbac_authorization_v1alpha1_namespaced_role_with_http_info(namespace, **kwargs) + else: + (data) = self.list_rbac_authorization_v1alpha1_namespaced_role_with_http_info(namespace, **kwargs) + return data + + def list_rbac_authorization_v1alpha1_namespaced_role_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_rbac_authorization_v1alpha1_namespaced_role_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1RoleList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_rbac_authorization_v1alpha1_namespaced_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_rbac_authorization_v1alpha1_namespaced_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RoleList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_rbac_authorization_v1alpha1_namespaced_role_binding(self, namespace, **kwargs): + """ + + list or watch objects of kind RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_rbac_authorization_v1alpha1_namespaced_role_binding(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1RoleBindingList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(namespace, **kwargs) + else: + (data) = self.list_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(namespace, **kwargs) + return data + + def list_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(self, namespace, **kwargs): + """ + + list or watch objects of kind RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1RoleBindingList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_rbac_authorization_v1alpha1_namespaced_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_rbac_authorization_v1alpha1_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RoleBindingList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_rbac_authorization_v1alpha1_role_binding_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_rbac_authorization_v1alpha1_role_binding_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1RoleBindingList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_rbac_authorization_v1alpha1_role_binding_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_rbac_authorization_v1alpha1_role_binding_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_rbac_authorization_v1alpha1_role_binding_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_rbac_authorization_v1alpha1_role_binding_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1RoleBindingList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_rbac_authorization_v1alpha1_role_binding_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/rolebindings'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RoleBindingList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_rbac_authorization_v1alpha1_role_for_all_namespaces(self, **kwargs): + """ + + list or watch objects of kind Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_rbac_authorization_v1alpha1_role_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1RoleList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_rbac_authorization_v1alpha1_role_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_rbac_authorization_v1alpha1_role_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_rbac_authorization_v1alpha1_role_for_all_namespaces_with_http_info(self, **kwargs): + """ + + list or watch objects of kind Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_rbac_authorization_v1alpha1_role_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1RoleList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_rbac_authorization_v1alpha1_role_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/roles'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RoleList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_rbac_authorization_v1alpha1_cluster_role(self, name, body, **kwargs): + """ + + partially update the specified ClusterRole + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_rbac_authorization_v1alpha1_cluster_role(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRole (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_rbac_authorization_v1alpha1_cluster_role_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_rbac_authorization_v1alpha1_cluster_role_with_http_info(name, body, **kwargs) + return data + + def patch_rbac_authorization_v1alpha1_cluster_role_with_http_info(self, name, body, **kwargs): + """ + + partially update the specified ClusterRole + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_rbac_authorization_v1alpha1_cluster_role_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRole (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_rbac_authorization_v1alpha1_cluster_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_rbac_authorization_v1alpha1_cluster_role`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_rbac_authorization_v1alpha1_cluster_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRole', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_rbac_authorization_v1alpha1_cluster_role_binding(self, name, body, **kwargs): + """ + + partially update the specified ClusterRoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_rbac_authorization_v1alpha1_cluster_role_binding(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRoleBinding (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(name, body, **kwargs) + return data + + def patch_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(self, name, body, **kwargs): + """ + + partially update the specified ClusterRoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRoleBinding (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_rbac_authorization_v1alpha1_cluster_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_rbac_authorization_v1alpha1_cluster_role_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_rbac_authorization_v1alpha1_cluster_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_rbac_authorization_v1alpha1_namespaced_role(self, name, namespace, body, **kwargs): + """ + + partially update the specified Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_rbac_authorization_v1alpha1_namespaced_role(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Role (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_rbac_authorization_v1alpha1_namespaced_role_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_rbac_authorization_v1alpha1_namespaced_role_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_rbac_authorization_v1alpha1_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_rbac_authorization_v1alpha1_namespaced_role_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Role (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1Role + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_rbac_authorization_v1alpha1_namespaced_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_rbac_authorization_v1alpha1_namespaced_role`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_rbac_authorization_v1alpha1_namespaced_role`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_rbac_authorization_v1alpha1_namespaced_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1Role', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_rbac_authorization_v1alpha1_namespaced_role_binding(self, name, namespace, body, **kwargs): + """ + + partially update the specified RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_rbac_authorization_v1alpha1_namespaced_role_binding(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): + """ + + partially update the specified RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_rbac_authorization_v1alpha1_namespaced_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_rbac_authorization_v1alpha1_namespaced_role_binding`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_rbac_authorization_v1alpha1_namespaced_role_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_rbac_authorization_v1alpha1_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_rbac_authorization_v1alpha1_cluster_role(self, name, **kwargs): + """ + + read the specified ClusterRole + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_rbac_authorization_v1alpha1_cluster_role(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRole (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_rbac_authorization_v1alpha1_cluster_role_with_http_info(name, **kwargs) + else: + (data) = self.read_rbac_authorization_v1alpha1_cluster_role_with_http_info(name, **kwargs) + return data + + def read_rbac_authorization_v1alpha1_cluster_role_with_http_info(self, name, **kwargs): + """ + + read the specified ClusterRole + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_rbac_authorization_v1alpha1_cluster_role_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRole (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_rbac_authorization_v1alpha1_cluster_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_rbac_authorization_v1alpha1_cluster_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRole', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_rbac_authorization_v1alpha1_cluster_role_binding(self, name, **kwargs): + """ + + read the specified ClusterRoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_rbac_authorization_v1alpha1_cluster_role_binding(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRoleBinding (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(name, **kwargs) + else: + (data) = self.read_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(name, **kwargs) + return data + + def read_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(self, name, **kwargs): + """ + + read the specified ClusterRoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRoleBinding (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_rbac_authorization_v1alpha1_cluster_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_rbac_authorization_v1alpha1_cluster_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_rbac_authorization_v1alpha1_namespaced_role(self, name, namespace, **kwargs): + """ + + read the specified Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_rbac_authorization_v1alpha1_namespaced_role(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Role (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_rbac_authorization_v1alpha1_namespaced_role_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_rbac_authorization_v1alpha1_namespaced_role_with_http_info(name, namespace, **kwargs) + return data + + def read_rbac_authorization_v1alpha1_namespaced_role_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_rbac_authorization_v1alpha1_namespaced_role_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Role (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1Role + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_rbac_authorization_v1alpha1_namespaced_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_rbac_authorization_v1alpha1_namespaced_role`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_rbac_authorization_v1alpha1_namespaced_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1Role', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_rbac_authorization_v1alpha1_namespaced_role_binding(self, name, namespace, **kwargs): + """ + + read the specified RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_rbac_authorization_v1alpha1_namespaced_role_binding(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + return data + + def read_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): + """ + + read the specified RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_rbac_authorization_v1alpha1_namespaced_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_rbac_authorization_v1alpha1_namespaced_role_binding`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_rbac_authorization_v1alpha1_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_rbac_authorization_v1alpha1_cluster_role(self, name, body, **kwargs): + """ + + replace the specified ClusterRole + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_rbac_authorization_v1alpha1_cluster_role(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRole (required) + :param V1alpha1ClusterRole body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_rbac_authorization_v1alpha1_cluster_role_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_rbac_authorization_v1alpha1_cluster_role_with_http_info(name, body, **kwargs) + return data + + def replace_rbac_authorization_v1alpha1_cluster_role_with_http_info(self, name, body, **kwargs): + """ + + replace the specified ClusterRole + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_rbac_authorization_v1alpha1_cluster_role_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRole (required) + :param V1alpha1ClusterRole body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_rbac_authorization_v1alpha1_cluster_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_rbac_authorization_v1alpha1_cluster_role`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_rbac_authorization_v1alpha1_cluster_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRole', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_rbac_authorization_v1alpha1_cluster_role_binding(self, name, body, **kwargs): + """ + + replace the specified ClusterRoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_rbac_authorization_v1alpha1_cluster_role_binding(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRoleBinding (required) + :param V1alpha1ClusterRoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(name, body, **kwargs) + return data + + def replace_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(self, name, body, **kwargs): + """ + + replace the specified ClusterRoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRoleBinding (required) + :param V1alpha1ClusterRoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_rbac_authorization_v1alpha1_cluster_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_rbac_authorization_v1alpha1_cluster_role_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_rbac_authorization_v1alpha1_cluster_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_rbac_authorization_v1alpha1_namespaced_role(self, name, namespace, body, **kwargs): + """ + + replace the specified Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_rbac_authorization_v1alpha1_namespaced_role(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Role (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1Role body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_rbac_authorization_v1alpha1_namespaced_role_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_rbac_authorization_v1alpha1_namespaced_role_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_rbac_authorization_v1alpha1_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_rbac_authorization_v1alpha1_namespaced_role_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Role (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1Role body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1Role + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_rbac_authorization_v1alpha1_namespaced_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_rbac_authorization_v1alpha1_namespaced_role`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_rbac_authorization_v1alpha1_namespaced_role`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_rbac_authorization_v1alpha1_namespaced_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1Role', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_rbac_authorization_v1alpha1_namespaced_role_binding(self, name, namespace, body, **kwargs): + """ + + replace the specified RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_rbac_authorization_v1alpha1_namespaced_role_binding(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1RoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): + """ + + replace the specified RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1RoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_rbac_authorization_v1alpha1_namespaced_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_rbac_authorization_v1alpha1_namespaced_role_binding`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_rbac_authorization_v1alpha1_namespaced_role_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_rbac_authorization_v1alpha1_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_rbac_authorization_v1alpha1_cluster_role(self, name, **kwargs): + """ + + watch changes to an object of kind ClusterRole + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_cluster_role(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRole (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_rbac_authorization_v1alpha1_cluster_role_with_http_info(name, **kwargs) + else: + (data) = self.watch_rbac_authorization_v1alpha1_cluster_role_with_http_info(name, **kwargs) + return data + + def watch_rbac_authorization_v1alpha1_cluster_role_with_http_info(self, name, **kwargs): + """ + + watch changes to an object of kind ClusterRole + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_cluster_role_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRole (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_rbac_authorization_v1alpha1_cluster_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_rbac_authorization_v1alpha1_cluster_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_rbac_authorization_v1alpha1_cluster_role_binding(self, name, **kwargs): + """ + + watch changes to an object of kind ClusterRoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_cluster_role_binding(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRoleBinding (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(name, **kwargs) + else: + (data) = self.watch_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(name, **kwargs) + return data + + def watch_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(self, name, **kwargs): + """ + + watch changes to an object of kind ClusterRoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_cluster_role_binding_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRoleBinding (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_rbac_authorization_v1alpha1_cluster_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_rbac_authorization_v1alpha1_cluster_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_rbac_authorization_v1alpha1_cluster_role_binding_list(self, **kwargs): + """ + + watch individual changes to a list of ClusterRoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_cluster_role_binding_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_rbac_authorization_v1alpha1_cluster_role_binding_list_with_http_info(**kwargs) + else: + (data) = self.watch_rbac_authorization_v1alpha1_cluster_role_binding_list_with_http_info(**kwargs) + return data + + def watch_rbac_authorization_v1alpha1_cluster_role_binding_list_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of ClusterRoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_cluster_role_binding_list_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_rbac_authorization_v1alpha1_cluster_role_binding_list" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_rbac_authorization_v1alpha1_cluster_role_list(self, **kwargs): + """ + + watch individual changes to a list of ClusterRole + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_cluster_role_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_rbac_authorization_v1alpha1_cluster_role_list_with_http_info(**kwargs) + else: + (data) = self.watch_rbac_authorization_v1alpha1_cluster_role_list_with_http_info(**kwargs) + return data + + def watch_rbac_authorization_v1alpha1_cluster_role_list_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of ClusterRole + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_cluster_role_list_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_rbac_authorization_v1alpha1_cluster_role_list" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_rbac_authorization_v1alpha1_namespaced_role(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_namespaced_role(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Role (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_rbac_authorization_v1alpha1_namespaced_role_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_rbac_authorization_v1alpha1_namespaced_role_with_http_info(name, namespace, **kwargs) + return data + + def watch_rbac_authorization_v1alpha1_namespaced_role_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_namespaced_role_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Role (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_rbac_authorization_v1alpha1_namespaced_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_rbac_authorization_v1alpha1_namespaced_role`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_rbac_authorization_v1alpha1_namespaced_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_rbac_authorization_v1alpha1_namespaced_role_binding(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_namespaced_role_binding(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + else: + (data) = self.watch_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + return data + + def watch_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): + """ + + watch changes to an object of kind RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_namespaced_role_binding_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_rbac_authorization_v1alpha1_namespaced_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_rbac_authorization_v1alpha1_namespaced_role_binding`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_rbac_authorization_v1alpha1_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_rbac_authorization_v1alpha1_namespaced_role_binding_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_namespaced_role_binding_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_rbac_authorization_v1alpha1_namespaced_role_binding_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_rbac_authorization_v1alpha1_namespaced_role_binding_list_with_http_info(namespace, **kwargs) + return data + + def watch_rbac_authorization_v1alpha1_namespaced_role_binding_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_namespaced_role_binding_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_rbac_authorization_v1alpha1_namespaced_role_binding_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_rbac_authorization_v1alpha1_namespaced_role_binding_list`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_rbac_authorization_v1alpha1_namespaced_role_list(self, namespace, **kwargs): + """ + + watch individual changes to a list of Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_namespaced_role_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_rbac_authorization_v1alpha1_namespaced_role_list_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_rbac_authorization_v1alpha1_namespaced_role_list_with_http_info(namespace, **kwargs) + return data + + def watch_rbac_authorization_v1alpha1_namespaced_role_list_with_http_info(self, namespace, **kwargs): + """ + + watch individual changes to a list of Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_namespaced_role_list_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_rbac_authorization_v1alpha1_namespaced_role_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_rbac_authorization_v1alpha1_namespaced_role_list`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_rbac_authorization_v1alpha1_role_binding_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_role_binding_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_rbac_authorization_v1alpha1_role_binding_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_rbac_authorization_v1alpha1_role_binding_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_rbac_authorization_v1alpha1_role_binding_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of RoleBinding + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_role_binding_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_rbac_authorization_v1alpha1_role_binding_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/rolebindings'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_rbac_authorization_v1alpha1_role_list_for_all_namespaces(self, **kwargs): + """ + + watch individual changes to a list of Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_role_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_rbac_authorization_v1alpha1_role_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_rbac_authorization_v1alpha1_role_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_rbac_authorization_v1alpha1_role_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of Role + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_rbac_authorization_v1alpha1_role_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_rbac_authorization_v1alpha1_role_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/roles'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/storage_api.py b/k8sclient/apis/storage_api.py new file mode 100644 index 000000000..29ab0d2d8 --- /dev/null +++ b/k8sclient/apis/storage_api.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class StorageApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_storage_api_group(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_storage_api_group(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_storage_api_group_with_http_info(**kwargs) + else: + (data) = self.get_storage_api_group_with_http_info(**kwargs) + return data + + def get_storage_api_group_with_http_info(self, **kwargs): + """ + + get information of a group + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_storage_api_group_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_storage_api_group" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIGroup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/storage_v1beta1_api.py b/k8sclient/apis/storage_v1beta1_api.py new file mode 100644 index 000000000..3ced2626e --- /dev/null +++ b/k8sclient/apis/storage_v1beta1_api.py @@ -0,0 +1,1249 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class StorageV1beta1Api(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_storage_v1beta1_storage_class(self, body, **kwargs): + """ + + create a StorageClass + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_storage_v1beta1_storage_class(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1StorageClass body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1StorageClass + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_storage_v1beta1_storage_class_with_http_info(body, **kwargs) + else: + (data) = self.create_storage_v1beta1_storage_class_with_http_info(body, **kwargs) + return data + + def create_storage_v1beta1_storage_class_with_http_info(self, body, **kwargs): + """ + + create a StorageClass + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_storage_v1beta1_storage_class_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1StorageClass body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1StorageClass + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_storage_v1beta1_storage_class" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_storage_v1beta1_storage_class`") + + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/v1beta1/storageclasses'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StorageClass', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_storage_v1beta1_collection_storage_class(self, **kwargs): + """ + + delete collection of StorageClass + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_storage_v1beta1_collection_storage_class(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_storage_v1beta1_collection_storage_class_with_http_info(**kwargs) + else: + (data) = self.delete_storage_v1beta1_collection_storage_class_with_http_info(**kwargs) + return data + + def delete_storage_v1beta1_collection_storage_class_with_http_info(self, **kwargs): + """ + + delete collection of StorageClass + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_storage_v1beta1_collection_storage_class_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_storage_v1beta1_collection_storage_class" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/v1beta1/storageclasses'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def delete_storage_v1beta1_storage_class(self, name, body, **kwargs): + """ + + delete a StorageClass + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_storage_v1beta1_storage_class(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StorageClass (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_storage_v1beta1_storage_class_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_storage_v1beta1_storage_class_with_http_info(name, body, **kwargs) + return data + + def delete_storage_v1beta1_storage_class_with_http_info(self, name, body, **kwargs): + """ + + delete a StorageClass + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_storage_v1beta1_storage_class_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StorageClass (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_storage_v1beta1_storage_class" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_storage_v1beta1_storage_class`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_storage_v1beta1_storage_class`") + + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/v1beta1/storageclasses/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def get_storage_v1beta1_api_resources(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_storage_v1beta1_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_storage_v1beta1_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_storage_v1beta1_api_resources_with_http_info(**kwargs) + return data + + def get_storage_v1beta1_api_resources_with_http_info(self, **kwargs): + """ + + get available resources + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_storage_v1beta1_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_storage_v1beta1_api_resources" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/v1beta1/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def list_storage_v1beta1_storage_class(self, **kwargs): + """ + + list or watch objects of kind StorageClass + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_storage_v1beta1_storage_class(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1StorageClassList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_storage_v1beta1_storage_class_with_http_info(**kwargs) + else: + (data) = self.list_storage_v1beta1_storage_class_with_http_info(**kwargs) + return data + + def list_storage_v1beta1_storage_class_with_http_info(self, **kwargs): + """ + + list or watch objects of kind StorageClass + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_storage_v1beta1_storage_class_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1StorageClassList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_storage_v1beta1_storage_class" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/v1beta1/storageclasses'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StorageClassList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def patch_storage_v1beta1_storage_class(self, name, body, **kwargs): + """ + + partially update the specified StorageClass + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_storage_v1beta1_storage_class(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StorageClass (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1StorageClass + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_storage_v1beta1_storage_class_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_storage_v1beta1_storage_class_with_http_info(name, body, **kwargs) + return data + + def patch_storage_v1beta1_storage_class_with_http_info(self, name, body, **kwargs): + """ + + partially update the specified StorageClass + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_storage_v1beta1_storage_class_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StorageClass (required) + :param UnversionedPatch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1StorageClass + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_storage_v1beta1_storage_class" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_storage_v1beta1_storage_class`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_storage_v1beta1_storage_class`") + + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/v1beta1/storageclasses/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StorageClass', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def read_storage_v1beta1_storage_class(self, name, **kwargs): + """ + + read the specified StorageClass + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_storage_v1beta1_storage_class(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StorageClass (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1StorageClass + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_storage_v1beta1_storage_class_with_http_info(name, **kwargs) + else: + (data) = self.read_storage_v1beta1_storage_class_with_http_info(name, **kwargs) + return data + + def read_storage_v1beta1_storage_class_with_http_info(self, name, **kwargs): + """ + + read the specified StorageClass + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_storage_v1beta1_storage_class_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StorageClass (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1StorageClass + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_storage_v1beta1_storage_class" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_storage_v1beta1_storage_class`") + + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/v1beta1/storageclasses/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StorageClass', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def replace_storage_v1beta1_storage_class(self, name, body, **kwargs): + """ + + replace the specified StorageClass + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_storage_v1beta1_storage_class(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StorageClass (required) + :param V1beta1StorageClass body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1StorageClass + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_storage_v1beta1_storage_class_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_storage_v1beta1_storage_class_with_http_info(name, body, **kwargs) + return data + + def replace_storage_v1beta1_storage_class_with_http_info(self, name, body, **kwargs): + """ + + replace the specified StorageClass + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_storage_v1beta1_storage_class_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StorageClass (required) + :param V1beta1StorageClass body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1StorageClass + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_storage_v1beta1_storage_class" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_storage_v1beta1_storage_class`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_storage_v1beta1_storage_class`") + + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/v1beta1/storageclasses/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StorageClass', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_storage_v1beta1_storage_class(self, name, **kwargs): + """ + + watch changes to an object of kind StorageClass + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_storage_v1beta1_storage_class(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StorageClass (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_storage_v1beta1_storage_class_with_http_info(name, **kwargs) + else: + (data) = self.watch_storage_v1beta1_storage_class_with_http_info(name, **kwargs) + return data + + def watch_storage_v1beta1_storage_class_with_http_info(self, name, **kwargs): + """ + + watch changes to an object of kind StorageClass + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_storage_v1beta1_storage_class_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the StorageClass (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_storage_v1beta1_storage_class" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `watch_storage_v1beta1_storage_class`") + + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/v1beta1/watch/storageclasses/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) + + def watch_storage_v1beta1_storage_class_list(self, **kwargs): + """ + + watch individual changes to a list of StorageClass + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_storage_v1beta1_storage_class_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_storage_v1beta1_storage_class_list_with_http_info(**kwargs) + else: + (data) = self.watch_storage_v1beta1_storage_class_list_with_http_info(**kwargs) + return data + + def watch_storage_v1beta1_storage_class_list_with_http_info(self, **kwargs): + """ + + watch individual changes to a list of StorageClass + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_storage_v1beta1_storage_class_list_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: VersionedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_storage_v1beta1_storage_class_list" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/v1beta1/watch/storageclasses'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionedEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/apis/version_api.py b/k8sclient/apis/version_api.py new file mode 100644 index 000000000..26f859404 --- /dev/null +++ b/k8sclient/apis/version_api.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class VersionApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_code_version(self, **kwargs): + """ + + get the code version + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_code_version(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: VersionInfo + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_code_version_with_http_info(**kwargs) + else: + (data) = self.get_code_version_with_http_info(**kwargs) + return data + + def get_code_version_with_http_info(self, **kwargs): + """ + + get the code version + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_code_version_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: VersionInfo + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_code_version" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/version/'.replace('{format}', 'json') + path_params = {} + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionInfo', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + collection_formats=collection_formats) diff --git a/k8sclient/configuration.py b/k8sclient/configuration.py new file mode 100644 index 000000000..96b0161b5 --- /dev/null +++ b/k8sclient/configuration.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import urllib3 + +import sys +import logging + +from six import iteritems +from six.moves import http_client as httplib + + +def singleton(cls, *args, **kw): + instances = {} + + def _singleton(): + if cls not in instances: + instances[cls] = cls(*args, **kw) + return instances[cls] + return _singleton + + +@singleton +class Configuration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Ref: https://github.com/swagger-api/swagger-codegen + Do not edit the class manually. + """ + + def __init__(self): + """ + Constructor + """ + # Default Base url + self.host = "https://localhost" + # Default api client + self.api_client = None + # Temp file folder for downloading files + self.temp_folder_path = None + + # Authentication Settings + # dict to store API key(s) + self.api_key = {} + # dict to store API prefix (e.g. Bearer) + self.api_key_prefix = {} + # Username for HTTP basic authentication + self.username = "" + # Password for HTTP basic authentication + self.password = "" + + # Logging Settings + self.logger = {} + self.logger["package_logger"] = logging.getLogger("k8sclient") + self.logger["urllib3_logger"] = logging.getLogger("urllib3") + # Log format + self.logger_format = '%(asctime)s %(levelname)s %(message)s' + # Log stream handler + self.logger_stream_handler = None + # Log file handler + self.logger_file_handler = None + # Debug file location + self.logger_file = None + # Debug switch + self.debug = False + + # SSL/TLS verification + # Set this to false to skip verifying SSL certificate when calling API from https server. + self.verify_ssl = True + # Set this to customize the certificate file to verify the peer. + self.ssl_ca_cert = None + # client certificate file + self.cert_file = None + # client key file + self.key_file = None + + @property + def logger_file(self): + """ + Gets the logger_file. + """ + return self.__logger_file + + @logger_file.setter + def logger_file(self, value): + """ + Sets the logger_file. + + If the logger_file is None, then add stream handler and remove file handler. + Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + self.__logger_file = value + if self.__logger_file: + # If set logging file, + # then add file handler and remove stream handler. + self.logger_file_handler = logging.FileHandler(self.__logger_file) + self.logger_file_handler.setFormatter(self.logger_formatter) + for _, logger in iteritems(self.logger): + logger.addHandler(self.logger_file_handler) + if self.logger_stream_handler: + logger.removeHandler(self.logger_stream_handler) + else: + # If not set logging file, + # then add stream handler and remove file handler. + self.logger_stream_handler = logging.StreamHandler() + self.logger_stream_handler.setFormatter(self.logger_formatter) + for _, logger in iteritems(self.logger): + logger.addHandler(self.logger_stream_handler) + if self.logger_file_handler: + logger.removeHandler(self.logger_file_handler) + + @property + def debug(self): + """ + Gets the debug status. + """ + return self.__debug + + @debug.setter + def debug(self, value): + """ + Sets the debug status. + + :param value: The debug status, True or False. + :type: bool + """ + self.__debug = value + if self.__debug: + # if debug status is True, turn on debug logging + for _, logger in iteritems(self.logger): + logger.setLevel(logging.DEBUG) + # turn on httplib debug + httplib.HTTPConnection.debuglevel = 1 + else: + # if debug status is False, turn off debug logging, + # setting log level to default `logging.WARNING` + for _, logger in iteritems(self.logger): + logger.setLevel(logging.WARNING) + # turn off httplib debug + httplib.HTTPConnection.debuglevel = 0 + + @property + def logger_format(self): + """ + Gets the logger_format. + """ + return self.__logger_format + + @logger_format.setter + def logger_format(self, value): + """ + Sets the logger_format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + self.__logger_format = value + self.logger_formatter = logging.Formatter(self.__logger_format) + + def get_api_key_with_prefix(self, identifier): + """ + Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :return: The token for api key authentication. + """ + if self.api_key.get(identifier) and self.api_key_prefix.get(identifier): + return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] + elif self.api_key.get(identifier): + return self.api_key[identifier] + + def get_basic_auth_token(self): + """ + Gets HTTP basic authentication header (string). + + :return: The token for basic HTTP authentication. + """ + return urllib3.util.make_headers(basic_auth=self.username + ':' + self.password)\ + .get('authorization') + + def auth_settings(self): + """ + Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + return { + 'BearerToken': + { + 'type': 'api_key', + 'in': 'header', + 'key': 'authorization', + 'value': self.get_api_key_with_prefix('authorization') + }, + + } + + def to_debug_report(self): + """ + Gets the essential information for debugging. + + :return: The report for debugging. + """ + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: unversioned\n"\ + "SDK Package Version: 1.0.0".\ + format(env=sys.platform, pyversion=sys.version) diff --git a/k8sclient/models/__init__.py b/k8sclient/models/__init__.py new file mode 100644 index 000000000..73671df8b --- /dev/null +++ b/k8sclient/models/__init__.py @@ -0,0 +1,248 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +# import models into model package +from .intstr_int_or_string import IntstrIntOrString +from .resource_quantity import ResourceQuantity +from .runtime_raw_extension import RuntimeRawExtension +from .unversioned_api_group import UnversionedAPIGroup +from .unversioned_api_group_list import UnversionedAPIGroupList +from .unversioned_api_resource import UnversionedAPIResource +from .unversioned_api_resource_list import UnversionedAPIResourceList +from .unversioned_api_versions import UnversionedAPIVersions +from .unversioned_group_version_for_discovery import UnversionedGroupVersionForDiscovery +from .unversioned_label_selector import UnversionedLabelSelector +from .unversioned_label_selector_requirement import UnversionedLabelSelectorRequirement +from .unversioned_list_meta import UnversionedListMeta +from .unversioned_server_address_by_client_cidr import UnversionedServerAddressByClientCIDR +from .unversioned_status import UnversionedStatus +from .unversioned_status_cause import UnversionedStatusCause +from .unversioned_status_details import UnversionedStatusDetails +from .unversioned_time import UnversionedTime +from .v1_attached_volume import V1AttachedVolume +from .v1_binding import V1Binding +from .v1_capabilities import V1Capabilities +from .v1_component_condition import V1ComponentCondition +from .v1_component_status import V1ComponentStatus +from .v1_component_status_list import V1ComponentStatusList +from .v1_config_map import V1ConfigMap +from .v1_config_map_key_selector import V1ConfigMapKeySelector +from .v1_config_map_list import V1ConfigMapList +from .v1_container import V1Container +from .v1_container_image import V1ContainerImage +from .v1_container_port import V1ContainerPort +from .v1_container_state import V1ContainerState +from .v1_container_state_running import V1ContainerStateRunning +from .v1_container_state_terminated import V1ContainerStateTerminated +from .v1_container_state_waiting import V1ContainerStateWaiting +from .v1_container_status import V1ContainerStatus +from .v1_cross_version_object_reference import V1CrossVersionObjectReference +from .v1_daemon_endpoint import V1DaemonEndpoint +from .v1_delete_options import V1DeleteOptions +from .v1_endpoint_address import V1EndpointAddress +from .v1_endpoint_port import V1EndpointPort +from .v1_endpoint_subset import V1EndpointSubset +from .v1_endpoints import V1Endpoints +from .v1_endpoints_list import V1EndpointsList +from .v1_env_var import V1EnvVar +from .v1_env_var_source import V1EnvVarSource +from .v1_event import V1Event +from .v1_event_list import V1EventList +from .v1_event_source import V1EventSource +from .v1_exec_action import V1ExecAction +from .v1_http_get_action import V1HTTPGetAction +from .v1_http_header import V1HTTPHeader +from .v1_handler import V1Handler +from .v1_horizontal_pod_autoscaler import V1HorizontalPodAutoscaler +from .v1_horizontal_pod_autoscaler_list import V1HorizontalPodAutoscalerList +from .v1_horizontal_pod_autoscaler_spec import V1HorizontalPodAutoscalerSpec +from .v1_horizontal_pod_autoscaler_status import V1HorizontalPodAutoscalerStatus +from .v1_job import V1Job +from .v1_job_condition import V1JobCondition +from .v1_job_list import V1JobList +from .v1_job_spec import V1JobSpec +from .v1_job_status import V1JobStatus +from .v1_lifecycle import V1Lifecycle +from .v1_limit_range import V1LimitRange +from .v1_limit_range_item import V1LimitRangeItem +from .v1_limit_range_list import V1LimitRangeList +from .v1_limit_range_spec import V1LimitRangeSpec +from .v1_load_balancer_ingress import V1LoadBalancerIngress +from .v1_load_balancer_status import V1LoadBalancerStatus +from .v1_local_object_reference import V1LocalObjectReference +from .v1_namespace import V1Namespace +from .v1_namespace_list import V1NamespaceList +from .v1_namespace_spec import V1NamespaceSpec +from .v1_namespace_status import V1NamespaceStatus +from .v1_node import V1Node +from .v1_node_address import V1NodeAddress +from .v1_node_condition import V1NodeCondition +from .v1_node_daemon_endpoints import V1NodeDaemonEndpoints +from .v1_node_list import V1NodeList +from .v1_node_spec import V1NodeSpec +from .v1_node_status import V1NodeStatus +from .v1_node_system_info import V1NodeSystemInfo +from .v1_object_field_selector import V1ObjectFieldSelector +from .v1_object_meta import V1ObjectMeta +from .v1_object_reference import V1ObjectReference +from .v1_owner_reference import V1OwnerReference +from .v1_persistent_volume import V1PersistentVolume +from .v1_persistent_volume_claim import V1PersistentVolumeClaim +from .v1_persistent_volume_claim_list import V1PersistentVolumeClaimList +from .v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec +from .v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus +from .v1_persistent_volume_list import V1PersistentVolumeList +from .v1_persistent_volume_spec import V1PersistentVolumeSpec +from .v1_persistent_volume_status import V1PersistentVolumeStatus +from .v1_pod import V1Pod +from .v1_pod_condition import V1PodCondition +from .v1_pod_list import V1PodList +from .v1_pod_security_context import V1PodSecurityContext +from .v1_pod_spec import V1PodSpec +from .v1_pod_status import V1PodStatus +from .v1_pod_template import V1PodTemplate +from .v1_pod_template_list import V1PodTemplateList +from .v1_pod_template_spec import V1PodTemplateSpec +from .v1_preconditions import V1Preconditions +from .v1_probe import V1Probe +from .v1_replication_controller import V1ReplicationController +from .v1_replication_controller_condition import V1ReplicationControllerCondition +from .v1_replication_controller_list import V1ReplicationControllerList +from .v1_replication_controller_spec import V1ReplicationControllerSpec +from .v1_replication_controller_status import V1ReplicationControllerStatus +from .v1_resource_field_selector import V1ResourceFieldSelector +from .v1_resource_quota import V1ResourceQuota +from .v1_resource_quota_list import V1ResourceQuotaList +from .v1_resource_quota_spec import V1ResourceQuotaSpec +from .v1_resource_quota_status import V1ResourceQuotaStatus +from .v1_resource_requirements import V1ResourceRequirements +from .v1_se_linux_options import V1SELinuxOptions +from .v1_scale import V1Scale +from .v1_scale_spec import V1ScaleSpec +from .v1_scale_status import V1ScaleStatus +from .v1_secret import V1Secret +from .v1_secret_key_selector import V1SecretKeySelector +from .v1_secret_list import V1SecretList +from .v1_security_context import V1SecurityContext +from .v1_service import V1Service +from .v1_service_account import V1ServiceAccount +from .v1_service_account_list import V1ServiceAccountList +from .v1_service_list import V1ServiceList +from .v1_service_port import V1ServicePort +from .v1_service_spec import V1ServiceSpec +from .v1_service_status import V1ServiceStatus +from .v1_tcp_socket_action import V1TCPSocketAction +from .v1_volume import V1Volume +from .v1_volume_mount import V1VolumeMount +from .v1alpha1_certificate_signing_request import V1alpha1CertificateSigningRequest +from .v1alpha1_certificate_signing_request_condition import V1alpha1CertificateSigningRequestCondition +from .v1alpha1_certificate_signing_request_list import V1alpha1CertificateSigningRequestList +from .v1alpha1_certificate_signing_request_spec import V1alpha1CertificateSigningRequestSpec +from .v1alpha1_certificate_signing_request_status import V1alpha1CertificateSigningRequestStatus +from .v1alpha1_cluster_role import V1alpha1ClusterRole +from .v1alpha1_cluster_role_binding import V1alpha1ClusterRoleBinding +from .v1alpha1_cluster_role_binding_list import V1alpha1ClusterRoleBindingList +from .v1alpha1_cluster_role_list import V1alpha1ClusterRoleList +from .v1alpha1_eviction import V1alpha1Eviction +from .v1alpha1_pod_disruption_budget import V1alpha1PodDisruptionBudget +from .v1alpha1_pod_disruption_budget_list import V1alpha1PodDisruptionBudgetList +from .v1alpha1_pod_disruption_budget_spec import V1alpha1PodDisruptionBudgetSpec +from .v1alpha1_pod_disruption_budget_status import V1alpha1PodDisruptionBudgetStatus +from .v1alpha1_policy_rule import V1alpha1PolicyRule +from .v1alpha1_role import V1alpha1Role +from .v1alpha1_role_binding import V1alpha1RoleBinding +from .v1alpha1_role_binding_list import V1alpha1RoleBindingList +from .v1alpha1_role_list import V1alpha1RoleList +from .v1alpha1_role_ref import V1alpha1RoleRef +from .v1alpha1_stateful_set import V1alpha1StatefulSet +from .v1alpha1_stateful_set_list import V1alpha1StatefulSetList +from .v1alpha1_stateful_set_spec import V1alpha1StatefulSetSpec +from .v1alpha1_stateful_set_status import V1alpha1StatefulSetStatus +from .v1alpha1_subject import V1alpha1Subject +from .v1beta1_api_version import V1beta1APIVersion +from .v1beta1_cpu_target_utilization import V1beta1CPUTargetUtilization +from .v1beta1_daemon_set import V1beta1DaemonSet +from .v1beta1_daemon_set_list import V1beta1DaemonSetList +from .v1beta1_daemon_set_spec import V1beta1DaemonSetSpec +from .v1beta1_daemon_set_status import V1beta1DaemonSetStatus +from .v1beta1_deployment import V1beta1Deployment +from .v1beta1_deployment_condition import V1beta1DeploymentCondition +from .v1beta1_deployment_list import V1beta1DeploymentList +from .v1beta1_deployment_rollback import V1beta1DeploymentRollback +from .v1beta1_deployment_spec import V1beta1DeploymentSpec +from .v1beta1_deployment_status import V1beta1DeploymentStatus +from .v1beta1_deployment_strategy import V1beta1DeploymentStrategy +from .v1beta1_horizontal_pod_autoscaler import V1beta1HorizontalPodAutoscaler +from .v1beta1_horizontal_pod_autoscaler_list import V1beta1HorizontalPodAutoscalerList +from .v1beta1_horizontal_pod_autoscaler_spec import V1beta1HorizontalPodAutoscalerSpec +from .v1beta1_horizontal_pod_autoscaler_status import V1beta1HorizontalPodAutoscalerStatus +from .v1beta1_ingress import V1beta1Ingress +from .v1beta1_ingress_backend import V1beta1IngressBackend +from .v1beta1_ingress_list import V1beta1IngressList +from .v1beta1_ingress_rule import V1beta1IngressRule +from .v1beta1_ingress_spec import V1beta1IngressSpec +from .v1beta1_ingress_status import V1beta1IngressStatus +from .v1beta1_ingress_tls import V1beta1IngressTLS +from .v1beta1_job import V1beta1Job +from .v1beta1_job_condition import V1beta1JobCondition +from .v1beta1_job_list import V1beta1JobList +from .v1beta1_job_spec import V1beta1JobSpec +from .v1beta1_job_status import V1beta1JobStatus +from .v1beta1_local_subject_access_review import V1beta1LocalSubjectAccessReview +from .v1beta1_network_policy import V1beta1NetworkPolicy +from .v1beta1_network_policy_ingress_rule import V1beta1NetworkPolicyIngressRule +from .v1beta1_network_policy_list import V1beta1NetworkPolicyList +from .v1beta1_network_policy_peer import V1beta1NetworkPolicyPeer +from .v1beta1_network_policy_port import V1beta1NetworkPolicyPort +from .v1beta1_network_policy_spec import V1beta1NetworkPolicySpec +from .v1beta1_non_resource_attributes import V1beta1NonResourceAttributes +from .v1beta1_replica_set import V1beta1ReplicaSet +from .v1beta1_replica_set_condition import V1beta1ReplicaSetCondition +from .v1beta1_replica_set_list import V1beta1ReplicaSetList +from .v1beta1_replica_set_spec import V1beta1ReplicaSetSpec +from .v1beta1_replica_set_status import V1beta1ReplicaSetStatus +from .v1beta1_resource_attributes import V1beta1ResourceAttributes +from .v1beta1_rollback_config import V1beta1RollbackConfig +from .v1beta1_rolling_update_deployment import V1beta1RollingUpdateDeployment +from .v1beta1_scale import V1beta1Scale +from .v1beta1_scale_spec import V1beta1ScaleSpec +from .v1beta1_scale_status import V1beta1ScaleStatus +from .v1beta1_self_subject_access_review import V1beta1SelfSubjectAccessReview +from .v1beta1_self_subject_access_review_spec import V1beta1SelfSubjectAccessReviewSpec +from .v1beta1_storage_class import V1beta1StorageClass +from .v1beta1_storage_class_list import V1beta1StorageClassList +from .v1beta1_subject_access_review import V1beta1SubjectAccessReview +from .v1beta1_subject_access_review_spec import V1beta1SubjectAccessReviewSpec +from .v1beta1_subject_access_review_status import V1beta1SubjectAccessReviewStatus +from .v1beta1_subresource_reference import V1beta1SubresourceReference +from .v1beta1_third_party_resource import V1beta1ThirdPartyResource +from .v1beta1_third_party_resource_list import V1beta1ThirdPartyResourceList +from .v1beta1_token_review import V1beta1TokenReview +from .v1beta1_token_review_spec import V1beta1TokenReviewSpec +from .v1beta1_token_review_status import V1beta1TokenReviewStatus +from .v1beta1_user_info import V1beta1UserInfo +from .version_info import VersionInfo +from .versioned_event import VersionedEvent diff --git a/k8sclient/models/intstr_int_or_string.py b/k8sclient/models/intstr_int_or_string.py new file mode 100644 index 000000000..0a996a998 --- /dev/null +++ b/k8sclient/models/intstr_int_or_string.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class IntstrIntOrString(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + IntstrIntOrString - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + + } + + self.attribute_map = { + + } + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/resource_quantity.py b/k8sclient/models/resource_quantity.py new file mode 100644 index 000000000..36c5ba6fa --- /dev/null +++ b/k8sclient/models/resource_quantity.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class ResourceQuantity(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ResourceQuantity - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + + } + + self.attribute_map = { + + } + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/runtime_raw_extension.py b/k8sclient/models/runtime_raw_extension.py new file mode 100644 index 000000000..d913d0d13 --- /dev/null +++ b/k8sclient/models/runtime_raw_extension.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class RuntimeRawExtension(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, raw=None): + """ + RuntimeRawExtension - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'raw': 'str' + } + + self.attribute_map = { + 'raw': 'Raw' + } + + self._raw = raw + + + @property + def raw(self): + """ + Gets the raw of this RuntimeRawExtension. + Raw is the underlying serialization of this object. + + :return: The raw of this RuntimeRawExtension. + :rtype: str + """ + return self._raw + + @raw.setter + def raw(self, raw): + """ + Sets the raw of this RuntimeRawExtension. + Raw is the underlying serialization of this object. + + :param raw: The raw of this RuntimeRawExtension. + :type: str + """ + if raw is None: + raise ValueError("Invalid value for `raw`, must not be `None`") + + self._raw = raw + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/unversioned_api_group.py b/k8sclient/models/unversioned_api_group.py new file mode 100644 index 000000000..82cd52bd8 --- /dev/null +++ b/k8sclient/models/unversioned_api_group.py @@ -0,0 +1,210 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedAPIGroup(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, name=None, preferred_version=None, server_address_by_client_cid_rs=None, versions=None): + """ + UnversionedAPIGroup - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'preferred_version': 'UnversionedGroupVersionForDiscovery', + 'server_address_by_client_cid_rs': 'list[UnversionedServerAddressByClientCIDR]', + 'versions': 'list[UnversionedGroupVersionForDiscovery]' + } + + self.attribute_map = { + 'name': 'name', + 'preferred_version': 'preferredVersion', + 'server_address_by_client_cid_rs': 'serverAddressByClientCIDRs', + 'versions': 'versions' + } + + self._name = name + self._preferred_version = preferred_version + self._server_address_by_client_cid_rs = server_address_by_client_cid_rs + self._versions = versions + + + @property + def name(self): + """ + Gets the name of this UnversionedAPIGroup. + name is the name of the group. + + :return: The name of this UnversionedAPIGroup. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this UnversionedAPIGroup. + name is the name of the group. + + :param name: The name of this UnversionedAPIGroup. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def preferred_version(self): + """ + Gets the preferred_version of this UnversionedAPIGroup. + preferredVersion is the version preferred by the API server, which probably is the storage version. + + :return: The preferred_version of this UnversionedAPIGroup. + :rtype: UnversionedGroupVersionForDiscovery + """ + return self._preferred_version + + @preferred_version.setter + def preferred_version(self, preferred_version): + """ + Sets the preferred_version of this UnversionedAPIGroup. + preferredVersion is the version preferred by the API server, which probably is the storage version. + + :param preferred_version: The preferred_version of this UnversionedAPIGroup. + :type: UnversionedGroupVersionForDiscovery + """ + + self._preferred_version = preferred_version + + @property + def server_address_by_client_cid_rs(self): + """ + Gets the server_address_by_client_cid_rs of this UnversionedAPIGroup. + a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + + :return: The server_address_by_client_cid_rs of this UnversionedAPIGroup. + :rtype: list[UnversionedServerAddressByClientCIDR] + """ + return self._server_address_by_client_cid_rs + + @server_address_by_client_cid_rs.setter + def server_address_by_client_cid_rs(self, server_address_by_client_cid_rs): + """ + Sets the server_address_by_client_cid_rs of this UnversionedAPIGroup. + a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + + :param server_address_by_client_cid_rs: The server_address_by_client_cid_rs of this UnversionedAPIGroup. + :type: list[UnversionedServerAddressByClientCIDR] + """ + if server_address_by_client_cid_rs is None: + raise ValueError("Invalid value for `server_address_by_client_cid_rs`, must not be `None`") + + self._server_address_by_client_cid_rs = server_address_by_client_cid_rs + + @property + def versions(self): + """ + Gets the versions of this UnversionedAPIGroup. + versions are the versions supported in this group. + + :return: The versions of this UnversionedAPIGroup. + :rtype: list[UnversionedGroupVersionForDiscovery] + """ + return self._versions + + @versions.setter + def versions(self, versions): + """ + Sets the versions of this UnversionedAPIGroup. + versions are the versions supported in this group. + + :param versions: The versions of this UnversionedAPIGroup. + :type: list[UnversionedGroupVersionForDiscovery] + """ + if versions is None: + raise ValueError("Invalid value for `versions`, must not be `None`") + + self._versions = versions + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/unversioned_api_group_list.py b/k8sclient/models/unversioned_api_group_list.py new file mode 100644 index 000000000..6603f948f --- /dev/null +++ b/k8sclient/models/unversioned_api_group_list.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedAPIGroupList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, groups=None): + """ + UnversionedAPIGroupList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'groups': 'list[UnversionedAPIGroup]' + } + + self.attribute_map = { + 'groups': 'groups' + } + + self._groups = groups + + + @property + def groups(self): + """ + Gets the groups of this UnversionedAPIGroupList. + groups is a list of APIGroup. + + :return: The groups of this UnversionedAPIGroupList. + :rtype: list[UnversionedAPIGroup] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """ + Sets the groups of this UnversionedAPIGroupList. + groups is a list of APIGroup. + + :param groups: The groups of this UnversionedAPIGroupList. + :type: list[UnversionedAPIGroup] + """ + if groups is None: + raise ValueError("Invalid value for `groups`, must not be `None`") + + self._groups = groups + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/unversioned_api_resource.py b/k8sclient/models/unversioned_api_resource.py new file mode 100644 index 000000000..a5e43a0e8 --- /dev/null +++ b/k8sclient/models/unversioned_api_resource.py @@ -0,0 +1,184 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedAPIResource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, kind=None, name=None, namespaced=None): + """ + UnversionedAPIResource - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'name': 'str', + 'namespaced': 'bool' + } + + self.attribute_map = { + 'kind': 'kind', + 'name': 'name', + 'namespaced': 'namespaced' + } + + self._kind = kind + self._name = name + self._namespaced = namespaced + + + @property + def kind(self): + """ + Gets the kind of this UnversionedAPIResource. + kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + + :return: The kind of this UnversionedAPIResource. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this UnversionedAPIResource. + kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + + :param kind: The kind of this UnversionedAPIResource. + :type: str + """ + if kind is None: + raise ValueError("Invalid value for `kind`, must not be `None`") + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this UnversionedAPIResource. + name is the name of the resource. + + :return: The name of this UnversionedAPIResource. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this UnversionedAPIResource. + name is the name of the resource. + + :param name: The name of this UnversionedAPIResource. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def namespaced(self): + """ + Gets the namespaced of this UnversionedAPIResource. + namespaced indicates if a resource is namespaced or not. + + :return: The namespaced of this UnversionedAPIResource. + :rtype: bool + """ + return self._namespaced + + @namespaced.setter + def namespaced(self, namespaced): + """ + Sets the namespaced of this UnversionedAPIResource. + namespaced indicates if a resource is namespaced or not. + + :param namespaced: The namespaced of this UnversionedAPIResource. + :type: bool + """ + if namespaced is None: + raise ValueError("Invalid value for `namespaced`, must not be `None`") + + self._namespaced = namespaced + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/unversioned_api_resource_list.py b/k8sclient/models/unversioned_api_resource_list.py new file mode 100644 index 000000000..9ac39f88b --- /dev/null +++ b/k8sclient/models/unversioned_api_resource_list.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedAPIResourceList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, group_version=None, resources=None): + """ + UnversionedAPIResourceList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'group_version': 'str', + 'resources': 'list[UnversionedAPIResource]' + } + + self.attribute_map = { + 'group_version': 'groupVersion', + 'resources': 'resources' + } + + self._group_version = group_version + self._resources = resources + + + @property + def group_version(self): + """ + Gets the group_version of this UnversionedAPIResourceList. + groupVersion is the group and version this APIResourceList is for. + + :return: The group_version of this UnversionedAPIResourceList. + :rtype: str + """ + return self._group_version + + @group_version.setter + def group_version(self, group_version): + """ + Sets the group_version of this UnversionedAPIResourceList. + groupVersion is the group and version this APIResourceList is for. + + :param group_version: The group_version of this UnversionedAPIResourceList. + :type: str + """ + if group_version is None: + raise ValueError("Invalid value for `group_version`, must not be `None`") + + self._group_version = group_version + + @property + def resources(self): + """ + Gets the resources of this UnversionedAPIResourceList. + resources contains the name of the resources and if they are namespaced. + + :return: The resources of this UnversionedAPIResourceList. + :rtype: list[UnversionedAPIResource] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this UnversionedAPIResourceList. + resources contains the name of the resources and if they are namespaced. + + :param resources: The resources of this UnversionedAPIResourceList. + :type: list[UnversionedAPIResource] + """ + if resources is None: + raise ValueError("Invalid value for `resources`, must not be `None`") + + self._resources = resources + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/unversioned_api_versions.py b/k8sclient/models/unversioned_api_versions.py new file mode 100644 index 000000000..969b24ce7 --- /dev/null +++ b/k8sclient/models/unversioned_api_versions.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedAPIVersions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, server_address_by_client_cid_rs=None, versions=None): + """ + UnversionedAPIVersions - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'server_address_by_client_cid_rs': 'list[UnversionedServerAddressByClientCIDR]', + 'versions': 'list[str]' + } + + self.attribute_map = { + 'server_address_by_client_cid_rs': 'serverAddressByClientCIDRs', + 'versions': 'versions' + } + + self._server_address_by_client_cid_rs = server_address_by_client_cid_rs + self._versions = versions + + + @property + def server_address_by_client_cid_rs(self): + """ + Gets the server_address_by_client_cid_rs of this UnversionedAPIVersions. + a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + + :return: The server_address_by_client_cid_rs of this UnversionedAPIVersions. + :rtype: list[UnversionedServerAddressByClientCIDR] + """ + return self._server_address_by_client_cid_rs + + @server_address_by_client_cid_rs.setter + def server_address_by_client_cid_rs(self, server_address_by_client_cid_rs): + """ + Sets the server_address_by_client_cid_rs of this UnversionedAPIVersions. + a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + + :param server_address_by_client_cid_rs: The server_address_by_client_cid_rs of this UnversionedAPIVersions. + :type: list[UnversionedServerAddressByClientCIDR] + """ + if server_address_by_client_cid_rs is None: + raise ValueError("Invalid value for `server_address_by_client_cid_rs`, must not be `None`") + + self._server_address_by_client_cid_rs = server_address_by_client_cid_rs + + @property + def versions(self): + """ + Gets the versions of this UnversionedAPIVersions. + versions are the api versions that are available. + + :return: The versions of this UnversionedAPIVersions. + :rtype: list[str] + """ + return self._versions + + @versions.setter + def versions(self, versions): + """ + Sets the versions of this UnversionedAPIVersions. + versions are the api versions that are available. + + :param versions: The versions of this UnversionedAPIVersions. + :type: list[str] + """ + if versions is None: + raise ValueError("Invalid value for `versions`, must not be `None`") + + self._versions = versions + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/unversioned_group_version_for_discovery.py b/k8sclient/models/unversioned_group_version_for_discovery.py new file mode 100644 index 000000000..2e3dd5cdb --- /dev/null +++ b/k8sclient/models/unversioned_group_version_for_discovery.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedGroupVersionForDiscovery(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, group_version=None, version=None): + """ + UnversionedGroupVersionForDiscovery - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'group_version': 'str', + 'version': 'str' + } + + self.attribute_map = { + 'group_version': 'groupVersion', + 'version': 'version' + } + + self._group_version = group_version + self._version = version + + + @property + def group_version(self): + """ + Gets the group_version of this UnversionedGroupVersionForDiscovery. + groupVersion specifies the API group and version in the form \"group/version\" + + :return: The group_version of this UnversionedGroupVersionForDiscovery. + :rtype: str + """ + return self._group_version + + @group_version.setter + def group_version(self, group_version): + """ + Sets the group_version of this UnversionedGroupVersionForDiscovery. + groupVersion specifies the API group and version in the form \"group/version\" + + :param group_version: The group_version of this UnversionedGroupVersionForDiscovery. + :type: str + """ + if group_version is None: + raise ValueError("Invalid value for `group_version`, must not be `None`") + + self._group_version = group_version + + @property + def version(self): + """ + Gets the version of this UnversionedGroupVersionForDiscovery. + version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. + + :return: The version of this UnversionedGroupVersionForDiscovery. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this UnversionedGroupVersionForDiscovery. + version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. + + :param version: The version of this UnversionedGroupVersionForDiscovery. + :type: str + """ + if version is None: + raise ValueError("Invalid value for `version`, must not be `None`") + + self._version = version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/unversioned_label_selector.py b/k8sclient/models/unversioned_label_selector.py new file mode 100644 index 000000000..724bdf73a --- /dev/null +++ b/k8sclient/models/unversioned_label_selector.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedLabelSelector(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, match_expressions=None, match_labels=None): + """ + UnversionedLabelSelector - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'match_expressions': 'list[UnversionedLabelSelectorRequirement]', + 'match_labels': 'dict(str, str)' + } + + self.attribute_map = { + 'match_expressions': 'matchExpressions', + 'match_labels': 'matchLabels' + } + + self._match_expressions = match_expressions + self._match_labels = match_labels + + + @property + def match_expressions(self): + """ + Gets the match_expressions of this UnversionedLabelSelector. + matchExpressions is a list of label selector requirements. The requirements are ANDed. + + :return: The match_expressions of this UnversionedLabelSelector. + :rtype: list[UnversionedLabelSelectorRequirement] + """ + return self._match_expressions + + @match_expressions.setter + def match_expressions(self, match_expressions): + """ + Sets the match_expressions of this UnversionedLabelSelector. + matchExpressions is a list of label selector requirements. The requirements are ANDed. + + :param match_expressions: The match_expressions of this UnversionedLabelSelector. + :type: list[UnversionedLabelSelectorRequirement] + """ + + self._match_expressions = match_expressions + + @property + def match_labels(self): + """ + Gets the match_labels of this UnversionedLabelSelector. + matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. + + :return: The match_labels of this UnversionedLabelSelector. + :rtype: dict(str, str) + """ + return self._match_labels + + @match_labels.setter + def match_labels(self, match_labels): + """ + Sets the match_labels of this UnversionedLabelSelector. + matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. + + :param match_labels: The match_labels of this UnversionedLabelSelector. + :type: dict(str, str) + """ + + self._match_labels = match_labels + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/unversioned_label_selector_requirement.py b/k8sclient/models/unversioned_label_selector_requirement.py new file mode 100644 index 000000000..249e2dfab --- /dev/null +++ b/k8sclient/models/unversioned_label_selector_requirement.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedLabelSelectorRequirement(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, key=None, operator=None, values=None): + """ + UnversionedLabelSelectorRequirement - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'key': 'str', + 'operator': 'str', + 'values': 'list[str]' + } + + self.attribute_map = { + 'key': 'key', + 'operator': 'operator', + 'values': 'values' + } + + self._key = key + self._operator = operator + self._values = values + + + @property + def key(self): + """ + Gets the key of this UnversionedLabelSelectorRequirement. + key is the label key that the selector applies to. + + :return: The key of this UnversionedLabelSelectorRequirement. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """ + Sets the key of this UnversionedLabelSelectorRequirement. + key is the label key that the selector applies to. + + :param key: The key of this UnversionedLabelSelectorRequirement. + :type: str + """ + if key is None: + raise ValueError("Invalid value for `key`, must not be `None`") + + self._key = key + + @property + def operator(self): + """ + Gets the operator of this UnversionedLabelSelectorRequirement. + operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist. + + :return: The operator of this UnversionedLabelSelectorRequirement. + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """ + Sets the operator of this UnversionedLabelSelectorRequirement. + operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist. + + :param operator: The operator of this UnversionedLabelSelectorRequirement. + :type: str + """ + if operator is None: + raise ValueError("Invalid value for `operator`, must not be `None`") + + self._operator = operator + + @property + def values(self): + """ + Gets the values of this UnversionedLabelSelectorRequirement. + values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + + :return: The values of this UnversionedLabelSelectorRequirement. + :rtype: list[str] + """ + return self._values + + @values.setter + def values(self, values): + """ + Sets the values of this UnversionedLabelSelectorRequirement. + values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + + :param values: The values of this UnversionedLabelSelectorRequirement. + :type: list[str] + """ + + self._values = values + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/unversioned_list_meta.py b/k8sclient/models/unversioned_list_meta.py new file mode 100644 index 000000000..aa6752dc4 --- /dev/null +++ b/k8sclient/models/unversioned_list_meta.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedListMeta(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, resource_version=None, self_link=None): + """ + UnversionedListMeta - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'resource_version': 'str', + 'self_link': 'str' + } + + self.attribute_map = { + 'resource_version': 'resourceVersion', + 'self_link': 'selfLink' + } + + self._resource_version = resource_version + self._self_link = self_link + + + @property + def resource_version(self): + """ + Gets the resource_version of this UnversionedListMeta. + String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency + + :return: The resource_version of this UnversionedListMeta. + :rtype: str + """ + return self._resource_version + + @resource_version.setter + def resource_version(self, resource_version): + """ + Sets the resource_version of this UnversionedListMeta. + String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency + + :param resource_version: The resource_version of this UnversionedListMeta. + :type: str + """ + + self._resource_version = resource_version + + @property + def self_link(self): + """ + Gets the self_link of this UnversionedListMeta. + SelfLink is a URL representing this object. Populated by the system. Read-only. + + :return: The self_link of this UnversionedListMeta. + :rtype: str + """ + return self._self_link + + @self_link.setter + def self_link(self, self_link): + """ + Sets the self_link of this UnversionedListMeta. + SelfLink is a URL representing this object. Populated by the system. Read-only. + + :param self_link: The self_link of this UnversionedListMeta. + :type: str + """ + + self._self_link = self_link + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/unversioned_server_address_by_client_cidr.py b/k8sclient/models/unversioned_server_address_by_client_cidr.py new file mode 100644 index 000000000..ed3130b21 --- /dev/null +++ b/k8sclient/models/unversioned_server_address_by_client_cidr.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedServerAddressByClientCIDR(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, client_cidr=None, server_address=None): + """ + UnversionedServerAddressByClientCIDR - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'client_cidr': 'str', + 'server_address': 'str' + } + + self.attribute_map = { + 'client_cidr': 'clientCIDR', + 'server_address': 'serverAddress' + } + + self._client_cidr = client_cidr + self._server_address = server_address + + + @property + def client_cidr(self): + """ + Gets the client_cidr of this UnversionedServerAddressByClientCIDR. + The CIDR with which clients can match their IP to figure out the server address that they should use. + + :return: The client_cidr of this UnversionedServerAddressByClientCIDR. + :rtype: str + """ + return self._client_cidr + + @client_cidr.setter + def client_cidr(self, client_cidr): + """ + Sets the client_cidr of this UnversionedServerAddressByClientCIDR. + The CIDR with which clients can match their IP to figure out the server address that they should use. + + :param client_cidr: The client_cidr of this UnversionedServerAddressByClientCIDR. + :type: str + """ + if client_cidr is None: + raise ValueError("Invalid value for `client_cidr`, must not be `None`") + + self._client_cidr = client_cidr + + @property + def server_address(self): + """ + Gets the server_address of this UnversionedServerAddressByClientCIDR. + Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. + + :return: The server_address of this UnversionedServerAddressByClientCIDR. + :rtype: str + """ + return self._server_address + + @server_address.setter + def server_address(self, server_address): + """ + Sets the server_address of this UnversionedServerAddressByClientCIDR. + Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. + + :param server_address: The server_address of this UnversionedServerAddressByClientCIDR. + :type: str + """ + if server_address is None: + raise ValueError("Invalid value for `server_address`, must not be `None`") + + self._server_address = server_address + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/unversioned_status.py b/k8sclient/models/unversioned_status.py new file mode 100644 index 000000000..d0eb15385 --- /dev/null +++ b/k8sclient/models/unversioned_status.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, code=None, details=None, message=None, metadata=None, reason=None, status=None): + """ + UnversionedStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'code': 'int', + 'details': 'UnversionedStatusDetails', + 'message': 'str', + 'metadata': 'UnversionedListMeta', + 'reason': 'str', + 'status': 'str' + } + + self.attribute_map = { + 'code': 'code', + 'details': 'details', + 'message': 'message', + 'metadata': 'metadata', + 'reason': 'reason', + 'status': 'status' + } + + self._code = code + self._details = details + self._message = message + self._metadata = metadata + self._reason = reason + self._status = status + + + @property + def code(self): + """ + Gets the code of this UnversionedStatus. + Suggested HTTP return code for this status, 0 if not set. + + :return: The code of this UnversionedStatus. + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this UnversionedStatus. + Suggested HTTP return code for this status, 0 if not set. + + :param code: The code of this UnversionedStatus. + :type: int + """ + + self._code = code + + @property + def details(self): + """ + Gets the details of this UnversionedStatus. + Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + + :return: The details of this UnversionedStatus. + :rtype: UnversionedStatusDetails + """ + return self._details + + @details.setter + def details(self, details): + """ + Sets the details of this UnversionedStatus. + Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + + :param details: The details of this UnversionedStatus. + :type: UnversionedStatusDetails + """ + + self._details = details + + @property + def message(self): + """ + Gets the message of this UnversionedStatus. + A human-readable description of the status of this operation. + + :return: The message of this UnversionedStatus. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this UnversionedStatus. + A human-readable description of the status of this operation. + + :param message: The message of this UnversionedStatus. + :type: str + """ + + self._message = message + + @property + def metadata(self): + """ + Gets the metadata of this UnversionedStatus. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this UnversionedStatus. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this UnversionedStatus. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this UnversionedStatus. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + @property + def reason(self): + """ + Gets the reason of this UnversionedStatus. + A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + + :return: The reason of this UnversionedStatus. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this UnversionedStatus. + A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + + :param reason: The reason of this UnversionedStatus. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this UnversionedStatus. + Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The status of this UnversionedStatus. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this UnversionedStatus. + Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param status: The status of this UnversionedStatus. + :type: str + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/unversioned_status_cause.py b/k8sclient/models/unversioned_status_cause.py new file mode 100644 index 000000000..40dc6c098 --- /dev/null +++ b/k8sclient/models/unversioned_status_cause.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedStatusCause(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, field=None, message=None, reason=None): + """ + UnversionedStatusCause - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'field': 'str', + 'message': 'str', + 'reason': 'str' + } + + self.attribute_map = { + 'field': 'field', + 'message': 'message', + 'reason': 'reason' + } + + self._field = field + self._message = message + self._reason = reason + + + @property + def field(self): + """ + Gets the field of this UnversionedStatusCause. + The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" + + :return: The field of this UnversionedStatusCause. + :rtype: str + """ + return self._field + + @field.setter + def field(self, field): + """ + Sets the field of this UnversionedStatusCause. + The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" + + :param field: The field of this UnversionedStatusCause. + :type: str + """ + + self._field = field + + @property + def message(self): + """ + Gets the message of this UnversionedStatusCause. + A human-readable description of the cause of the error. This field may be presented as-is to a reader. + + :return: The message of this UnversionedStatusCause. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this UnversionedStatusCause. + A human-readable description of the cause of the error. This field may be presented as-is to a reader. + + :param message: The message of this UnversionedStatusCause. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this UnversionedStatusCause. + A machine-readable description of the cause of the error. If this value is empty there is no information available. + + :return: The reason of this UnversionedStatusCause. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this UnversionedStatusCause. + A machine-readable description of the cause of the error. If this value is empty there is no information available. + + :param reason: The reason of this UnversionedStatusCause. + :type: str + """ + + self._reason = reason + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/unversioned_status_details.py b/k8sclient/models/unversioned_status_details.py new file mode 100644 index 000000000..f16a70756 --- /dev/null +++ b/k8sclient/models/unversioned_status_details.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedStatusDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, causes=None, group=None, kind=None, name=None, retry_after_seconds=None): + """ + UnversionedStatusDetails - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'causes': 'list[UnversionedStatusCause]', + 'group': 'str', + 'kind': 'str', + 'name': 'str', + 'retry_after_seconds': 'int' + } + + self.attribute_map = { + 'causes': 'causes', + 'group': 'group', + 'kind': 'kind', + 'name': 'name', + 'retry_after_seconds': 'retryAfterSeconds' + } + + self._causes = causes + self._group = group + self._kind = kind + self._name = name + self._retry_after_seconds = retry_after_seconds + + + @property + def causes(self): + """ + Gets the causes of this UnversionedStatusDetails. + The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. + + :return: The causes of this UnversionedStatusDetails. + :rtype: list[UnversionedStatusCause] + """ + return self._causes + + @causes.setter + def causes(self, causes): + """ + Sets the causes of this UnversionedStatusDetails. + The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. + + :param causes: The causes of this UnversionedStatusDetails. + :type: list[UnversionedStatusCause] + """ + + self._causes = causes + + @property + def group(self): + """ + Gets the group of this UnversionedStatusDetails. + The group attribute of the resource associated with the status StatusReason. + + :return: The group of this UnversionedStatusDetails. + :rtype: str + """ + return self._group + + @group.setter + def group(self, group): + """ + Sets the group of this UnversionedStatusDetails. + The group attribute of the resource associated with the status StatusReason. + + :param group: The group of this UnversionedStatusDetails. + :type: str + """ + + self._group = group + + @property + def kind(self): + """ + Gets the kind of this UnversionedStatusDetails. + The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this UnversionedStatusDetails. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this UnversionedStatusDetails. + The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this UnversionedStatusDetails. + :type: str + """ + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this UnversionedStatusDetails. + The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). + + :return: The name of this UnversionedStatusDetails. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this UnversionedStatusDetails. + The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). + + :param name: The name of this UnversionedStatusDetails. + :type: str + """ + + self._name = name + + @property + def retry_after_seconds(self): + """ + Gets the retry_after_seconds of this UnversionedStatusDetails. + If specified, the time in seconds before the operation should be retried. + + :return: The retry_after_seconds of this UnversionedStatusDetails. + :rtype: int + """ + return self._retry_after_seconds + + @retry_after_seconds.setter + def retry_after_seconds(self, retry_after_seconds): + """ + Sets the retry_after_seconds of this UnversionedStatusDetails. + If specified, the time in seconds before the operation should be retried. + + :param retry_after_seconds: The retry_after_seconds of this UnversionedStatusDetails. + :type: int + """ + + self._retry_after_seconds = retry_after_seconds + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/unversioned_time.py b/k8sclient/models/unversioned_time.py new file mode 100644 index 000000000..d2150546f --- /dev/null +++ b/k8sclient/models/unversioned_time.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedTime(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + UnversionedTime - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + + } + + self.attribute_map = { + + } + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_attached_volume.py b/k8sclient/models/v1_attached_volume.py new file mode 100644 index 000000000..deebea730 --- /dev/null +++ b/k8sclient/models/v1_attached_volume.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1AttachedVolume(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, device_path=None, name=None): + """ + V1AttachedVolume - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'device_path': 'str', + 'name': 'str' + } + + self.attribute_map = { + 'device_path': 'devicePath', + 'name': 'name' + } + + self._device_path = device_path + self._name = name + + + @property + def device_path(self): + """ + Gets the device_path of this V1AttachedVolume. + DevicePath represents the device path where the volume should be available + + :return: The device_path of this V1AttachedVolume. + :rtype: str + """ + return self._device_path + + @device_path.setter + def device_path(self, device_path): + """ + Sets the device_path of this V1AttachedVolume. + DevicePath represents the device path where the volume should be available + + :param device_path: The device_path of this V1AttachedVolume. + :type: str + """ + if device_path is None: + raise ValueError("Invalid value for `device_path`, must not be `None`") + + self._device_path = device_path + + @property + def name(self): + """ + Gets the name of this V1AttachedVolume. + Name of the attached volume + + :return: The name of this V1AttachedVolume. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1AttachedVolume. + Name of the attached volume + + :param name: The name of this V1AttachedVolume. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_binding.py b/k8sclient/models/v1_binding.py new file mode 100644 index 000000000..ae8d028db --- /dev/null +++ b/k8sclient/models/v1_binding.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1Binding(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, target=None): + """ + V1Binding - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'target': 'V1ObjectReference' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'target': 'target' + } + + self._metadata = metadata + self._target = target + + + @property + def metadata(self): + """ + Gets the metadata of this V1Binding. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1Binding. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Binding. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1Binding. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def target(self): + """ + Gets the target of this V1Binding. + The target object that you want to bind to the standard object. + + :return: The target of this V1Binding. + :rtype: V1ObjectReference + """ + return self._target + + @target.setter + def target(self, target): + """ + Sets the target of this V1Binding. + The target object that you want to bind to the standard object. + + :param target: The target of this V1Binding. + :type: V1ObjectReference + """ + if target is None: + raise ValueError("Invalid value for `target`, must not be `None`") + + self._target = target + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_capabilities.py b/k8sclient/models/v1_capabilities.py new file mode 100644 index 000000000..fa600c854 --- /dev/null +++ b/k8sclient/models/v1_capabilities.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1Capabilities(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, add=None, drop=None): + """ + V1Capabilities - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'add': 'list[str]', + 'drop': 'list[str]' + } + + self.attribute_map = { + 'add': 'add', + 'drop': 'drop' + } + + self._add = add + self._drop = drop + + + @property + def add(self): + """ + Gets the add of this V1Capabilities. + Added capabilities + + :return: The add of this V1Capabilities. + :rtype: list[str] + """ + return self._add + + @add.setter + def add(self, add): + """ + Sets the add of this V1Capabilities. + Added capabilities + + :param add: The add of this V1Capabilities. + :type: list[str] + """ + + self._add = add + + @property + def drop(self): + """ + Gets the drop of this V1Capabilities. + Removed capabilities + + :return: The drop of this V1Capabilities. + :rtype: list[str] + """ + return self._drop + + @drop.setter + def drop(self, drop): + """ + Sets the drop of this V1Capabilities. + Removed capabilities + + :param drop: The drop of this V1Capabilities. + :type: list[str] + """ + + self._drop = drop + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_component_condition.py b/k8sclient/models/v1_component_condition.py new file mode 100644 index 000000000..55995c0fc --- /dev/null +++ b/k8sclient/models/v1_component_condition.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ComponentCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, error=None, message=None, status=None, type=None): + """ + V1ComponentCondition - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'error': 'str', + 'message': 'str', + 'status': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'error': 'error', + 'message': 'message', + 'status': 'status', + 'type': 'type' + } + + self._error = error + self._message = message + self._status = status + self._type = type + + + @property + def error(self): + """ + Gets the error of this V1ComponentCondition. + Condition error code for a component. For example, a health check error code. + + :return: The error of this V1ComponentCondition. + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """ + Sets the error of this V1ComponentCondition. + Condition error code for a component. For example, a health check error code. + + :param error: The error of this V1ComponentCondition. + :type: str + """ + + self._error = error + + @property + def message(self): + """ + Gets the message of this V1ComponentCondition. + Message about the condition for a component. For example, information about a health check. + + :return: The message of this V1ComponentCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1ComponentCondition. + Message about the condition for a component. For example, information about a health check. + + :param message: The message of this V1ComponentCondition. + :type: str + """ + + self._message = message + + @property + def status(self): + """ + Gets the status of this V1ComponentCondition. + Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". + + :return: The status of this V1ComponentCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1ComponentCondition. + Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". + + :param status: The status of this V1ComponentCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1ComponentCondition. + Type of condition for a component. Valid value: \"Healthy\" + + :return: The type of this V1ComponentCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1ComponentCondition. + Type of condition for a component. Valid value: \"Healthy\" + + :param type: The type of this V1ComponentCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_component_status.py b/k8sclient/models/v1_component_status.py new file mode 100644 index 000000000..ae085ed74 --- /dev/null +++ b/k8sclient/models/v1_component_status.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ComponentStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, conditions=None, metadata=None): + """ + V1ComponentStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'conditions': 'list[V1ComponentCondition]', + 'metadata': 'V1ObjectMeta' + } + + self.attribute_map = { + 'conditions': 'conditions', + 'metadata': 'metadata' + } + + self._conditions = conditions + self._metadata = metadata + + + @property + def conditions(self): + """ + Gets the conditions of this V1ComponentStatus. + List of component conditions observed + + :return: The conditions of this V1ComponentStatus. + :rtype: list[V1ComponentCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1ComponentStatus. + List of component conditions observed + + :param conditions: The conditions of this V1ComponentStatus. + :type: list[V1ComponentCondition] + """ + + self._conditions = conditions + + @property + def metadata(self): + """ + Gets the metadata of this V1ComponentStatus. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1ComponentStatus. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ComponentStatus. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1ComponentStatus. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_component_status_list.py b/k8sclient/models/v1_component_status_list.py new file mode 100644 index 000000000..d1ce8b60f --- /dev/null +++ b/k8sclient/models/v1_component_status_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ComponentStatusList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1ComponentStatusList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1ComponentStatus]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1ComponentStatusList. + List of ComponentStatus objects. + + :return: The items of this V1ComponentStatusList. + :rtype: list[V1ComponentStatus] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ComponentStatusList. + List of ComponentStatus objects. + + :param items: The items of this V1ComponentStatusList. + :type: list[V1ComponentStatus] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1ComponentStatusList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this V1ComponentStatusList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ComponentStatusList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1ComponentStatusList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_config_map.py b/k8sclient/models/v1_config_map.py new file mode 100644 index 000000000..62888498a --- /dev/null +++ b/k8sclient/models/v1_config_map.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ConfigMap(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, data=None, metadata=None): + """ + V1ConfigMap - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'data': 'dict(str, str)', + 'metadata': 'V1ObjectMeta' + } + + self.attribute_map = { + 'data': 'data', + 'metadata': 'metadata' + } + + self._data = data + self._metadata = metadata + + + @property + def data(self): + """ + Gets the data of this V1ConfigMap. + Data contains the configuration data. Each key must be a valid DNS_SUBDOMAIN with an optional leading dot. + + :return: The data of this V1ConfigMap. + :rtype: dict(str, str) + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this V1ConfigMap. + Data contains the configuration data. Each key must be a valid DNS_SUBDOMAIN with an optional leading dot. + + :param data: The data of this V1ConfigMap. + :type: dict(str, str) + """ + + self._data = data + + @property + def metadata(self): + """ + Gets the metadata of this V1ConfigMap. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1ConfigMap. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ConfigMap. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1ConfigMap. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_config_map_key_selector.py b/k8sclient/models/v1_config_map_key_selector.py new file mode 100644 index 000000000..7f24fdaf1 --- /dev/null +++ b/k8sclient/models/v1_config_map_key_selector.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ConfigMapKeySelector(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, key=None): + """ + V1ConfigMapKeySelector - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'key': 'str' + } + + self.attribute_map = { + 'key': 'key' + } + + self._key = key + + + @property + def key(self): + """ + Gets the key of this V1ConfigMapKeySelector. + The key to select. + + :return: The key of this V1ConfigMapKeySelector. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """ + Sets the key of this V1ConfigMapKeySelector. + The key to select. + + :param key: The key of this V1ConfigMapKeySelector. + :type: str + """ + if key is None: + raise ValueError("Invalid value for `key`, must not be `None`") + + self._key = key + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_config_map_list.py b/k8sclient/models/v1_config_map_list.py new file mode 100644 index 000000000..a43e50d01 --- /dev/null +++ b/k8sclient/models/v1_config_map_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ConfigMapList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1ConfigMapList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1ConfigMap]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1ConfigMapList. + Items is the list of ConfigMaps. + + :return: The items of this V1ConfigMapList. + :rtype: list[V1ConfigMap] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ConfigMapList. + Items is the list of ConfigMaps. + + :param items: The items of this V1ConfigMapList. + :type: list[V1ConfigMap] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1ConfigMapList. + More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1ConfigMapList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ConfigMapList. + More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1ConfigMapList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_container.py b/k8sclient/models/v1_container.py new file mode 100644 index 000000000..5c064b623 --- /dev/null +++ b/k8sclient/models/v1_container.py @@ -0,0 +1,570 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1Container(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, args=None, command=None, env=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resources=None, security_context=None, stdin=None, stdin_once=None, termination_message_path=None, tty=None, volume_mounts=None, working_dir=None): + """ + V1Container - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'args': 'list[str]', + 'command': 'list[str]', + 'env': 'list[V1EnvVar]', + 'image': 'str', + 'image_pull_policy': 'str', + 'lifecycle': 'V1Lifecycle', + 'liveness_probe': 'V1Probe', + 'name': 'str', + 'ports': 'list[V1ContainerPort]', + 'readiness_probe': 'V1Probe', + 'resources': 'V1ResourceRequirements', + 'security_context': 'V1SecurityContext', + 'stdin': 'bool', + 'stdin_once': 'bool', + 'termination_message_path': 'str', + 'tty': 'bool', + 'volume_mounts': 'list[V1VolumeMount]', + 'working_dir': 'str' + } + + self.attribute_map = { + 'args': 'args', + 'command': 'command', + 'env': 'env', + 'image': 'image', + 'image_pull_policy': 'imagePullPolicy', + 'lifecycle': 'lifecycle', + 'liveness_probe': 'livenessProbe', + 'name': 'name', + 'ports': 'ports', + 'readiness_probe': 'readinessProbe', + 'resources': 'resources', + 'security_context': 'securityContext', + 'stdin': 'stdin', + 'stdin_once': 'stdinOnce', + 'termination_message_path': 'terminationMessagePath', + 'tty': 'tty', + 'volume_mounts': 'volumeMounts', + 'working_dir': 'workingDir' + } + + self._args = args + self._command = command + self._env = env + self._image = image + self._image_pull_policy = image_pull_policy + self._lifecycle = lifecycle + self._liveness_probe = liveness_probe + self._name = name + self._ports = ports + self._readiness_probe = readiness_probe + self._resources = resources + self._security_context = security_context + self._stdin = stdin + self._stdin_once = stdin_once + self._termination_message_path = termination_message_path + self._tty = tty + self._volume_mounts = volume_mounts + self._working_dir = working_dir + + + @property + def args(self): + """ + Gets the args of this V1Container. + Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands + + :return: The args of this V1Container. + :rtype: list[str] + """ + return self._args + + @args.setter + def args(self, args): + """ + Sets the args of this V1Container. + Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands + + :param args: The args of this V1Container. + :type: list[str] + """ + + self._args = args + + @property + def command(self): + """ + Gets the command of this V1Container. + Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands + + :return: The command of this V1Container. + :rtype: list[str] + """ + return self._command + + @command.setter + def command(self, command): + """ + Sets the command of this V1Container. + Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands + + :param command: The command of this V1Container. + :type: list[str] + """ + + self._command = command + + @property + def env(self): + """ + Gets the env of this V1Container. + List of environment variables to set in the container. Cannot be updated. + + :return: The env of this V1Container. + :rtype: list[V1EnvVar] + """ + return self._env + + @env.setter + def env(self, env): + """ + Sets the env of this V1Container. + List of environment variables to set in the container. Cannot be updated. + + :param env: The env of this V1Container. + :type: list[V1EnvVar] + """ + + self._env = env + + @property + def image(self): + """ + Gets the image of this V1Container. + Docker image name. More info: http://kubernetes.io/docs/user-guide/images + + :return: The image of this V1Container. + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """ + Sets the image of this V1Container. + Docker image name. More info: http://kubernetes.io/docs/user-guide/images + + :param image: The image of this V1Container. + :type: str + """ + + self._image = image + + @property + def image_pull_policy(self): + """ + Gets the image_pull_policy of this V1Container. + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images + + :return: The image_pull_policy of this V1Container. + :rtype: str + """ + return self._image_pull_policy + + @image_pull_policy.setter + def image_pull_policy(self, image_pull_policy): + """ + Sets the image_pull_policy of this V1Container. + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images + + :param image_pull_policy: The image_pull_policy of this V1Container. + :type: str + """ + + self._image_pull_policy = image_pull_policy + + @property + def lifecycle(self): + """ + Gets the lifecycle of this V1Container. + Actions that the management system should take in response to container lifecycle events. Cannot be updated. + + :return: The lifecycle of this V1Container. + :rtype: V1Lifecycle + """ + return self._lifecycle + + @lifecycle.setter + def lifecycle(self, lifecycle): + """ + Sets the lifecycle of this V1Container. + Actions that the management system should take in response to container lifecycle events. Cannot be updated. + + :param lifecycle: The lifecycle of this V1Container. + :type: V1Lifecycle + """ + + self._lifecycle = lifecycle + + @property + def liveness_probe(self): + """ + Gets the liveness_probe of this V1Container. + Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes + + :return: The liveness_probe of this V1Container. + :rtype: V1Probe + """ + return self._liveness_probe + + @liveness_probe.setter + def liveness_probe(self, liveness_probe): + """ + Sets the liveness_probe of this V1Container. + Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes + + :param liveness_probe: The liveness_probe of this V1Container. + :type: V1Probe + """ + + self._liveness_probe = liveness_probe + + @property + def name(self): + """ + Gets the name of this V1Container. + Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + + :return: The name of this V1Container. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1Container. + Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + + :param name: The name of this V1Container. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def ports(self): + """ + Gets the ports of this V1Container. + List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. + + :return: The ports of this V1Container. + :rtype: list[V1ContainerPort] + """ + return self._ports + + @ports.setter + def ports(self, ports): + """ + Sets the ports of this V1Container. + List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. + + :param ports: The ports of this V1Container. + :type: list[V1ContainerPort] + """ + + self._ports = ports + + @property + def readiness_probe(self): + """ + Gets the readiness_probe of this V1Container. + Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes + + :return: The readiness_probe of this V1Container. + :rtype: V1Probe + """ + return self._readiness_probe + + @readiness_probe.setter + def readiness_probe(self, readiness_probe): + """ + Sets the readiness_probe of this V1Container. + Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes + + :param readiness_probe: The readiness_probe of this V1Container. + :type: V1Probe + """ + + self._readiness_probe = readiness_probe + + @property + def resources(self): + """ + Gets the resources of this V1Container. + Compute Resources required by this container. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources + + :return: The resources of this V1Container. + :rtype: V1ResourceRequirements + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this V1Container. + Compute Resources required by this container. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources + + :param resources: The resources of this V1Container. + :type: V1ResourceRequirements + """ + + self._resources = resources + + @property + def security_context(self): + """ + Gets the security_context of this V1Container. + Security options the pod should run with. More info: http://releases.k8s.io/HEAD/docs/design/security_context.md + + :return: The security_context of this V1Container. + :rtype: V1SecurityContext + """ + return self._security_context + + @security_context.setter + def security_context(self, security_context): + """ + Sets the security_context of this V1Container. + Security options the pod should run with. More info: http://releases.k8s.io/HEAD/docs/design/security_context.md + + :param security_context: The security_context of this V1Container. + :type: V1SecurityContext + """ + + self._security_context = security_context + + @property + def stdin(self): + """ + Gets the stdin of this V1Container. + Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + + :return: The stdin of this V1Container. + :rtype: bool + """ + return self._stdin + + @stdin.setter + def stdin(self, stdin): + """ + Sets the stdin of this V1Container. + Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + + :param stdin: The stdin of this V1Container. + :type: bool + """ + + self._stdin = stdin + + @property + def stdin_once(self): + """ + Gets the stdin_once of this V1Container. + Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + + :return: The stdin_once of this V1Container. + :rtype: bool + """ + return self._stdin_once + + @stdin_once.setter + def stdin_once(self, stdin_once): + """ + Sets the stdin_once of this V1Container. + Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + + :param stdin_once: The stdin_once of this V1Container. + :type: bool + """ + + self._stdin_once = stdin_once + + @property + def termination_message_path(self): + """ + Gets the termination_message_path of this V1Container. + Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Defaults to /dev/termination-log. Cannot be updated. + + :return: The termination_message_path of this V1Container. + :rtype: str + """ + return self._termination_message_path + + @termination_message_path.setter + def termination_message_path(self, termination_message_path): + """ + Sets the termination_message_path of this V1Container. + Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Defaults to /dev/termination-log. Cannot be updated. + + :param termination_message_path: The termination_message_path of this V1Container. + :type: str + """ + + self._termination_message_path = termination_message_path + + @property + def tty(self): + """ + Gets the tty of this V1Container. + Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + + :return: The tty of this V1Container. + :rtype: bool + """ + return self._tty + + @tty.setter + def tty(self, tty): + """ + Sets the tty of this V1Container. + Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + + :param tty: The tty of this V1Container. + :type: bool + """ + + self._tty = tty + + @property + def volume_mounts(self): + """ + Gets the volume_mounts of this V1Container. + Pod volumes to mount into the container's filesystem. Cannot be updated. + + :return: The volume_mounts of this V1Container. + :rtype: list[V1VolumeMount] + """ + return self._volume_mounts + + @volume_mounts.setter + def volume_mounts(self, volume_mounts): + """ + Sets the volume_mounts of this V1Container. + Pod volumes to mount into the container's filesystem. Cannot be updated. + + :param volume_mounts: The volume_mounts of this V1Container. + :type: list[V1VolumeMount] + """ + + self._volume_mounts = volume_mounts + + @property + def working_dir(self): + """ + Gets the working_dir of this V1Container. + Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + :return: The working_dir of this V1Container. + :rtype: str + """ + return self._working_dir + + @working_dir.setter + def working_dir(self, working_dir): + """ + Sets the working_dir of this V1Container. + Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + :param working_dir: The working_dir of this V1Container. + :type: str + """ + + self._working_dir = working_dir + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_container_image.py b/k8sclient/models/v1_container_image.py new file mode 100644 index 000000000..33c2ef855 --- /dev/null +++ b/k8sclient/models/v1_container_image.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ContainerImage(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, names=None, size_bytes=None): + """ + V1ContainerImage - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'names': 'list[str]', + 'size_bytes': 'int' + } + + self.attribute_map = { + 'names': 'names', + 'size_bytes': 'sizeBytes' + } + + self._names = names + self._size_bytes = size_bytes + + + @property + def names(self): + """ + Gets the names of this V1ContainerImage. + Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] + + :return: The names of this V1ContainerImage. + :rtype: list[str] + """ + return self._names + + @names.setter + def names(self, names): + """ + Sets the names of this V1ContainerImage. + Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] + + :param names: The names of this V1ContainerImage. + :type: list[str] + """ + if names is None: + raise ValueError("Invalid value for `names`, must not be `None`") + + self._names = names + + @property + def size_bytes(self): + """ + Gets the size_bytes of this V1ContainerImage. + The size of the image in bytes. + + :return: The size_bytes of this V1ContainerImage. + :rtype: int + """ + return self._size_bytes + + @size_bytes.setter + def size_bytes(self, size_bytes): + """ + Sets the size_bytes of this V1ContainerImage. + The size of the image in bytes. + + :param size_bytes: The size_bytes of this V1ContainerImage. + :type: int + """ + + self._size_bytes = size_bytes + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_container_port.py b/k8sclient/models/v1_container_port.py new file mode 100644 index 000000000..20ab425fb --- /dev/null +++ b/k8sclient/models/v1_container_port.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ContainerPort(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, container_port=None, host_ip=None, host_port=None, name=None, protocol=None): + """ + V1ContainerPort - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'container_port': 'int', + 'host_ip': 'str', + 'host_port': 'int', + 'name': 'str', + 'protocol': 'str' + } + + self.attribute_map = { + 'container_port': 'containerPort', + 'host_ip': 'hostIP', + 'host_port': 'hostPort', + 'name': 'name', + 'protocol': 'protocol' + } + + self._container_port = container_port + self._host_ip = host_ip + self._host_port = host_port + self._name = name + self._protocol = protocol + + + @property + def container_port(self): + """ + Gets the container_port of this V1ContainerPort. + Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + + :return: The container_port of this V1ContainerPort. + :rtype: int + """ + return self._container_port + + @container_port.setter + def container_port(self, container_port): + """ + Sets the container_port of this V1ContainerPort. + Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + + :param container_port: The container_port of this V1ContainerPort. + :type: int + """ + if container_port is None: + raise ValueError("Invalid value for `container_port`, must not be `None`") + + self._container_port = container_port + + @property + def host_ip(self): + """ + Gets the host_ip of this V1ContainerPort. + What host IP to bind the external port to. + + :return: The host_ip of this V1ContainerPort. + :rtype: str + """ + return self._host_ip + + @host_ip.setter + def host_ip(self, host_ip): + """ + Sets the host_ip of this V1ContainerPort. + What host IP to bind the external port to. + + :param host_ip: The host_ip of this V1ContainerPort. + :type: str + """ + + self._host_ip = host_ip + + @property + def host_port(self): + """ + Gets the host_port of this V1ContainerPort. + Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + + :return: The host_port of this V1ContainerPort. + :rtype: int + """ + return self._host_port + + @host_port.setter + def host_port(self, host_port): + """ + Sets the host_port of this V1ContainerPort. + Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + + :param host_port: The host_port of this V1ContainerPort. + :type: int + """ + + self._host_port = host_port + + @property + def name(self): + """ + Gets the name of this V1ContainerPort. + If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + + :return: The name of this V1ContainerPort. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ContainerPort. + If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + + :param name: The name of this V1ContainerPort. + :type: str + """ + + self._name = name + + @property + def protocol(self): + """ + Gets the protocol of this V1ContainerPort. + Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". + + :return: The protocol of this V1ContainerPort. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """ + Sets the protocol of this V1ContainerPort. + Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". + + :param protocol: The protocol of this V1ContainerPort. + :type: str + """ + + self._protocol = protocol + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_container_state.py b/k8sclient/models/v1_container_state.py new file mode 100644 index 000000000..75b3ff641 --- /dev/null +++ b/k8sclient/models/v1_container_state.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ContainerState(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, running=None, terminated=None, waiting=None): + """ + V1ContainerState - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'running': 'V1ContainerStateRunning', + 'terminated': 'V1ContainerStateTerminated', + 'waiting': 'V1ContainerStateWaiting' + } + + self.attribute_map = { + 'running': 'running', + 'terminated': 'terminated', + 'waiting': 'waiting' + } + + self._running = running + self._terminated = terminated + self._waiting = waiting + + + @property + def running(self): + """ + Gets the running of this V1ContainerState. + Details about a running container + + :return: The running of this V1ContainerState. + :rtype: V1ContainerStateRunning + """ + return self._running + + @running.setter + def running(self, running): + """ + Sets the running of this V1ContainerState. + Details about a running container + + :param running: The running of this V1ContainerState. + :type: V1ContainerStateRunning + """ + + self._running = running + + @property + def terminated(self): + """ + Gets the terminated of this V1ContainerState. + Details about a terminated container + + :return: The terminated of this V1ContainerState. + :rtype: V1ContainerStateTerminated + """ + return self._terminated + + @terminated.setter + def terminated(self, terminated): + """ + Sets the terminated of this V1ContainerState. + Details about a terminated container + + :param terminated: The terminated of this V1ContainerState. + :type: V1ContainerStateTerminated + """ + + self._terminated = terminated + + @property + def waiting(self): + """ + Gets the waiting of this V1ContainerState. + Details about a waiting container + + :return: The waiting of this V1ContainerState. + :rtype: V1ContainerStateWaiting + """ + return self._waiting + + @waiting.setter + def waiting(self, waiting): + """ + Sets the waiting of this V1ContainerState. + Details about a waiting container + + :param waiting: The waiting of this V1ContainerState. + :type: V1ContainerStateWaiting + """ + + self._waiting = waiting + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_container_state_running.py b/k8sclient/models/v1_container_state_running.py new file mode 100644 index 000000000..b89807179 --- /dev/null +++ b/k8sclient/models/v1_container_state_running.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ContainerStateRunning(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, started_at=None): + """ + V1ContainerStateRunning - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'started_at': 'UnversionedTime' + } + + self.attribute_map = { + 'started_at': 'startedAt' + } + + self._started_at = started_at + + + @property + def started_at(self): + """ + Gets the started_at of this V1ContainerStateRunning. + Time at which the container was last (re-)started + + :return: The started_at of this V1ContainerStateRunning. + :rtype: UnversionedTime + """ + return self._started_at + + @started_at.setter + def started_at(self, started_at): + """ + Sets the started_at of this V1ContainerStateRunning. + Time at which the container was last (re-)started + + :param started_at: The started_at of this V1ContainerStateRunning. + :type: UnversionedTime + """ + + self._started_at = started_at + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_container_state_terminated.py b/k8sclient/models/v1_container_state_terminated.py new file mode 100644 index 000000000..aa6cf8cd9 --- /dev/null +++ b/k8sclient/models/v1_container_state_terminated.py @@ -0,0 +1,284 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ContainerStateTerminated(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, container_id=None, exit_code=None, finished_at=None, message=None, reason=None, signal=None, started_at=None): + """ + V1ContainerStateTerminated - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'container_id': 'str', + 'exit_code': 'int', + 'finished_at': 'UnversionedTime', + 'message': 'str', + 'reason': 'str', + 'signal': 'int', + 'started_at': 'UnversionedTime' + } + + self.attribute_map = { + 'container_id': 'containerID', + 'exit_code': 'exitCode', + 'finished_at': 'finishedAt', + 'message': 'message', + 'reason': 'reason', + 'signal': 'signal', + 'started_at': 'startedAt' + } + + self._container_id = container_id + self._exit_code = exit_code + self._finished_at = finished_at + self._message = message + self._reason = reason + self._signal = signal + self._started_at = started_at + + + @property + def container_id(self): + """ + Gets the container_id of this V1ContainerStateTerminated. + Container's ID in the format 'docker://' + + :return: The container_id of this V1ContainerStateTerminated. + :rtype: str + """ + return self._container_id + + @container_id.setter + def container_id(self, container_id): + """ + Sets the container_id of this V1ContainerStateTerminated. + Container's ID in the format 'docker://' + + :param container_id: The container_id of this V1ContainerStateTerminated. + :type: str + """ + + self._container_id = container_id + + @property + def exit_code(self): + """ + Gets the exit_code of this V1ContainerStateTerminated. + Exit status from the last termination of the container + + :return: The exit_code of this V1ContainerStateTerminated. + :rtype: int + """ + return self._exit_code + + @exit_code.setter + def exit_code(self, exit_code): + """ + Sets the exit_code of this V1ContainerStateTerminated. + Exit status from the last termination of the container + + :param exit_code: The exit_code of this V1ContainerStateTerminated. + :type: int + """ + if exit_code is None: + raise ValueError("Invalid value for `exit_code`, must not be `None`") + + self._exit_code = exit_code + + @property + def finished_at(self): + """ + Gets the finished_at of this V1ContainerStateTerminated. + Time at which the container last terminated + + :return: The finished_at of this V1ContainerStateTerminated. + :rtype: UnversionedTime + """ + return self._finished_at + + @finished_at.setter + def finished_at(self, finished_at): + """ + Sets the finished_at of this V1ContainerStateTerminated. + Time at which the container last terminated + + :param finished_at: The finished_at of this V1ContainerStateTerminated. + :type: UnversionedTime + """ + + self._finished_at = finished_at + + @property + def message(self): + """ + Gets the message of this V1ContainerStateTerminated. + Message regarding the last termination of the container + + :return: The message of this V1ContainerStateTerminated. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1ContainerStateTerminated. + Message regarding the last termination of the container + + :param message: The message of this V1ContainerStateTerminated. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1ContainerStateTerminated. + (brief) reason from the last termination of the container + + :return: The reason of this V1ContainerStateTerminated. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1ContainerStateTerminated. + (brief) reason from the last termination of the container + + :param reason: The reason of this V1ContainerStateTerminated. + :type: str + """ + + self._reason = reason + + @property + def signal(self): + """ + Gets the signal of this V1ContainerStateTerminated. + Signal from the last termination of the container + + :return: The signal of this V1ContainerStateTerminated. + :rtype: int + """ + return self._signal + + @signal.setter + def signal(self, signal): + """ + Sets the signal of this V1ContainerStateTerminated. + Signal from the last termination of the container + + :param signal: The signal of this V1ContainerStateTerminated. + :type: int + """ + + self._signal = signal + + @property + def started_at(self): + """ + Gets the started_at of this V1ContainerStateTerminated. + Time at which previous execution of the container started + + :return: The started_at of this V1ContainerStateTerminated. + :rtype: UnversionedTime + """ + return self._started_at + + @started_at.setter + def started_at(self, started_at): + """ + Sets the started_at of this V1ContainerStateTerminated. + Time at which previous execution of the container started + + :param started_at: The started_at of this V1ContainerStateTerminated. + :type: UnversionedTime + """ + + self._started_at = started_at + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_container_state_waiting.py b/k8sclient/models/v1_container_state_waiting.py new file mode 100644 index 000000000..cc2d7743c --- /dev/null +++ b/k8sclient/models/v1_container_state_waiting.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ContainerStateWaiting(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, message=None, reason=None): + """ + V1ContainerStateWaiting - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'message': 'str', + 'reason': 'str' + } + + self.attribute_map = { + 'message': 'message', + 'reason': 'reason' + } + + self._message = message + self._reason = reason + + + @property + def message(self): + """ + Gets the message of this V1ContainerStateWaiting. + Message regarding why the container is not yet running. + + :return: The message of this V1ContainerStateWaiting. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1ContainerStateWaiting. + Message regarding why the container is not yet running. + + :param message: The message of this V1ContainerStateWaiting. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1ContainerStateWaiting. + (brief) reason the container is not yet running. + + :return: The reason of this V1ContainerStateWaiting. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1ContainerStateWaiting. + (brief) reason the container is not yet running. + + :param reason: The reason of this V1ContainerStateWaiting. + :type: str + """ + + self._reason = reason + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_container_status.py b/k8sclient/models/v1_container_status.py new file mode 100644 index 000000000..8030e3522 --- /dev/null +++ b/k8sclient/models/v1_container_status.py @@ -0,0 +1,318 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ContainerStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, container_id=None, image=None, image_id=None, last_state=None, name=None, ready=None, restart_count=None, state=None): + """ + V1ContainerStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'container_id': 'str', + 'image': 'str', + 'image_id': 'str', + 'last_state': 'V1ContainerState', + 'name': 'str', + 'ready': 'bool', + 'restart_count': 'int', + 'state': 'V1ContainerState' + } + + self.attribute_map = { + 'container_id': 'containerID', + 'image': 'image', + 'image_id': 'imageID', + 'last_state': 'lastState', + 'name': 'name', + 'ready': 'ready', + 'restart_count': 'restartCount', + 'state': 'state' + } + + self._container_id = container_id + self._image = image + self._image_id = image_id + self._last_state = last_state + self._name = name + self._ready = ready + self._restart_count = restart_count + self._state = state + + + @property + def container_id(self): + """ + Gets the container_id of this V1ContainerStatus. + Container's ID in the format 'docker://'. More info: http://kubernetes.io/docs/user-guide/container-environment#container-information + + :return: The container_id of this V1ContainerStatus. + :rtype: str + """ + return self._container_id + + @container_id.setter + def container_id(self, container_id): + """ + Sets the container_id of this V1ContainerStatus. + Container's ID in the format 'docker://'. More info: http://kubernetes.io/docs/user-guide/container-environment#container-information + + :param container_id: The container_id of this V1ContainerStatus. + :type: str + """ + + self._container_id = container_id + + @property + def image(self): + """ + Gets the image of this V1ContainerStatus. + The image the container is running. More info: http://kubernetes.io/docs/user-guide/images + + :return: The image of this V1ContainerStatus. + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """ + Sets the image of this V1ContainerStatus. + The image the container is running. More info: http://kubernetes.io/docs/user-guide/images + + :param image: The image of this V1ContainerStatus. + :type: str + """ + if image is None: + raise ValueError("Invalid value for `image`, must not be `None`") + + self._image = image + + @property + def image_id(self): + """ + Gets the image_id of this V1ContainerStatus. + ImageID of the container's image. + + :return: The image_id of this V1ContainerStatus. + :rtype: str + """ + return self._image_id + + @image_id.setter + def image_id(self, image_id): + """ + Sets the image_id of this V1ContainerStatus. + ImageID of the container's image. + + :param image_id: The image_id of this V1ContainerStatus. + :type: str + """ + if image_id is None: + raise ValueError("Invalid value for `image_id`, must not be `None`") + + self._image_id = image_id + + @property + def last_state(self): + """ + Gets the last_state of this V1ContainerStatus. + Details about the container's last termination condition. + + :return: The last_state of this V1ContainerStatus. + :rtype: V1ContainerState + """ + return self._last_state + + @last_state.setter + def last_state(self, last_state): + """ + Sets the last_state of this V1ContainerStatus. + Details about the container's last termination condition. + + :param last_state: The last_state of this V1ContainerStatus. + :type: V1ContainerState + """ + + self._last_state = last_state + + @property + def name(self): + """ + Gets the name of this V1ContainerStatus. + This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. + + :return: The name of this V1ContainerStatus. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ContainerStatus. + This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. + + :param name: The name of this V1ContainerStatus. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def ready(self): + """ + Gets the ready of this V1ContainerStatus. + Specifies whether the container has passed its readiness probe. + + :return: The ready of this V1ContainerStatus. + :rtype: bool + """ + return self._ready + + @ready.setter + def ready(self, ready): + """ + Sets the ready of this V1ContainerStatus. + Specifies whether the container has passed its readiness probe. + + :param ready: The ready of this V1ContainerStatus. + :type: bool + """ + if ready is None: + raise ValueError("Invalid value for `ready`, must not be `None`") + + self._ready = ready + + @property + def restart_count(self): + """ + Gets the restart_count of this V1ContainerStatus. + The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. + + :return: The restart_count of this V1ContainerStatus. + :rtype: int + """ + return self._restart_count + + @restart_count.setter + def restart_count(self, restart_count): + """ + Sets the restart_count of this V1ContainerStatus. + The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. + + :param restart_count: The restart_count of this V1ContainerStatus. + :type: int + """ + if restart_count is None: + raise ValueError("Invalid value for `restart_count`, must not be `None`") + + self._restart_count = restart_count + + @property + def state(self): + """ + Gets the state of this V1ContainerStatus. + Details about the container's current condition. + + :return: The state of this V1ContainerStatus. + :rtype: V1ContainerState + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this V1ContainerStatus. + Details about the container's current condition. + + :param state: The state of this V1ContainerStatus. + :type: V1ContainerState + """ + + self._state = state + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_cross_version_object_reference.py b/k8sclient/models/v1_cross_version_object_reference.py new file mode 100644 index 000000000..9a859cac3 --- /dev/null +++ b/k8sclient/models/v1_cross_version_object_reference.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1CrossVersionObjectReference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, name=None): + """ + V1CrossVersionObjectReference - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'name': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'name': 'name' + } + + self._api_version = api_version + self._kind = kind + self._name = name + + + @property + def api_version(self): + """ + Gets the api_version of this V1CrossVersionObjectReference. + API version of the referent + + :return: The api_version of this V1CrossVersionObjectReference. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1CrossVersionObjectReference. + API version of the referent + + :param api_version: The api_version of this V1CrossVersionObjectReference. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1CrossVersionObjectReference. + Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\" + + :return: The kind of this V1CrossVersionObjectReference. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1CrossVersionObjectReference. + Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\" + + :param kind: The kind of this V1CrossVersionObjectReference. + :type: str + """ + if kind is None: + raise ValueError("Invalid value for `kind`, must not be `None`") + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this V1CrossVersionObjectReference. + Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :return: The name of this V1CrossVersionObjectReference. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1CrossVersionObjectReference. + Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :param name: The name of this V1CrossVersionObjectReference. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_daemon_endpoint.py b/k8sclient/models/v1_daemon_endpoint.py new file mode 100644 index 000000000..375ddd2be --- /dev/null +++ b/k8sclient/models/v1_daemon_endpoint.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1DaemonEndpoint(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, port=None): + """ + V1DaemonEndpoint - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'port': 'int' + } + + self.attribute_map = { + 'port': 'Port' + } + + self._port = port + + + @property + def port(self): + """ + Gets the port of this V1DaemonEndpoint. + Port number of the given endpoint. + + :return: The port of this V1DaemonEndpoint. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """ + Sets the port of this V1DaemonEndpoint. + Port number of the given endpoint. + + :param port: The port of this V1DaemonEndpoint. + :type: int + """ + if port is None: + raise ValueError("Invalid value for `port`, must not be `None`") + + self._port = port + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_delete_options.py b/k8sclient/models/v1_delete_options.py new file mode 100644 index 000000000..ae8e0339d --- /dev/null +++ b/k8sclient/models/v1_delete_options.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1DeleteOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, grace_period_seconds=None, orphan_dependents=None, preconditions=None): + """ + V1DeleteOptions - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'grace_period_seconds': 'int', + 'orphan_dependents': 'bool', + 'preconditions': 'V1Preconditions' + } + + self.attribute_map = { + 'grace_period_seconds': 'gracePeriodSeconds', + 'orphan_dependents': 'orphanDependents', + 'preconditions': 'preconditions' + } + + self._grace_period_seconds = grace_period_seconds + self._orphan_dependents = orphan_dependents + self._preconditions = preconditions + + + @property + def grace_period_seconds(self): + """ + Gets the grace_period_seconds of this V1DeleteOptions. + The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + + :return: The grace_period_seconds of this V1DeleteOptions. + :rtype: int + """ + return self._grace_period_seconds + + @grace_period_seconds.setter + def grace_period_seconds(self, grace_period_seconds): + """ + Sets the grace_period_seconds of this V1DeleteOptions. + The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + + :param grace_period_seconds: The grace_period_seconds of this V1DeleteOptions. + :type: int + """ + + self._grace_period_seconds = grace_period_seconds + + @property + def orphan_dependents(self): + """ + Gets the orphan_dependents of this V1DeleteOptions. + Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + + :return: The orphan_dependents of this V1DeleteOptions. + :rtype: bool + """ + return self._orphan_dependents + + @orphan_dependents.setter + def orphan_dependents(self, orphan_dependents): + """ + Sets the orphan_dependents of this V1DeleteOptions. + Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + + :param orphan_dependents: The orphan_dependents of this V1DeleteOptions. + :type: bool + """ + + self._orphan_dependents = orphan_dependents + + @property + def preconditions(self): + """ + Gets the preconditions of this V1DeleteOptions. + Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. + + :return: The preconditions of this V1DeleteOptions. + :rtype: V1Preconditions + """ + return self._preconditions + + @preconditions.setter + def preconditions(self, preconditions): + """ + Sets the preconditions of this V1DeleteOptions. + Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. + + :param preconditions: The preconditions of this V1DeleteOptions. + :type: V1Preconditions + """ + + self._preconditions = preconditions + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_endpoint_address.py b/k8sclient/models/v1_endpoint_address.py new file mode 100644 index 000000000..936e0416c --- /dev/null +++ b/k8sclient/models/v1_endpoint_address.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1EndpointAddress(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, hostname=None, ip=None, node_name=None, target_ref=None): + """ + V1EndpointAddress - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'hostname': 'str', + 'ip': 'str', + 'node_name': 'str', + 'target_ref': 'V1ObjectReference' + } + + self.attribute_map = { + 'hostname': 'hostname', + 'ip': 'ip', + 'node_name': 'nodeName', + 'target_ref': 'targetRef' + } + + self._hostname = hostname + self._ip = ip + self._node_name = node_name + self._target_ref = target_ref + + + @property + def hostname(self): + """ + Gets the hostname of this V1EndpointAddress. + The Hostname of this endpoint + + :return: The hostname of this V1EndpointAddress. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """ + Sets the hostname of this V1EndpointAddress. + The Hostname of this endpoint + + :param hostname: The hostname of this V1EndpointAddress. + :type: str + """ + + self._hostname = hostname + + @property + def ip(self): + """ + Gets the ip of this V1EndpointAddress. + The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. + + :return: The ip of this V1EndpointAddress. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """ + Sets the ip of this V1EndpointAddress. + The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. + + :param ip: The ip of this V1EndpointAddress. + :type: str + """ + if ip is None: + raise ValueError("Invalid value for `ip`, must not be `None`") + + self._ip = ip + + @property + def node_name(self): + """ + Gets the node_name of this V1EndpointAddress. + Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. + + :return: The node_name of this V1EndpointAddress. + :rtype: str + """ + return self._node_name + + @node_name.setter + def node_name(self, node_name): + """ + Sets the node_name of this V1EndpointAddress. + Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. + + :param node_name: The node_name of this V1EndpointAddress. + :type: str + """ + + self._node_name = node_name + + @property + def target_ref(self): + """ + Gets the target_ref of this V1EndpointAddress. + Reference to object providing the endpoint. + + :return: The target_ref of this V1EndpointAddress. + :rtype: V1ObjectReference + """ + return self._target_ref + + @target_ref.setter + def target_ref(self, target_ref): + """ + Sets the target_ref of this V1EndpointAddress. + Reference to object providing the endpoint. + + :param target_ref: The target_ref of this V1EndpointAddress. + :type: V1ObjectReference + """ + + self._target_ref = target_ref + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_endpoint_port.py b/k8sclient/models/v1_endpoint_port.py new file mode 100644 index 000000000..ac0edcff4 --- /dev/null +++ b/k8sclient/models/v1_endpoint_port.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1EndpointPort(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, name=None, port=None, protocol=None): + """ + V1EndpointPort - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'port': 'int', + 'protocol': 'str' + } + + self.attribute_map = { + 'name': 'name', + 'port': 'port', + 'protocol': 'protocol' + } + + self._name = name + self._port = port + self._protocol = protocol + + + @property + def name(self): + """ + Gets the name of this V1EndpointPort. + The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined. + + :return: The name of this V1EndpointPort. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1EndpointPort. + The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined. + + :param name: The name of this V1EndpointPort. + :type: str + """ + + self._name = name + + @property + def port(self): + """ + Gets the port of this V1EndpointPort. + The port number of the endpoint. + + :return: The port of this V1EndpointPort. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """ + Sets the port of this V1EndpointPort. + The port number of the endpoint. + + :param port: The port of this V1EndpointPort. + :type: int + """ + if port is None: + raise ValueError("Invalid value for `port`, must not be `None`") + + self._port = port + + @property + def protocol(self): + """ + Gets the protocol of this V1EndpointPort. + The IP protocol for this port. Must be UDP or TCP. Default is TCP. + + :return: The protocol of this V1EndpointPort. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """ + Sets the protocol of this V1EndpointPort. + The IP protocol for this port. Must be UDP or TCP. Default is TCP. + + :param protocol: The protocol of this V1EndpointPort. + :type: str + """ + + self._protocol = protocol + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_endpoint_subset.py b/k8sclient/models/v1_endpoint_subset.py new file mode 100644 index 000000000..1c2be47f1 --- /dev/null +++ b/k8sclient/models/v1_endpoint_subset.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1EndpointSubset(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, addresses=None, not_ready_addresses=None, ports=None): + """ + V1EndpointSubset - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'addresses': 'list[V1EndpointAddress]', + 'not_ready_addresses': 'list[V1EndpointAddress]', + 'ports': 'list[V1EndpointPort]' + } + + self.attribute_map = { + 'addresses': 'addresses', + 'not_ready_addresses': 'notReadyAddresses', + 'ports': 'ports' + } + + self._addresses = addresses + self._not_ready_addresses = not_ready_addresses + self._ports = ports + + + @property + def addresses(self): + """ + Gets the addresses of this V1EndpointSubset. + IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. + + :return: The addresses of this V1EndpointSubset. + :rtype: list[V1EndpointAddress] + """ + return self._addresses + + @addresses.setter + def addresses(self, addresses): + """ + Sets the addresses of this V1EndpointSubset. + IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. + + :param addresses: The addresses of this V1EndpointSubset. + :type: list[V1EndpointAddress] + """ + + self._addresses = addresses + + @property + def not_ready_addresses(self): + """ + Gets the not_ready_addresses of this V1EndpointSubset. + IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. + + :return: The not_ready_addresses of this V1EndpointSubset. + :rtype: list[V1EndpointAddress] + """ + return self._not_ready_addresses + + @not_ready_addresses.setter + def not_ready_addresses(self, not_ready_addresses): + """ + Sets the not_ready_addresses of this V1EndpointSubset. + IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. + + :param not_ready_addresses: The not_ready_addresses of this V1EndpointSubset. + :type: list[V1EndpointAddress] + """ + + self._not_ready_addresses = not_ready_addresses + + @property + def ports(self): + """ + Gets the ports of this V1EndpointSubset. + Port numbers available on the related IP addresses. + + :return: The ports of this V1EndpointSubset. + :rtype: list[V1EndpointPort] + """ + return self._ports + + @ports.setter + def ports(self, ports): + """ + Sets the ports of this V1EndpointSubset. + Port numbers available on the related IP addresses. + + :param ports: The ports of this V1EndpointSubset. + :type: list[V1EndpointPort] + """ + + self._ports = ports + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_endpoints.py b/k8sclient/models/v1_endpoints.py new file mode 100644 index 000000000..fcb40723f --- /dev/null +++ b/k8sclient/models/v1_endpoints.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1Endpoints(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, subsets=None): + """ + V1Endpoints - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'subsets': 'list[V1EndpointSubset]' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'subsets': 'subsets' + } + + self._metadata = metadata + self._subsets = subsets + + + @property + def metadata(self): + """ + Gets the metadata of this V1Endpoints. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1Endpoints. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Endpoints. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1Endpoints. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def subsets(self): + """ + Gets the subsets of this V1Endpoints. + The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. + + :return: The subsets of this V1Endpoints. + :rtype: list[V1EndpointSubset] + """ + return self._subsets + + @subsets.setter + def subsets(self, subsets): + """ + Sets the subsets of this V1Endpoints. + The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. + + :param subsets: The subsets of this V1Endpoints. + :type: list[V1EndpointSubset] + """ + if subsets is None: + raise ValueError("Invalid value for `subsets`, must not be `None`") + + self._subsets = subsets + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_endpoints_list.py b/k8sclient/models/v1_endpoints_list.py new file mode 100644 index 000000000..65b6c376e --- /dev/null +++ b/k8sclient/models/v1_endpoints_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1EndpointsList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1EndpointsList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1Endpoints]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1EndpointsList. + List of endpoints. + + :return: The items of this V1EndpointsList. + :rtype: list[V1Endpoints] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1EndpointsList. + List of endpoints. + + :param items: The items of this V1EndpointsList. + :type: list[V1Endpoints] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1EndpointsList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this V1EndpointsList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1EndpointsList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1EndpointsList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_env_var.py b/k8sclient/models/v1_env_var.py new file mode 100644 index 000000000..77f39fdb4 --- /dev/null +++ b/k8sclient/models/v1_env_var.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1EnvVar(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, name=None, value=None, value_from=None): + """ + V1EnvVar - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'value': 'str', + 'value_from': 'V1EnvVarSource' + } + + self.attribute_map = { + 'name': 'name', + 'value': 'value', + 'value_from': 'valueFrom' + } + + self._name = name + self._value = value + self._value_from = value_from + + + @property + def name(self): + """ + Gets the name of this V1EnvVar. + Name of the environment variable. Must be a C_IDENTIFIER. + + :return: The name of this V1EnvVar. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1EnvVar. + Name of the environment variable. Must be a C_IDENTIFIER. + + :param name: The name of this V1EnvVar. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def value(self): + """ + Gets the value of this V1EnvVar. + Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". + + :return: The value of this V1EnvVar. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this V1EnvVar. + Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". + + :param value: The value of this V1EnvVar. + :type: str + """ + + self._value = value + + @property + def value_from(self): + """ + Gets the value_from of this V1EnvVar. + Source for the environment variable's value. Cannot be used if value is not empty. + + :return: The value_from of this V1EnvVar. + :rtype: V1EnvVarSource + """ + return self._value_from + + @value_from.setter + def value_from(self, value_from): + """ + Sets the value_from of this V1EnvVar. + Source for the environment variable's value. Cannot be used if value is not empty. + + :param value_from: The value_from of this V1EnvVar. + :type: V1EnvVarSource + """ + + self._value_from = value_from + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_env_var_source.py b/k8sclient/models/v1_env_var_source.py new file mode 100644 index 000000000..163eb8a9e --- /dev/null +++ b/k8sclient/models/v1_env_var_source.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1EnvVarSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, config_map_key_ref=None, field_ref=None, resource_field_ref=None, secret_key_ref=None): + """ + V1EnvVarSource - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'config_map_key_ref': 'V1ConfigMapKeySelector', + 'field_ref': 'V1ObjectFieldSelector', + 'resource_field_ref': 'V1ResourceFieldSelector', + 'secret_key_ref': 'V1SecretKeySelector' + } + + self.attribute_map = { + 'config_map_key_ref': 'configMapKeyRef', + 'field_ref': 'fieldRef', + 'resource_field_ref': 'resourceFieldRef', + 'secret_key_ref': 'secretKeyRef' + } + + self._config_map_key_ref = config_map_key_ref + self._field_ref = field_ref + self._resource_field_ref = resource_field_ref + self._secret_key_ref = secret_key_ref + + + @property + def config_map_key_ref(self): + """ + Gets the config_map_key_ref of this V1EnvVarSource. + Selects a key of a ConfigMap. + + :return: The config_map_key_ref of this V1EnvVarSource. + :rtype: V1ConfigMapKeySelector + """ + return self._config_map_key_ref + + @config_map_key_ref.setter + def config_map_key_ref(self, config_map_key_ref): + """ + Sets the config_map_key_ref of this V1EnvVarSource. + Selects a key of a ConfigMap. + + :param config_map_key_ref: The config_map_key_ref of this V1EnvVarSource. + :type: V1ConfigMapKeySelector + """ + + self._config_map_key_ref = config_map_key_ref + + @property + def field_ref(self): + """ + Gets the field_ref of this V1EnvVarSource. + Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.podIP. + + :return: The field_ref of this V1EnvVarSource. + :rtype: V1ObjectFieldSelector + """ + return self._field_ref + + @field_ref.setter + def field_ref(self, field_ref): + """ + Sets the field_ref of this V1EnvVarSource. + Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.podIP. + + :param field_ref: The field_ref of this V1EnvVarSource. + :type: V1ObjectFieldSelector + """ + + self._field_ref = field_ref + + @property + def resource_field_ref(self): + """ + Gets the resource_field_ref of this V1EnvVarSource. + Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + :return: The resource_field_ref of this V1EnvVarSource. + :rtype: V1ResourceFieldSelector + """ + return self._resource_field_ref + + @resource_field_ref.setter + def resource_field_ref(self, resource_field_ref): + """ + Sets the resource_field_ref of this V1EnvVarSource. + Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + :param resource_field_ref: The resource_field_ref of this V1EnvVarSource. + :type: V1ResourceFieldSelector + """ + + self._resource_field_ref = resource_field_ref + + @property + def secret_key_ref(self): + """ + Gets the secret_key_ref of this V1EnvVarSource. + Selects a key of a secret in the pod's namespace + + :return: The secret_key_ref of this V1EnvVarSource. + :rtype: V1SecretKeySelector + """ + return self._secret_key_ref + + @secret_key_ref.setter + def secret_key_ref(self, secret_key_ref): + """ + Sets the secret_key_ref of this V1EnvVarSource. + Selects a key of a secret in the pod's namespace + + :param secret_key_ref: The secret_key_ref of this V1EnvVarSource. + :type: V1SecretKeySelector + """ + + self._secret_key_ref = secret_key_ref + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_event.py b/k8sclient/models/v1_event.py new file mode 100644 index 000000000..2948e622c --- /dev/null +++ b/k8sclient/models/v1_event.py @@ -0,0 +1,338 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1Event(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, count=None, first_timestamp=None, involved_object=None, last_timestamp=None, message=None, metadata=None, reason=None, source=None, type=None): + """ + V1Event - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'count': 'int', + 'first_timestamp': 'UnversionedTime', + 'involved_object': 'V1ObjectReference', + 'last_timestamp': 'UnversionedTime', + 'message': 'str', + 'metadata': 'V1ObjectMeta', + 'reason': 'str', + 'source': 'V1EventSource', + 'type': 'str' + } + + self.attribute_map = { + 'count': 'count', + 'first_timestamp': 'firstTimestamp', + 'involved_object': 'involvedObject', + 'last_timestamp': 'lastTimestamp', + 'message': 'message', + 'metadata': 'metadata', + 'reason': 'reason', + 'source': 'source', + 'type': 'type' + } + + self._count = count + self._first_timestamp = first_timestamp + self._involved_object = involved_object + self._last_timestamp = last_timestamp + self._message = message + self._metadata = metadata + self._reason = reason + self._source = source + self._type = type + + + @property + def count(self): + """ + Gets the count of this V1Event. + The number of times this event has occurred. + + :return: The count of this V1Event. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this V1Event. + The number of times this event has occurred. + + :param count: The count of this V1Event. + :type: int + """ + + self._count = count + + @property + def first_timestamp(self): + """ + Gets the first_timestamp of this V1Event. + The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + + :return: The first_timestamp of this V1Event. + :rtype: UnversionedTime + """ + return self._first_timestamp + + @first_timestamp.setter + def first_timestamp(self, first_timestamp): + """ + Sets the first_timestamp of this V1Event. + The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + + :param first_timestamp: The first_timestamp of this V1Event. + :type: UnversionedTime + """ + + self._first_timestamp = first_timestamp + + @property + def involved_object(self): + """ + Gets the involved_object of this V1Event. + The object that this event is about. + + :return: The involved_object of this V1Event. + :rtype: V1ObjectReference + """ + return self._involved_object + + @involved_object.setter + def involved_object(self, involved_object): + """ + Sets the involved_object of this V1Event. + The object that this event is about. + + :param involved_object: The involved_object of this V1Event. + :type: V1ObjectReference + """ + if involved_object is None: + raise ValueError("Invalid value for `involved_object`, must not be `None`") + + self._involved_object = involved_object + + @property + def last_timestamp(self): + """ + Gets the last_timestamp of this V1Event. + The time at which the most recent occurrence of this event was recorded. + + :return: The last_timestamp of this V1Event. + :rtype: UnversionedTime + """ + return self._last_timestamp + + @last_timestamp.setter + def last_timestamp(self, last_timestamp): + """ + Sets the last_timestamp of this V1Event. + The time at which the most recent occurrence of this event was recorded. + + :param last_timestamp: The last_timestamp of this V1Event. + :type: UnversionedTime + """ + + self._last_timestamp = last_timestamp + + @property + def message(self): + """ + Gets the message of this V1Event. + A human-readable description of the status of this operation. + + :return: The message of this V1Event. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1Event. + A human-readable description of the status of this operation. + + :param message: The message of this V1Event. + :type: str + """ + + self._message = message + + @property + def metadata(self): + """ + Gets the metadata of this V1Event. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1Event. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Event. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1Event. + :type: V1ObjectMeta + """ + if metadata is None: + raise ValueError("Invalid value for `metadata`, must not be `None`") + + self._metadata = metadata + + @property + def reason(self): + """ + Gets the reason of this V1Event. + This should be a short, machine understandable string that gives the reason for the transition into the object's current status. + + :return: The reason of this V1Event. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1Event. + This should be a short, machine understandable string that gives the reason for the transition into the object's current status. + + :param reason: The reason of this V1Event. + :type: str + """ + + self._reason = reason + + @property + def source(self): + """ + Gets the source of this V1Event. + The component reporting this event. Should be a short machine understandable string. + + :return: The source of this V1Event. + :rtype: V1EventSource + """ + return self._source + + @source.setter + def source(self, source): + """ + Sets the source of this V1Event. + The component reporting this event. Should be a short machine understandable string. + + :param source: The source of this V1Event. + :type: V1EventSource + """ + + self._source = source + + @property + def type(self): + """ + Gets the type of this V1Event. + Type of this event (Normal, Warning), new types could be added in the future + + :return: The type of this V1Event. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1Event. + Type of this event (Normal, Warning), new types could be added in the future + + :param type: The type of this V1Event. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_event_list.py b/k8sclient/models/v1_event_list.py new file mode 100644 index 000000000..199124c94 --- /dev/null +++ b/k8sclient/models/v1_event_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1EventList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1EventList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1Event]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1EventList. + List of events + + :return: The items of this V1EventList. + :rtype: list[V1Event] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1EventList. + List of events + + :param items: The items of this V1EventList. + :type: list[V1Event] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1EventList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this V1EventList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1EventList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1EventList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_event_source.py b/k8sclient/models/v1_event_source.py new file mode 100644 index 000000000..20d5a4fce --- /dev/null +++ b/k8sclient/models/v1_event_source.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1EventSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, component=None, host=None): + """ + V1EventSource - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'component': 'str', + 'host': 'str' + } + + self.attribute_map = { + 'component': 'component', + 'host': 'host' + } + + self._component = component + self._host = host + + + @property + def component(self): + """ + Gets the component of this V1EventSource. + Component from which the event is generated. + + :return: The component of this V1EventSource. + :rtype: str + """ + return self._component + + @component.setter + def component(self, component): + """ + Sets the component of this V1EventSource. + Component from which the event is generated. + + :param component: The component of this V1EventSource. + :type: str + """ + + self._component = component + + @property + def host(self): + """ + Gets the host of this V1EventSource. + Node name on which the event is generated. + + :return: The host of this V1EventSource. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """ + Sets the host of this V1EventSource. + Node name on which the event is generated. + + :param host: The host of this V1EventSource. + :type: str + """ + + self._host = host + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_exec_action.py b/k8sclient/models/v1_exec_action.py new file mode 100644 index 000000000..074f1a7eb --- /dev/null +++ b/k8sclient/models/v1_exec_action.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ExecAction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, command=None): + """ + V1ExecAction - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'command': 'list[str]' + } + + self.attribute_map = { + 'command': 'command' + } + + self._command = command + + + @property + def command(self): + """ + Gets the command of this V1ExecAction. + Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + :return: The command of this V1ExecAction. + :rtype: list[str] + """ + return self._command + + @command.setter + def command(self, command): + """ + Sets the command of this V1ExecAction. + Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + :param command: The command of this V1ExecAction. + :type: list[str] + """ + + self._command = command + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_handler.py b/k8sclient/models/v1_handler.py new file mode 100644 index 000000000..13c670e10 --- /dev/null +++ b/k8sclient/models/v1_handler.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1Handler(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, _exec=None, http_get=None, tcp_socket=None): + """ + V1Handler - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + '_exec': 'V1ExecAction', + 'http_get': 'V1HTTPGetAction', + 'tcp_socket': 'V1TCPSocketAction' + } + + self.attribute_map = { + '_exec': 'exec', + 'http_get': 'httpGet', + 'tcp_socket': 'tcpSocket' + } + + self.__exec = _exec + self._http_get = http_get + self._tcp_socket = tcp_socket + + + @property + def _exec(self): + """ + Gets the _exec of this V1Handler. + One and only one of the following should be specified. Exec specifies the action to take. + + :return: The _exec of this V1Handler. + :rtype: V1ExecAction + """ + return self.__exec + + @_exec.setter + def _exec(self, _exec): + """ + Sets the _exec of this V1Handler. + One and only one of the following should be specified. Exec specifies the action to take. + + :param _exec: The _exec of this V1Handler. + :type: V1ExecAction + """ + + self.__exec = _exec + + @property + def http_get(self): + """ + Gets the http_get of this V1Handler. + HTTPGet specifies the http request to perform. + + :return: The http_get of this V1Handler. + :rtype: V1HTTPGetAction + """ + return self._http_get + + @http_get.setter + def http_get(self, http_get): + """ + Sets the http_get of this V1Handler. + HTTPGet specifies the http request to perform. + + :param http_get: The http_get of this V1Handler. + :type: V1HTTPGetAction + """ + + self._http_get = http_get + + @property + def tcp_socket(self): + """ + Gets the tcp_socket of this V1Handler. + TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + + :return: The tcp_socket of this V1Handler. + :rtype: V1TCPSocketAction + """ + return self._tcp_socket + + @tcp_socket.setter + def tcp_socket(self, tcp_socket): + """ + Sets the tcp_socket of this V1Handler. + TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + + :param tcp_socket: The tcp_socket of this V1Handler. + :type: V1TCPSocketAction + """ + + self._tcp_socket = tcp_socket + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_horizontal_pod_autoscaler.py b/k8sclient/models/v1_horizontal_pod_autoscaler.py new file mode 100644 index 000000000..cb4501030 --- /dev/null +++ b/k8sclient/models/v1_horizontal_pod_autoscaler.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1HorizontalPodAutoscaler(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1HorizontalPodAutoscaler - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1HorizontalPodAutoscalerSpec', + 'status': 'V1HorizontalPodAutoscalerStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1HorizontalPodAutoscaler. + Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1HorizontalPodAutoscaler. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1HorizontalPodAutoscaler. + Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1HorizontalPodAutoscaler. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1HorizontalPodAutoscaler. + behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + + :return: The spec of this V1HorizontalPodAutoscaler. + :rtype: V1HorizontalPodAutoscalerSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1HorizontalPodAutoscaler. + behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + + :param spec: The spec of this V1HorizontalPodAutoscaler. + :type: V1HorizontalPodAutoscalerSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1HorizontalPodAutoscaler. + current information about the autoscaler. + + :return: The status of this V1HorizontalPodAutoscaler. + :rtype: V1HorizontalPodAutoscalerStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1HorizontalPodAutoscaler. + current information about the autoscaler. + + :param status: The status of this V1HorizontalPodAutoscaler. + :type: V1HorizontalPodAutoscalerStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_horizontal_pod_autoscaler_list.py b/k8sclient/models/v1_horizontal_pod_autoscaler_list.py new file mode 100644 index 000000000..656af5b5c --- /dev/null +++ b/k8sclient/models/v1_horizontal_pod_autoscaler_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1HorizontalPodAutoscalerList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1HorizontalPodAutoscalerList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1HorizontalPodAutoscaler]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1HorizontalPodAutoscalerList. + list of horizontal pod autoscaler objects. + + :return: The items of this V1HorizontalPodAutoscalerList. + :rtype: list[V1HorizontalPodAutoscaler] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1HorizontalPodAutoscalerList. + list of horizontal pod autoscaler objects. + + :param items: The items of this V1HorizontalPodAutoscalerList. + :type: list[V1HorizontalPodAutoscaler] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1HorizontalPodAutoscalerList. + Standard list metadata. + + :return: The metadata of this V1HorizontalPodAutoscalerList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1HorizontalPodAutoscalerList. + Standard list metadata. + + :param metadata: The metadata of this V1HorizontalPodAutoscalerList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_horizontal_pod_autoscaler_spec.py b/k8sclient/models/v1_horizontal_pod_autoscaler_spec.py new file mode 100644 index 000000000..d9030b051 --- /dev/null +++ b/k8sclient/models/v1_horizontal_pod_autoscaler_spec.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1HorizontalPodAutoscalerSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, max_replicas=None, min_replicas=None, scale_target_ref=None, target_cpu_utilization_percentage=None): + """ + V1HorizontalPodAutoscalerSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'max_replicas': 'int', + 'min_replicas': 'int', + 'scale_target_ref': 'V1CrossVersionObjectReference', + 'target_cpu_utilization_percentage': 'int' + } + + self.attribute_map = { + 'max_replicas': 'maxReplicas', + 'min_replicas': 'minReplicas', + 'scale_target_ref': 'scaleTargetRef', + 'target_cpu_utilization_percentage': 'targetCPUUtilizationPercentage' + } + + self._max_replicas = max_replicas + self._min_replicas = min_replicas + self._scale_target_ref = scale_target_ref + self._target_cpu_utilization_percentage = target_cpu_utilization_percentage + + + @property + def max_replicas(self): + """ + Gets the max_replicas of this V1HorizontalPodAutoscalerSpec. + upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. + + :return: The max_replicas of this V1HorizontalPodAutoscalerSpec. + :rtype: int + """ + return self._max_replicas + + @max_replicas.setter + def max_replicas(self, max_replicas): + """ + Sets the max_replicas of this V1HorizontalPodAutoscalerSpec. + upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. + + :param max_replicas: The max_replicas of this V1HorizontalPodAutoscalerSpec. + :type: int + """ + if max_replicas is None: + raise ValueError("Invalid value for `max_replicas`, must not be `None`") + + self._max_replicas = max_replicas + + @property + def min_replicas(self): + """ + Gets the min_replicas of this V1HorizontalPodAutoscalerSpec. + lower limit for the number of pods that can be set by the autoscaler, default 1. + + :return: The min_replicas of this V1HorizontalPodAutoscalerSpec. + :rtype: int + """ + return self._min_replicas + + @min_replicas.setter + def min_replicas(self, min_replicas): + """ + Sets the min_replicas of this V1HorizontalPodAutoscalerSpec. + lower limit for the number of pods that can be set by the autoscaler, default 1. + + :param min_replicas: The min_replicas of this V1HorizontalPodAutoscalerSpec. + :type: int + """ + + self._min_replicas = min_replicas + + @property + def scale_target_ref(self): + """ + Gets the scale_target_ref of this V1HorizontalPodAutoscalerSpec. + reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. + + :return: The scale_target_ref of this V1HorizontalPodAutoscalerSpec. + :rtype: V1CrossVersionObjectReference + """ + return self._scale_target_ref + + @scale_target_ref.setter + def scale_target_ref(self, scale_target_ref): + """ + Sets the scale_target_ref of this V1HorizontalPodAutoscalerSpec. + reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. + + :param scale_target_ref: The scale_target_ref of this V1HorizontalPodAutoscalerSpec. + :type: V1CrossVersionObjectReference + """ + if scale_target_ref is None: + raise ValueError("Invalid value for `scale_target_ref`, must not be `None`") + + self._scale_target_ref = scale_target_ref + + @property + def target_cpu_utilization_percentage(self): + """ + Gets the target_cpu_utilization_percentage of this V1HorizontalPodAutoscalerSpec. + target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. + + :return: The target_cpu_utilization_percentage of this V1HorizontalPodAutoscalerSpec. + :rtype: int + """ + return self._target_cpu_utilization_percentage + + @target_cpu_utilization_percentage.setter + def target_cpu_utilization_percentage(self, target_cpu_utilization_percentage): + """ + Sets the target_cpu_utilization_percentage of this V1HorizontalPodAutoscalerSpec. + target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. + + :param target_cpu_utilization_percentage: The target_cpu_utilization_percentage of this V1HorizontalPodAutoscalerSpec. + :type: int + """ + + self._target_cpu_utilization_percentage = target_cpu_utilization_percentage + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_horizontal_pod_autoscaler_status.py b/k8sclient/models/v1_horizontal_pod_autoscaler_status.py new file mode 100644 index 000000000..22adc38f1 --- /dev/null +++ b/k8sclient/models/v1_horizontal_pod_autoscaler_status.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1HorizontalPodAutoscalerStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, current_cpu_utilization_percentage=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None): + """ + V1HorizontalPodAutoscalerStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'current_cpu_utilization_percentage': 'int', + 'current_replicas': 'int', + 'desired_replicas': 'int', + 'last_scale_time': 'UnversionedTime', + 'observed_generation': 'int' + } + + self.attribute_map = { + 'current_cpu_utilization_percentage': 'currentCPUUtilizationPercentage', + 'current_replicas': 'currentReplicas', + 'desired_replicas': 'desiredReplicas', + 'last_scale_time': 'lastScaleTime', + 'observed_generation': 'observedGeneration' + } + + self._current_cpu_utilization_percentage = current_cpu_utilization_percentage + self._current_replicas = current_replicas + self._desired_replicas = desired_replicas + self._last_scale_time = last_scale_time + self._observed_generation = observed_generation + + + @property + def current_cpu_utilization_percentage(self): + """ + Gets the current_cpu_utilization_percentage of this V1HorizontalPodAutoscalerStatus. + current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. + + :return: The current_cpu_utilization_percentage of this V1HorizontalPodAutoscalerStatus. + :rtype: int + """ + return self._current_cpu_utilization_percentage + + @current_cpu_utilization_percentage.setter + def current_cpu_utilization_percentage(self, current_cpu_utilization_percentage): + """ + Sets the current_cpu_utilization_percentage of this V1HorizontalPodAutoscalerStatus. + current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. + + :param current_cpu_utilization_percentage: The current_cpu_utilization_percentage of this V1HorizontalPodAutoscalerStatus. + :type: int + """ + + self._current_cpu_utilization_percentage = current_cpu_utilization_percentage + + @property + def current_replicas(self): + """ + Gets the current_replicas of this V1HorizontalPodAutoscalerStatus. + current number of replicas of pods managed by this autoscaler. + + :return: The current_replicas of this V1HorizontalPodAutoscalerStatus. + :rtype: int + """ + return self._current_replicas + + @current_replicas.setter + def current_replicas(self, current_replicas): + """ + Sets the current_replicas of this V1HorizontalPodAutoscalerStatus. + current number of replicas of pods managed by this autoscaler. + + :param current_replicas: The current_replicas of this V1HorizontalPodAutoscalerStatus. + :type: int + """ + if current_replicas is None: + raise ValueError("Invalid value for `current_replicas`, must not be `None`") + + self._current_replicas = current_replicas + + @property + def desired_replicas(self): + """ + Gets the desired_replicas of this V1HorizontalPodAutoscalerStatus. + desired number of replicas of pods managed by this autoscaler. + + :return: The desired_replicas of this V1HorizontalPodAutoscalerStatus. + :rtype: int + """ + return self._desired_replicas + + @desired_replicas.setter + def desired_replicas(self, desired_replicas): + """ + Sets the desired_replicas of this V1HorizontalPodAutoscalerStatus. + desired number of replicas of pods managed by this autoscaler. + + :param desired_replicas: The desired_replicas of this V1HorizontalPodAutoscalerStatus. + :type: int + """ + if desired_replicas is None: + raise ValueError("Invalid value for `desired_replicas`, must not be `None`") + + self._desired_replicas = desired_replicas + + @property + def last_scale_time(self): + """ + Gets the last_scale_time of this V1HorizontalPodAutoscalerStatus. + last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. + + :return: The last_scale_time of this V1HorizontalPodAutoscalerStatus. + :rtype: UnversionedTime + """ + return self._last_scale_time + + @last_scale_time.setter + def last_scale_time(self, last_scale_time): + """ + Sets the last_scale_time of this V1HorizontalPodAutoscalerStatus. + last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. + + :param last_scale_time: The last_scale_time of this V1HorizontalPodAutoscalerStatus. + :type: UnversionedTime + """ + + self._last_scale_time = last_scale_time + + @property + def observed_generation(self): + """ + Gets the observed_generation of this V1HorizontalPodAutoscalerStatus. + most recent generation observed by this autoscaler. + + :return: The observed_generation of this V1HorizontalPodAutoscalerStatus. + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """ + Sets the observed_generation of this V1HorizontalPodAutoscalerStatus. + most recent generation observed by this autoscaler. + + :param observed_generation: The observed_generation of this V1HorizontalPodAutoscalerStatus. + :type: int + """ + + self._observed_generation = observed_generation + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_http_get_action.py b/k8sclient/models/v1_http_get_action.py new file mode 100644 index 000000000..781f220ba --- /dev/null +++ b/k8sclient/models/v1_http_get_action.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1HTTPGetAction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, host=None, http_headers=None, path=None, port=None, scheme=None): + """ + V1HTTPGetAction - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'host': 'str', + 'http_headers': 'list[V1HTTPHeader]', + 'path': 'str', + 'port': 'IntstrIntOrString', + 'scheme': 'str' + } + + self.attribute_map = { + 'host': 'host', + 'http_headers': 'httpHeaders', + 'path': 'path', + 'port': 'port', + 'scheme': 'scheme' + } + + self._host = host + self._http_headers = http_headers + self._path = path + self._port = port + self._scheme = scheme + + + @property + def host(self): + """ + Gets the host of this V1HTTPGetAction. + Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. + + :return: The host of this V1HTTPGetAction. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """ + Sets the host of this V1HTTPGetAction. + Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. + + :param host: The host of this V1HTTPGetAction. + :type: str + """ + + self._host = host + + @property + def http_headers(self): + """ + Gets the http_headers of this V1HTTPGetAction. + Custom headers to set in the request. HTTP allows repeated headers. + + :return: The http_headers of this V1HTTPGetAction. + :rtype: list[V1HTTPHeader] + """ + return self._http_headers + + @http_headers.setter + def http_headers(self, http_headers): + """ + Sets the http_headers of this V1HTTPGetAction. + Custom headers to set in the request. HTTP allows repeated headers. + + :param http_headers: The http_headers of this V1HTTPGetAction. + :type: list[V1HTTPHeader] + """ + + self._http_headers = http_headers + + @property + def path(self): + """ + Gets the path of this V1HTTPGetAction. + Path to access on the HTTP server. + + :return: The path of this V1HTTPGetAction. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1HTTPGetAction. + Path to access on the HTTP server. + + :param path: The path of this V1HTTPGetAction. + :type: str + """ + + self._path = path + + @property + def port(self): + """ + Gets the port of this V1HTTPGetAction. + Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + :return: The port of this V1HTTPGetAction. + :rtype: IntstrIntOrString + """ + return self._port + + @port.setter + def port(self, port): + """ + Sets the port of this V1HTTPGetAction. + Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + :param port: The port of this V1HTTPGetAction. + :type: IntstrIntOrString + """ + if port is None: + raise ValueError("Invalid value for `port`, must not be `None`") + + self._port = port + + @property + def scheme(self): + """ + Gets the scheme of this V1HTTPGetAction. + Scheme to use for connecting to the host. Defaults to HTTP. + + :return: The scheme of this V1HTTPGetAction. + :rtype: str + """ + return self._scheme + + @scheme.setter + def scheme(self, scheme): + """ + Sets the scheme of this V1HTTPGetAction. + Scheme to use for connecting to the host. Defaults to HTTP. + + :param scheme: The scheme of this V1HTTPGetAction. + :type: str + """ + + self._scheme = scheme + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_http_header.py b/k8sclient/models/v1_http_header.py new file mode 100644 index 000000000..aac585b15 --- /dev/null +++ b/k8sclient/models/v1_http_header.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1HTTPHeader(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, name=None, value=None): + """ + V1HTTPHeader - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'value': 'str' + } + + self.attribute_map = { + 'name': 'name', + 'value': 'value' + } + + self._name = name + self._value = value + + + @property + def name(self): + """ + Gets the name of this V1HTTPHeader. + The header field name + + :return: The name of this V1HTTPHeader. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1HTTPHeader. + The header field name + + :param name: The name of this V1HTTPHeader. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def value(self): + """ + Gets the value of this V1HTTPHeader. + The header field value + + :return: The value of this V1HTTPHeader. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this V1HTTPHeader. + The header field value + + :param value: The value of this V1HTTPHeader. + :type: str + """ + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") + + self._value = value + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_job.py b/k8sclient/models/v1_job.py new file mode 100644 index 000000000..dfe88ca1c --- /dev/null +++ b/k8sclient/models/v1_job.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1Job(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1Job - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1JobSpec', + 'status': 'V1JobStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1Job. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1Job. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Job. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1Job. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1Job. + Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The spec of this V1Job. + :rtype: V1JobSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1Job. + Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param spec: The spec of this V1Job. + :type: V1JobSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1Job. + Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The status of this V1Job. + :rtype: V1JobStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1Job. + Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param status: The status of this V1Job. + :type: V1JobStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_job_condition.py b/k8sclient/models/v1_job_condition.py new file mode 100644 index 000000000..b2aa5f5d4 --- /dev/null +++ b/k8sclient/models/v1_job_condition.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1JobCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): + """ + V1JobCondition - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'last_probe_time': 'UnversionedTime', + 'last_transition_time': 'UnversionedTime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'last_probe_time': 'lastProbeTime', + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + self._last_probe_time = last_probe_time + self._last_transition_time = last_transition_time + self._message = message + self._reason = reason + self._status = status + self._type = type + + + @property + def last_probe_time(self): + """ + Gets the last_probe_time of this V1JobCondition. + Last time the condition was checked. + + :return: The last_probe_time of this V1JobCondition. + :rtype: UnversionedTime + """ + return self._last_probe_time + + @last_probe_time.setter + def last_probe_time(self, last_probe_time): + """ + Sets the last_probe_time of this V1JobCondition. + Last time the condition was checked. + + :param last_probe_time: The last_probe_time of this V1JobCondition. + :type: UnversionedTime + """ + + self._last_probe_time = last_probe_time + + @property + def last_transition_time(self): + """ + Gets the last_transition_time of this V1JobCondition. + Last time the condition transit from one status to another. + + :return: The last_transition_time of this V1JobCondition. + :rtype: UnversionedTime + """ + return self._last_transition_time + + @last_transition_time.setter + def last_transition_time(self, last_transition_time): + """ + Sets the last_transition_time of this V1JobCondition. + Last time the condition transit from one status to another. + + :param last_transition_time: The last_transition_time of this V1JobCondition. + :type: UnversionedTime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """ + Gets the message of this V1JobCondition. + Human readable message indicating details about last transition. + + :return: The message of this V1JobCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1JobCondition. + Human readable message indicating details about last transition. + + :param message: The message of this V1JobCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1JobCondition. + (brief) reason for the condition's last transition. + + :return: The reason of this V1JobCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1JobCondition. + (brief) reason for the condition's last transition. + + :param reason: The reason of this V1JobCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1JobCondition. + Status of the condition, one of True, False, Unknown. + + :return: The status of this V1JobCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1JobCondition. + Status of the condition, one of True, False, Unknown. + + :param status: The status of this V1JobCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1JobCondition. + Type of job condition, Complete or Failed. + + :return: The type of this V1JobCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1JobCondition. + Type of job condition, Complete or Failed. + + :param type: The type of this V1JobCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_job_list.py b/k8sclient/models/v1_job_list.py new file mode 100644 index 000000000..b7c6672c8 --- /dev/null +++ b/k8sclient/models/v1_job_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1JobList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1JobList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1Job]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1JobList. + Items is the list of Job. + + :return: The items of this V1JobList. + :rtype: list[V1Job] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1JobList. + Items is the list of Job. + + :param items: The items of this V1JobList. + :type: list[V1Job] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1JobList. + Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1JobList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1JobList. + Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1JobList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_job_spec.py b/k8sclient/models/v1_job_spec.py new file mode 100644 index 000000000..978c662ae --- /dev/null +++ b/k8sclient/models/v1_job_spec.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1JobSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, active_deadline_seconds=None, completions=None, manual_selector=None, parallelism=None, selector=None, template=None): + """ + V1JobSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'active_deadline_seconds': 'int', + 'completions': 'int', + 'manual_selector': 'bool', + 'parallelism': 'int', + 'selector': 'UnversionedLabelSelector', + 'template': 'V1PodTemplateSpec' + } + + self.attribute_map = { + 'active_deadline_seconds': 'activeDeadlineSeconds', + 'completions': 'completions', + 'manual_selector': 'manualSelector', + 'parallelism': 'parallelism', + 'selector': 'selector', + 'template': 'template' + } + + self._active_deadline_seconds = active_deadline_seconds + self._completions = completions + self._manual_selector = manual_selector + self._parallelism = parallelism + self._selector = selector + self._template = template + + + @property + def active_deadline_seconds(self): + """ + Gets the active_deadline_seconds of this V1JobSpec. + Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + + :return: The active_deadline_seconds of this V1JobSpec. + :rtype: int + """ + return self._active_deadline_seconds + + @active_deadline_seconds.setter + def active_deadline_seconds(self, active_deadline_seconds): + """ + Sets the active_deadline_seconds of this V1JobSpec. + Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + + :param active_deadline_seconds: The active_deadline_seconds of this V1JobSpec. + :type: int + """ + + self._active_deadline_seconds = active_deadline_seconds + + @property + def completions(self): + """ + Gets the completions of this V1JobSpec. + Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs + + :return: The completions of this V1JobSpec. + :rtype: int + """ + return self._completions + + @completions.setter + def completions(self, completions): + """ + Sets the completions of this V1JobSpec. + Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs + + :param completions: The completions of this V1JobSpec. + :type: int + """ + + self._completions = completions + + @property + def manual_selector(self): + """ + Gets the manual_selector of this V1JobSpec. + ManualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md + + :return: The manual_selector of this V1JobSpec. + :rtype: bool + """ + return self._manual_selector + + @manual_selector.setter + def manual_selector(self, manual_selector): + """ + Sets the manual_selector of this V1JobSpec. + ManualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md + + :param manual_selector: The manual_selector of this V1JobSpec. + :type: bool + """ + + self._manual_selector = manual_selector + + @property + def parallelism(self): + """ + Gets the parallelism of this V1JobSpec. + Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs + + :return: The parallelism of this V1JobSpec. + :rtype: int + """ + return self._parallelism + + @parallelism.setter + def parallelism(self, parallelism): + """ + Sets the parallelism of this V1JobSpec. + Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs + + :param parallelism: The parallelism of this V1JobSpec. + :type: int + """ + + self._parallelism = parallelism + + @property + def selector(self): + """ + Gets the selector of this V1JobSpec. + Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :return: The selector of this V1JobSpec. + :rtype: UnversionedLabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1JobSpec. + Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :param selector: The selector of this V1JobSpec. + :type: UnversionedLabelSelector + """ + + self._selector = selector + + @property + def template(self): + """ + Gets the template of this V1JobSpec. + Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs + + :return: The template of this V1JobSpec. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1JobSpec. + Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs + + :param template: The template of this V1JobSpec. + :type: V1PodTemplateSpec + """ + if template is None: + raise ValueError("Invalid value for `template`, must not be `None`") + + self._template = template + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_job_status.py b/k8sclient/models/v1_job_status.py new file mode 100644 index 000000000..0366d0781 --- /dev/null +++ b/k8sclient/models/v1_job_status.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1JobStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, active=None, completion_time=None, conditions=None, failed=None, start_time=None, succeeded=None): + """ + V1JobStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'active': 'int', + 'completion_time': 'UnversionedTime', + 'conditions': 'list[V1JobCondition]', + 'failed': 'int', + 'start_time': 'UnversionedTime', + 'succeeded': 'int' + } + + self.attribute_map = { + 'active': 'active', + 'completion_time': 'completionTime', + 'conditions': 'conditions', + 'failed': 'failed', + 'start_time': 'startTime', + 'succeeded': 'succeeded' + } + + self._active = active + self._completion_time = completion_time + self._conditions = conditions + self._failed = failed + self._start_time = start_time + self._succeeded = succeeded + + + @property + def active(self): + """ + Gets the active of this V1JobStatus. + Active is the number of actively running pods. + + :return: The active of this V1JobStatus. + :rtype: int + """ + return self._active + + @active.setter + def active(self, active): + """ + Sets the active of this V1JobStatus. + Active is the number of actively running pods. + + :param active: The active of this V1JobStatus. + :type: int + """ + + self._active = active + + @property + def completion_time(self): + """ + Gets the completion_time of this V1JobStatus. + CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + + :return: The completion_time of this V1JobStatus. + :rtype: UnversionedTime + """ + return self._completion_time + + @completion_time.setter + def completion_time(self, completion_time): + """ + Sets the completion_time of this V1JobStatus. + CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + + :param completion_time: The completion_time of this V1JobStatus. + :type: UnversionedTime + """ + + self._completion_time = completion_time + + @property + def conditions(self): + """ + Gets the conditions of this V1JobStatus. + Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs + + :return: The conditions of this V1JobStatus. + :rtype: list[V1JobCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1JobStatus. + Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs + + :param conditions: The conditions of this V1JobStatus. + :type: list[V1JobCondition] + """ + + self._conditions = conditions + + @property + def failed(self): + """ + Gets the failed of this V1JobStatus. + Failed is the number of pods which reached Phase Failed. + + :return: The failed of this V1JobStatus. + :rtype: int + """ + return self._failed + + @failed.setter + def failed(self, failed): + """ + Sets the failed of this V1JobStatus. + Failed is the number of pods which reached Phase Failed. + + :param failed: The failed of this V1JobStatus. + :type: int + """ + + self._failed = failed + + @property + def start_time(self): + """ + Gets the start_time of this V1JobStatus. + StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + + :return: The start_time of this V1JobStatus. + :rtype: UnversionedTime + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """ + Sets the start_time of this V1JobStatus. + StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + + :param start_time: The start_time of this V1JobStatus. + :type: UnversionedTime + """ + + self._start_time = start_time + + @property + def succeeded(self): + """ + Gets the succeeded of this V1JobStatus. + Succeeded is the number of pods which reached Phase Succeeded. + + :return: The succeeded of this V1JobStatus. + :rtype: int + """ + return self._succeeded + + @succeeded.setter + def succeeded(self, succeeded): + """ + Sets the succeeded of this V1JobStatus. + Succeeded is the number of pods which reached Phase Succeeded. + + :param succeeded: The succeeded of this V1JobStatus. + :type: int + """ + + self._succeeded = succeeded + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_lifecycle.py b/k8sclient/models/v1_lifecycle.py new file mode 100644 index 000000000..598a807ad --- /dev/null +++ b/k8sclient/models/v1_lifecycle.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1Lifecycle(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, post_start=None, pre_stop=None): + """ + V1Lifecycle - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'post_start': 'V1Handler', + 'pre_stop': 'V1Handler' + } + + self.attribute_map = { + 'post_start': 'postStart', + 'pre_stop': 'preStop' + } + + self._post_start = post_start + self._pre_stop = pre_stop + + + @property + def post_start(self): + """ + Gets the post_start of this V1Lifecycle. + PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details + + :return: The post_start of this V1Lifecycle. + :rtype: V1Handler + """ + return self._post_start + + @post_start.setter + def post_start(self, post_start): + """ + Sets the post_start of this V1Lifecycle. + PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details + + :param post_start: The post_start of this V1Lifecycle. + :type: V1Handler + """ + + self._post_start = post_start + + @property + def pre_stop(self): + """ + Gets the pre_stop of this V1Lifecycle. + PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details + + :return: The pre_stop of this V1Lifecycle. + :rtype: V1Handler + """ + return self._pre_stop + + @pre_stop.setter + def pre_stop(self, pre_stop): + """ + Sets the pre_stop of this V1Lifecycle. + PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details + + :param pre_stop: The pre_stop of this V1Lifecycle. + :type: V1Handler + """ + + self._pre_stop = pre_stop + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_limit_range.py b/k8sclient/models/v1_limit_range.py new file mode 100644 index 000000000..819e23d7f --- /dev/null +++ b/k8sclient/models/v1_limit_range.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1LimitRange(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None): + """ + V1LimitRange - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1LimitRangeSpec' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec' + } + + self._metadata = metadata + self._spec = spec + + + @property + def metadata(self): + """ + Gets the metadata of this V1LimitRange. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1LimitRange. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1LimitRange. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1LimitRange. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1LimitRange. + Spec defines the limits enforced. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The spec of this V1LimitRange. + :rtype: V1LimitRangeSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1LimitRange. + Spec defines the limits enforced. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param spec: The spec of this V1LimitRange. + :type: V1LimitRangeSpec + """ + + self._spec = spec + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_limit_range_item.py b/k8sclient/models/v1_limit_range_item.py new file mode 100644 index 000000000..5838850f2 --- /dev/null +++ b/k8sclient/models/v1_limit_range_item.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1LimitRangeItem(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, default=None, default_request=None, max=None, max_limit_request_ratio=None, min=None, type=None): + """ + V1LimitRangeItem - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'default': 'dict(str, ResourceQuantity)', + 'default_request': 'dict(str, ResourceQuantity)', + 'max': 'dict(str, ResourceQuantity)', + 'max_limit_request_ratio': 'dict(str, ResourceQuantity)', + 'min': 'dict(str, ResourceQuantity)', + 'type': 'str' + } + + self.attribute_map = { + 'default': 'default', + 'default_request': 'defaultRequest', + 'max': 'max', + 'max_limit_request_ratio': 'maxLimitRequestRatio', + 'min': 'min', + 'type': 'type' + } + + self._default = default + self._default_request = default_request + self._max = max + self._max_limit_request_ratio = max_limit_request_ratio + self._min = min + self._type = type + + + @property + def default(self): + """ + Gets the default of this V1LimitRangeItem. + Default resource requirement limit value by resource name if resource limit is omitted. + + :return: The default of this V1LimitRangeItem. + :rtype: dict(str, ResourceQuantity) + """ + return self._default + + @default.setter + def default(self, default): + """ + Sets the default of this V1LimitRangeItem. + Default resource requirement limit value by resource name if resource limit is omitted. + + :param default: The default of this V1LimitRangeItem. + :type: dict(str, ResourceQuantity) + """ + + self._default = default + + @property + def default_request(self): + """ + Gets the default_request of this V1LimitRangeItem. + DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. + + :return: The default_request of this V1LimitRangeItem. + :rtype: dict(str, ResourceQuantity) + """ + return self._default_request + + @default_request.setter + def default_request(self, default_request): + """ + Sets the default_request of this V1LimitRangeItem. + DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. + + :param default_request: The default_request of this V1LimitRangeItem. + :type: dict(str, ResourceQuantity) + """ + + self._default_request = default_request + + @property + def max(self): + """ + Gets the max of this V1LimitRangeItem. + Max usage constraints on this kind by resource name. + + :return: The max of this V1LimitRangeItem. + :rtype: dict(str, ResourceQuantity) + """ + return self._max + + @max.setter + def max(self, max): + """ + Sets the max of this V1LimitRangeItem. + Max usage constraints on this kind by resource name. + + :param max: The max of this V1LimitRangeItem. + :type: dict(str, ResourceQuantity) + """ + + self._max = max + + @property + def max_limit_request_ratio(self): + """ + Gets the max_limit_request_ratio of this V1LimitRangeItem. + MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. + + :return: The max_limit_request_ratio of this V1LimitRangeItem. + :rtype: dict(str, ResourceQuantity) + """ + return self._max_limit_request_ratio + + @max_limit_request_ratio.setter + def max_limit_request_ratio(self, max_limit_request_ratio): + """ + Sets the max_limit_request_ratio of this V1LimitRangeItem. + MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. + + :param max_limit_request_ratio: The max_limit_request_ratio of this V1LimitRangeItem. + :type: dict(str, ResourceQuantity) + """ + + self._max_limit_request_ratio = max_limit_request_ratio + + @property + def min(self): + """ + Gets the min of this V1LimitRangeItem. + Min usage constraints on this kind by resource name. + + :return: The min of this V1LimitRangeItem. + :rtype: dict(str, ResourceQuantity) + """ + return self._min + + @min.setter + def min(self, min): + """ + Sets the min of this V1LimitRangeItem. + Min usage constraints on this kind by resource name. + + :param min: The min of this V1LimitRangeItem. + :type: dict(str, ResourceQuantity) + """ + + self._min = min + + @property + def type(self): + """ + Gets the type of this V1LimitRangeItem. + Type of resource that this limit applies to. + + :return: The type of this V1LimitRangeItem. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1LimitRangeItem. + Type of resource that this limit applies to. + + :param type: The type of this V1LimitRangeItem. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_limit_range_list.py b/k8sclient/models/v1_limit_range_list.py new file mode 100644 index 000000000..d735042ad --- /dev/null +++ b/k8sclient/models/v1_limit_range_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1LimitRangeList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1LimitRangeList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1LimitRange]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1LimitRangeList. + Items is a list of LimitRange objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_limit_range.md + + :return: The items of this V1LimitRangeList. + :rtype: list[V1LimitRange] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1LimitRangeList. + Items is a list of LimitRange objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_limit_range.md + + :param items: The items of this V1LimitRangeList. + :type: list[V1LimitRange] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1LimitRangeList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this V1LimitRangeList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1LimitRangeList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1LimitRangeList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_limit_range_spec.py b/k8sclient/models/v1_limit_range_spec.py new file mode 100644 index 000000000..e56a1eaf0 --- /dev/null +++ b/k8sclient/models/v1_limit_range_spec.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1LimitRangeSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, limits=None): + """ + V1LimitRangeSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'limits': 'list[V1LimitRangeItem]' + } + + self.attribute_map = { + 'limits': 'limits' + } + + self._limits = limits + + + @property + def limits(self): + """ + Gets the limits of this V1LimitRangeSpec. + Limits is the list of LimitRangeItem objects that are enforced. + + :return: The limits of this V1LimitRangeSpec. + :rtype: list[V1LimitRangeItem] + """ + return self._limits + + @limits.setter + def limits(self, limits): + """ + Sets the limits of this V1LimitRangeSpec. + Limits is the list of LimitRangeItem objects that are enforced. + + :param limits: The limits of this V1LimitRangeSpec. + :type: list[V1LimitRangeItem] + """ + if limits is None: + raise ValueError("Invalid value for `limits`, must not be `None`") + + self._limits = limits + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_load_balancer_ingress.py b/k8sclient/models/v1_load_balancer_ingress.py new file mode 100644 index 000000000..33c2c0384 --- /dev/null +++ b/k8sclient/models/v1_load_balancer_ingress.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1LoadBalancerIngress(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, hostname=None, ip=None): + """ + V1LoadBalancerIngress - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'hostname': 'str', + 'ip': 'str' + } + + self.attribute_map = { + 'hostname': 'hostname', + 'ip': 'ip' + } + + self._hostname = hostname + self._ip = ip + + + @property + def hostname(self): + """ + Gets the hostname of this V1LoadBalancerIngress. + Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) + + :return: The hostname of this V1LoadBalancerIngress. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """ + Sets the hostname of this V1LoadBalancerIngress. + Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) + + :param hostname: The hostname of this V1LoadBalancerIngress. + :type: str + """ + + self._hostname = hostname + + @property + def ip(self): + """ + Gets the ip of this V1LoadBalancerIngress. + IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) + + :return: The ip of this V1LoadBalancerIngress. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """ + Sets the ip of this V1LoadBalancerIngress. + IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) + + :param ip: The ip of this V1LoadBalancerIngress. + :type: str + """ + + self._ip = ip + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_load_balancer_status.py b/k8sclient/models/v1_load_balancer_status.py new file mode 100644 index 000000000..5f3ba7ff7 --- /dev/null +++ b/k8sclient/models/v1_load_balancer_status.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1LoadBalancerStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, ingress=None): + """ + V1LoadBalancerStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'ingress': 'list[V1LoadBalancerIngress]' + } + + self.attribute_map = { + 'ingress': 'ingress' + } + + self._ingress = ingress + + + @property + def ingress(self): + """ + Gets the ingress of this V1LoadBalancerStatus. + Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. + + :return: The ingress of this V1LoadBalancerStatus. + :rtype: list[V1LoadBalancerIngress] + """ + return self._ingress + + @ingress.setter + def ingress(self, ingress): + """ + Sets the ingress of this V1LoadBalancerStatus. + Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. + + :param ingress: The ingress of this V1LoadBalancerStatus. + :type: list[V1LoadBalancerIngress] + """ + + self._ingress = ingress + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_local_object_reference.py b/k8sclient/models/v1_local_object_reference.py new file mode 100644 index 000000000..d0a1f0be1 --- /dev/null +++ b/k8sclient/models/v1_local_object_reference.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1LocalObjectReference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, name=None): + """ + V1LocalObjectReference - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str' + } + + self.attribute_map = { + 'name': 'name' + } + + self._name = name + + + @property + def name(self): + """ + Gets the name of this V1LocalObjectReference. + Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :return: The name of this V1LocalObjectReference. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1LocalObjectReference. + Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :param name: The name of this V1LocalObjectReference. + :type: str + """ + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_namespace.py b/k8sclient/models/v1_namespace.py new file mode 100644 index 000000000..adccb4592 --- /dev/null +++ b/k8sclient/models/v1_namespace.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1Namespace(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1Namespace - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1NamespaceSpec', + 'status': 'V1NamespaceStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1Namespace. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1Namespace. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Namespace. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1Namespace. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1Namespace. + Spec defines the behavior of the Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The spec of this V1Namespace. + :rtype: V1NamespaceSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1Namespace. + Spec defines the behavior of the Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param spec: The spec of this V1Namespace. + :type: V1NamespaceSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1Namespace. + Status describes the current status of a Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The status of this V1Namespace. + :rtype: V1NamespaceStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1Namespace. + Status describes the current status of a Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param status: The status of this V1Namespace. + :type: V1NamespaceStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_namespace_list.py b/k8sclient/models/v1_namespace_list.py new file mode 100644 index 000000000..778e53c53 --- /dev/null +++ b/k8sclient/models/v1_namespace_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1NamespaceList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1NamespaceList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1Namespace]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1NamespaceList. + Items is the list of Namespace objects in the list. More info: http://kubernetes.io/docs/user-guide/namespaces + + :return: The items of this V1NamespaceList. + :rtype: list[V1Namespace] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1NamespaceList. + Items is the list of Namespace objects in the list. More info: http://kubernetes.io/docs/user-guide/namespaces + + :param items: The items of this V1NamespaceList. + :type: list[V1Namespace] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1NamespaceList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this V1NamespaceList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1NamespaceList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1NamespaceList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_namespace_spec.py b/k8sclient/models/v1_namespace_spec.py new file mode 100644 index 000000000..9733c582b --- /dev/null +++ b/k8sclient/models/v1_namespace_spec.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1NamespaceSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, finalizers=None): + """ + V1NamespaceSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'finalizers': 'list[str]' + } + + self.attribute_map = { + 'finalizers': 'finalizers' + } + + self._finalizers = finalizers + + + @property + def finalizers(self): + """ + Gets the finalizers of this V1NamespaceSpec. + Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#finalizers + + :return: The finalizers of this V1NamespaceSpec. + :rtype: list[str] + """ + return self._finalizers + + @finalizers.setter + def finalizers(self, finalizers): + """ + Sets the finalizers of this V1NamespaceSpec. + Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#finalizers + + :param finalizers: The finalizers of this V1NamespaceSpec. + :type: list[str] + """ + + self._finalizers = finalizers + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_namespace_status.py b/k8sclient/models/v1_namespace_status.py new file mode 100644 index 000000000..fc00b29e0 --- /dev/null +++ b/k8sclient/models/v1_namespace_status.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1NamespaceStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, phase=None): + """ + V1NamespaceStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'phase': 'str' + } + + self.attribute_map = { + 'phase': 'phase' + } + + self._phase = phase + + + @property + def phase(self): + """ + Gets the phase of this V1NamespaceStatus. + Phase is the current lifecycle phase of the namespace. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#phases + + :return: The phase of this V1NamespaceStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1NamespaceStatus. + Phase is the current lifecycle phase of the namespace. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#phases + + :param phase: The phase of this V1NamespaceStatus. + :type: str + """ + + self._phase = phase + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_node.py b/k8sclient/models/v1_node.py new file mode 100644 index 000000000..b7202c5ea --- /dev/null +++ b/k8sclient/models/v1_node.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1Node(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1Node - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1NodeSpec', + 'status': 'V1NodeStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1Node. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1Node. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Node. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1Node. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1Node. + Spec defines the behavior of a node. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The spec of this V1Node. + :rtype: V1NodeSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1Node. + Spec defines the behavior of a node. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param spec: The spec of this V1Node. + :type: V1NodeSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1Node. + Most recently observed status of the node. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The status of this V1Node. + :rtype: V1NodeStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1Node. + Most recently observed status of the node. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param status: The status of this V1Node. + :type: V1NodeStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_node_address.py b/k8sclient/models/v1_node_address.py new file mode 100644 index 000000000..ceb177e38 --- /dev/null +++ b/k8sclient/models/v1_node_address.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1NodeAddress(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, address=None, type=None): + """ + V1NodeAddress - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'address': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'address': 'address', + 'type': 'type' + } + + self._address = address + self._type = type + + + @property + def address(self): + """ + Gets the address of this V1NodeAddress. + The node address. + + :return: The address of this V1NodeAddress. + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """ + Sets the address of this V1NodeAddress. + The node address. + + :param address: The address of this V1NodeAddress. + :type: str + """ + if address is None: + raise ValueError("Invalid value for `address`, must not be `None`") + + self._address = address + + @property + def type(self): + """ + Gets the type of this V1NodeAddress. + Node address type, one of Hostname, ExternalIP or InternalIP. + + :return: The type of this V1NodeAddress. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1NodeAddress. + Node address type, one of Hostname, ExternalIP or InternalIP. + + :param type: The type of this V1NodeAddress. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_node_condition.py b/k8sclient/models/v1_node_condition.py new file mode 100644 index 000000000..2c7a58060 --- /dev/null +++ b/k8sclient/models/v1_node_condition.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1NodeCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, last_heartbeat_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): + """ + V1NodeCondition - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'last_heartbeat_time': 'UnversionedTime', + 'last_transition_time': 'UnversionedTime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'last_heartbeat_time': 'lastHeartbeatTime', + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + self._last_heartbeat_time = last_heartbeat_time + self._last_transition_time = last_transition_time + self._message = message + self._reason = reason + self._status = status + self._type = type + + + @property + def last_heartbeat_time(self): + """ + Gets the last_heartbeat_time of this V1NodeCondition. + Last time we got an update on a given condition. + + :return: The last_heartbeat_time of this V1NodeCondition. + :rtype: UnversionedTime + """ + return self._last_heartbeat_time + + @last_heartbeat_time.setter + def last_heartbeat_time(self, last_heartbeat_time): + """ + Sets the last_heartbeat_time of this V1NodeCondition. + Last time we got an update on a given condition. + + :param last_heartbeat_time: The last_heartbeat_time of this V1NodeCondition. + :type: UnversionedTime + """ + + self._last_heartbeat_time = last_heartbeat_time + + @property + def last_transition_time(self): + """ + Gets the last_transition_time of this V1NodeCondition. + Last time the condition transit from one status to another. + + :return: The last_transition_time of this V1NodeCondition. + :rtype: UnversionedTime + """ + return self._last_transition_time + + @last_transition_time.setter + def last_transition_time(self, last_transition_time): + """ + Sets the last_transition_time of this V1NodeCondition. + Last time the condition transit from one status to another. + + :param last_transition_time: The last_transition_time of this V1NodeCondition. + :type: UnversionedTime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """ + Gets the message of this V1NodeCondition. + Human readable message indicating details about last transition. + + :return: The message of this V1NodeCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1NodeCondition. + Human readable message indicating details about last transition. + + :param message: The message of this V1NodeCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1NodeCondition. + (brief) reason for the condition's last transition. + + :return: The reason of this V1NodeCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1NodeCondition. + (brief) reason for the condition's last transition. + + :param reason: The reason of this V1NodeCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1NodeCondition. + Status of the condition, one of True, False, Unknown. + + :return: The status of this V1NodeCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1NodeCondition. + Status of the condition, one of True, False, Unknown. + + :param status: The status of this V1NodeCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1NodeCondition. + Type of node condition. + + :return: The type of this V1NodeCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1NodeCondition. + Type of node condition. + + :param type: The type of this V1NodeCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_node_daemon_endpoints.py b/k8sclient/models/v1_node_daemon_endpoints.py new file mode 100644 index 000000000..4dbe0d0cf --- /dev/null +++ b/k8sclient/models/v1_node_daemon_endpoints.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1NodeDaemonEndpoints(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, kubelet_endpoint=None): + """ + V1NodeDaemonEndpoints - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kubelet_endpoint': 'V1DaemonEndpoint' + } + + self.attribute_map = { + 'kubelet_endpoint': 'kubeletEndpoint' + } + + self._kubelet_endpoint = kubelet_endpoint + + + @property + def kubelet_endpoint(self): + """ + Gets the kubelet_endpoint of this V1NodeDaemonEndpoints. + Endpoint on which Kubelet is listening. + + :return: The kubelet_endpoint of this V1NodeDaemonEndpoints. + :rtype: V1DaemonEndpoint + """ + return self._kubelet_endpoint + + @kubelet_endpoint.setter + def kubelet_endpoint(self, kubelet_endpoint): + """ + Sets the kubelet_endpoint of this V1NodeDaemonEndpoints. + Endpoint on which Kubelet is listening. + + :param kubelet_endpoint: The kubelet_endpoint of this V1NodeDaemonEndpoints. + :type: V1DaemonEndpoint + """ + + self._kubelet_endpoint = kubelet_endpoint + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_node_list.py b/k8sclient/models/v1_node_list.py new file mode 100644 index 000000000..3c031bc0f --- /dev/null +++ b/k8sclient/models/v1_node_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1NodeList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1NodeList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1Node]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1NodeList. + List of nodes + + :return: The items of this V1NodeList. + :rtype: list[V1Node] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1NodeList. + List of nodes + + :param items: The items of this V1NodeList. + :type: list[V1Node] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1NodeList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this V1NodeList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1NodeList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1NodeList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_node_spec.py b/k8sclient/models/v1_node_spec.py new file mode 100644 index 000000000..853fb2a1f --- /dev/null +++ b/k8sclient/models/v1_node_spec.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1NodeSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, external_id=None, pod_cidr=None, provider_id=None, unschedulable=None): + """ + V1NodeSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'external_id': 'str', + 'pod_cidr': 'str', + 'provider_id': 'str', + 'unschedulable': 'bool' + } + + self.attribute_map = { + 'external_id': 'externalID', + 'pod_cidr': 'podCIDR', + 'provider_id': 'providerID', + 'unschedulable': 'unschedulable' + } + + self._external_id = external_id + self._pod_cidr = pod_cidr + self._provider_id = provider_id + self._unschedulable = unschedulable + + + @property + def external_id(self): + """ + Gets the external_id of this V1NodeSpec. + External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated. + + :return: The external_id of this V1NodeSpec. + :rtype: str + """ + return self._external_id + + @external_id.setter + def external_id(self, external_id): + """ + Sets the external_id of this V1NodeSpec. + External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated. + + :param external_id: The external_id of this V1NodeSpec. + :type: str + """ + + self._external_id = external_id + + @property + def pod_cidr(self): + """ + Gets the pod_cidr of this V1NodeSpec. + PodCIDR represents the pod IP range assigned to the node. + + :return: The pod_cidr of this V1NodeSpec. + :rtype: str + """ + return self._pod_cidr + + @pod_cidr.setter + def pod_cidr(self, pod_cidr): + """ + Sets the pod_cidr of this V1NodeSpec. + PodCIDR represents the pod IP range assigned to the node. + + :param pod_cidr: The pod_cidr of this V1NodeSpec. + :type: str + """ + + self._pod_cidr = pod_cidr + + @property + def provider_id(self): + """ + Gets the provider_id of this V1NodeSpec. + ID of the node assigned by the cloud provider in the format: :// + + :return: The provider_id of this V1NodeSpec. + :rtype: str + """ + return self._provider_id + + @provider_id.setter + def provider_id(self, provider_id): + """ + Sets the provider_id of this V1NodeSpec. + ID of the node assigned by the cloud provider in the format: :// + + :param provider_id: The provider_id of this V1NodeSpec. + :type: str + """ + + self._provider_id = provider_id + + @property + def unschedulable(self): + """ + Gets the unschedulable of this V1NodeSpec. + Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#manual-node-administration\"` + + :return: The unschedulable of this V1NodeSpec. + :rtype: bool + """ + return self._unschedulable + + @unschedulable.setter + def unschedulable(self, unschedulable): + """ + Sets the unschedulable of this V1NodeSpec. + Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#manual-node-administration\"` + + :param unschedulable: The unschedulable of this V1NodeSpec. + :type: bool + """ + + self._unschedulable = unschedulable + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_node_status.py b/k8sclient/models/v1_node_status.py new file mode 100644 index 000000000..07a18f6dc --- /dev/null +++ b/k8sclient/models/v1_node_status.py @@ -0,0 +1,360 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1NodeStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, addresses=None, allocatable=None, capacity=None, conditions=None, daemon_endpoints=None, images=None, node_info=None, phase=None, volumes_attached=None, volumes_in_use=None): + """ + V1NodeStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'addresses': 'list[V1NodeAddress]', + 'allocatable': 'dict(str, ResourceQuantity)', + 'capacity': 'dict(str, ResourceQuantity)', + 'conditions': 'list[V1NodeCondition]', + 'daemon_endpoints': 'V1NodeDaemonEndpoints', + 'images': 'list[V1ContainerImage]', + 'node_info': 'V1NodeSystemInfo', + 'phase': 'str', + 'volumes_attached': 'list[V1AttachedVolume]', + 'volumes_in_use': 'list[str]' + } + + self.attribute_map = { + 'addresses': 'addresses', + 'allocatable': 'allocatable', + 'capacity': 'capacity', + 'conditions': 'conditions', + 'daemon_endpoints': 'daemonEndpoints', + 'images': 'images', + 'node_info': 'nodeInfo', + 'phase': 'phase', + 'volumes_attached': 'volumesAttached', + 'volumes_in_use': 'volumesInUse' + } + + self._addresses = addresses + self._allocatable = allocatable + self._capacity = capacity + self._conditions = conditions + self._daemon_endpoints = daemon_endpoints + self._images = images + self._node_info = node_info + self._phase = phase + self._volumes_attached = volumes_attached + self._volumes_in_use = volumes_in_use + + + @property + def addresses(self): + """ + Gets the addresses of this V1NodeStatus. + List of addresses reachable to the node. Queried from cloud provider, if available. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-addresses + + :return: The addresses of this V1NodeStatus. + :rtype: list[V1NodeAddress] + """ + return self._addresses + + @addresses.setter + def addresses(self, addresses): + """ + Sets the addresses of this V1NodeStatus. + List of addresses reachable to the node. Queried from cloud provider, if available. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-addresses + + :param addresses: The addresses of this V1NodeStatus. + :type: list[V1NodeAddress] + """ + + self._addresses = addresses + + @property + def allocatable(self): + """ + Gets the allocatable of this V1NodeStatus. + Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. + + :return: The allocatable of this V1NodeStatus. + :rtype: dict(str, ResourceQuantity) + """ + return self._allocatable + + @allocatable.setter + def allocatable(self, allocatable): + """ + Sets the allocatable of this V1NodeStatus. + Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. + + :param allocatable: The allocatable of this V1NodeStatus. + :type: dict(str, ResourceQuantity) + """ + + self._allocatable = allocatable + + @property + def capacity(self): + """ + Gets the capacity of this V1NodeStatus. + Capacity represents the total resources of a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity for more details. + + :return: The capacity of this V1NodeStatus. + :rtype: dict(str, ResourceQuantity) + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """ + Sets the capacity of this V1NodeStatus. + Capacity represents the total resources of a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity for more details. + + :param capacity: The capacity of this V1NodeStatus. + :type: dict(str, ResourceQuantity) + """ + + self._capacity = capacity + + @property + def conditions(self): + """ + Gets the conditions of this V1NodeStatus. + Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-condition + + :return: The conditions of this V1NodeStatus. + :rtype: list[V1NodeCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1NodeStatus. + Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-condition + + :param conditions: The conditions of this V1NodeStatus. + :type: list[V1NodeCondition] + """ + + self._conditions = conditions + + @property + def daemon_endpoints(self): + """ + Gets the daemon_endpoints of this V1NodeStatus. + Endpoints of daemons running on the Node. + + :return: The daemon_endpoints of this V1NodeStatus. + :rtype: V1NodeDaemonEndpoints + """ + return self._daemon_endpoints + + @daemon_endpoints.setter + def daemon_endpoints(self, daemon_endpoints): + """ + Sets the daemon_endpoints of this V1NodeStatus. + Endpoints of daemons running on the Node. + + :param daemon_endpoints: The daemon_endpoints of this V1NodeStatus. + :type: V1NodeDaemonEndpoints + """ + + self._daemon_endpoints = daemon_endpoints + + @property + def images(self): + """ + Gets the images of this V1NodeStatus. + List of container images on this node + + :return: The images of this V1NodeStatus. + :rtype: list[V1ContainerImage] + """ + return self._images + + @images.setter + def images(self, images): + """ + Sets the images of this V1NodeStatus. + List of container images on this node + + :param images: The images of this V1NodeStatus. + :type: list[V1ContainerImage] + """ + + self._images = images + + @property + def node_info(self): + """ + Gets the node_info of this V1NodeStatus. + Set of ids/uuids to uniquely identify the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-info + + :return: The node_info of this V1NodeStatus. + :rtype: V1NodeSystemInfo + """ + return self._node_info + + @node_info.setter + def node_info(self, node_info): + """ + Sets the node_info of this V1NodeStatus. + Set of ids/uuids to uniquely identify the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-info + + :param node_info: The node_info of this V1NodeStatus. + :type: V1NodeSystemInfo + """ + + self._node_info = node_info + + @property + def phase(self): + """ + Gets the phase of this V1NodeStatus. + NodePhase is the recently observed lifecycle phase of the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-phase The field is never populated, and now is deprecated. + + :return: The phase of this V1NodeStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1NodeStatus. + NodePhase is the recently observed lifecycle phase of the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-phase The field is never populated, and now is deprecated. + + :param phase: The phase of this V1NodeStatus. + :type: str + """ + + self._phase = phase + + @property + def volumes_attached(self): + """ + Gets the volumes_attached of this V1NodeStatus. + List of volumes that are attached to the node. + + :return: The volumes_attached of this V1NodeStatus. + :rtype: list[V1AttachedVolume] + """ + return self._volumes_attached + + @volumes_attached.setter + def volumes_attached(self, volumes_attached): + """ + Sets the volumes_attached of this V1NodeStatus. + List of volumes that are attached to the node. + + :param volumes_attached: The volumes_attached of this V1NodeStatus. + :type: list[V1AttachedVolume] + """ + + self._volumes_attached = volumes_attached + + @property + def volumes_in_use(self): + """ + Gets the volumes_in_use of this V1NodeStatus. + List of attachable volumes in use (mounted) by the node. + + :return: The volumes_in_use of this V1NodeStatus. + :rtype: list[str] + """ + return self._volumes_in_use + + @volumes_in_use.setter + def volumes_in_use(self, volumes_in_use): + """ + Sets the volumes_in_use of this V1NodeStatus. + List of attachable volumes in use (mounted) by the node. + + :param volumes_in_use: The volumes_in_use of this V1NodeStatus. + :type: list[str] + """ + + self._volumes_in_use = volumes_in_use + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_node_system_info.py b/k8sclient/models/v1_node_system_info.py new file mode 100644 index 000000000..07a23f52c --- /dev/null +++ b/k8sclient/models/v1_node_system_info.py @@ -0,0 +1,380 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1NodeSystemInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, architecture=None, boot_id=None, container_runtime_version=None, kernel_version=None, kube_proxy_version=None, kubelet_version=None, machine_id=None, operating_system=None, os_image=None, system_uuid=None): + """ + V1NodeSystemInfo - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'architecture': 'str', + 'boot_id': 'str', + 'container_runtime_version': 'str', + 'kernel_version': 'str', + 'kube_proxy_version': 'str', + 'kubelet_version': 'str', + 'machine_id': 'str', + 'operating_system': 'str', + 'os_image': 'str', + 'system_uuid': 'str' + } + + self.attribute_map = { + 'architecture': 'architecture', + 'boot_id': 'bootID', + 'container_runtime_version': 'containerRuntimeVersion', + 'kernel_version': 'kernelVersion', + 'kube_proxy_version': 'kubeProxyVersion', + 'kubelet_version': 'kubeletVersion', + 'machine_id': 'machineID', + 'operating_system': 'operatingSystem', + 'os_image': 'osImage', + 'system_uuid': 'systemUUID' + } + + self._architecture = architecture + self._boot_id = boot_id + self._container_runtime_version = container_runtime_version + self._kernel_version = kernel_version + self._kube_proxy_version = kube_proxy_version + self._kubelet_version = kubelet_version + self._machine_id = machine_id + self._operating_system = operating_system + self._os_image = os_image + self._system_uuid = system_uuid + + + @property + def architecture(self): + """ + Gets the architecture of this V1NodeSystemInfo. + The Architecture reported by the node + + :return: The architecture of this V1NodeSystemInfo. + :rtype: str + """ + return self._architecture + + @architecture.setter + def architecture(self, architecture): + """ + Sets the architecture of this V1NodeSystemInfo. + The Architecture reported by the node + + :param architecture: The architecture of this V1NodeSystemInfo. + :type: str + """ + if architecture is None: + raise ValueError("Invalid value for `architecture`, must not be `None`") + + self._architecture = architecture + + @property + def boot_id(self): + """ + Gets the boot_id of this V1NodeSystemInfo. + Boot ID reported by the node. + + :return: The boot_id of this V1NodeSystemInfo. + :rtype: str + """ + return self._boot_id + + @boot_id.setter + def boot_id(self, boot_id): + """ + Sets the boot_id of this V1NodeSystemInfo. + Boot ID reported by the node. + + :param boot_id: The boot_id of this V1NodeSystemInfo. + :type: str + """ + if boot_id is None: + raise ValueError("Invalid value for `boot_id`, must not be `None`") + + self._boot_id = boot_id + + @property + def container_runtime_version(self): + """ + Gets the container_runtime_version of this V1NodeSystemInfo. + ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). + + :return: The container_runtime_version of this V1NodeSystemInfo. + :rtype: str + """ + return self._container_runtime_version + + @container_runtime_version.setter + def container_runtime_version(self, container_runtime_version): + """ + Sets the container_runtime_version of this V1NodeSystemInfo. + ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). + + :param container_runtime_version: The container_runtime_version of this V1NodeSystemInfo. + :type: str + """ + if container_runtime_version is None: + raise ValueError("Invalid value for `container_runtime_version`, must not be `None`") + + self._container_runtime_version = container_runtime_version + + @property + def kernel_version(self): + """ + Gets the kernel_version of this V1NodeSystemInfo. + Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). + + :return: The kernel_version of this V1NodeSystemInfo. + :rtype: str + """ + return self._kernel_version + + @kernel_version.setter + def kernel_version(self, kernel_version): + """ + Sets the kernel_version of this V1NodeSystemInfo. + Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). + + :param kernel_version: The kernel_version of this V1NodeSystemInfo. + :type: str + """ + if kernel_version is None: + raise ValueError("Invalid value for `kernel_version`, must not be `None`") + + self._kernel_version = kernel_version + + @property + def kube_proxy_version(self): + """ + Gets the kube_proxy_version of this V1NodeSystemInfo. + KubeProxy Version reported by the node. + + :return: The kube_proxy_version of this V1NodeSystemInfo. + :rtype: str + """ + return self._kube_proxy_version + + @kube_proxy_version.setter + def kube_proxy_version(self, kube_proxy_version): + """ + Sets the kube_proxy_version of this V1NodeSystemInfo. + KubeProxy Version reported by the node. + + :param kube_proxy_version: The kube_proxy_version of this V1NodeSystemInfo. + :type: str + """ + if kube_proxy_version is None: + raise ValueError("Invalid value for `kube_proxy_version`, must not be `None`") + + self._kube_proxy_version = kube_proxy_version + + @property + def kubelet_version(self): + """ + Gets the kubelet_version of this V1NodeSystemInfo. + Kubelet Version reported by the node. + + :return: The kubelet_version of this V1NodeSystemInfo. + :rtype: str + """ + return self._kubelet_version + + @kubelet_version.setter + def kubelet_version(self, kubelet_version): + """ + Sets the kubelet_version of this V1NodeSystemInfo. + Kubelet Version reported by the node. + + :param kubelet_version: The kubelet_version of this V1NodeSystemInfo. + :type: str + """ + if kubelet_version is None: + raise ValueError("Invalid value for `kubelet_version`, must not be `None`") + + self._kubelet_version = kubelet_version + + @property + def machine_id(self): + """ + Gets the machine_id of this V1NodeSystemInfo. + MachineID reported by the node. For unique machine identification in the cluster this field is prefered. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html + + :return: The machine_id of this V1NodeSystemInfo. + :rtype: str + """ + return self._machine_id + + @machine_id.setter + def machine_id(self, machine_id): + """ + Sets the machine_id of this V1NodeSystemInfo. + MachineID reported by the node. For unique machine identification in the cluster this field is prefered. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html + + :param machine_id: The machine_id of this V1NodeSystemInfo. + :type: str + """ + if machine_id is None: + raise ValueError("Invalid value for `machine_id`, must not be `None`") + + self._machine_id = machine_id + + @property + def operating_system(self): + """ + Gets the operating_system of this V1NodeSystemInfo. + The Operating System reported by the node + + :return: The operating_system of this V1NodeSystemInfo. + :rtype: str + """ + return self._operating_system + + @operating_system.setter + def operating_system(self, operating_system): + """ + Sets the operating_system of this V1NodeSystemInfo. + The Operating System reported by the node + + :param operating_system: The operating_system of this V1NodeSystemInfo. + :type: str + """ + if operating_system is None: + raise ValueError("Invalid value for `operating_system`, must not be `None`") + + self._operating_system = operating_system + + @property + def os_image(self): + """ + Gets the os_image of this V1NodeSystemInfo. + OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). + + :return: The os_image of this V1NodeSystemInfo. + :rtype: str + """ + return self._os_image + + @os_image.setter + def os_image(self, os_image): + """ + Sets the os_image of this V1NodeSystemInfo. + OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). + + :param os_image: The os_image of this V1NodeSystemInfo. + :type: str + """ + if os_image is None: + raise ValueError("Invalid value for `os_image`, must not be `None`") + + self._os_image = os_image + + @property + def system_uuid(self): + """ + Gets the system_uuid of this V1NodeSystemInfo. + SystemUUID reported by the node. For unique machine identification MachineID is prefered. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html + + :return: The system_uuid of this V1NodeSystemInfo. + :rtype: str + """ + return self._system_uuid + + @system_uuid.setter + def system_uuid(self, system_uuid): + """ + Sets the system_uuid of this V1NodeSystemInfo. + SystemUUID reported by the node. For unique machine identification MachineID is prefered. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html + + :param system_uuid: The system_uuid of this V1NodeSystemInfo. + :type: str + """ + if system_uuid is None: + raise ValueError("Invalid value for `system_uuid`, must not be `None`") + + self._system_uuid = system_uuid + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_object_field_selector.py b/k8sclient/models/v1_object_field_selector.py new file mode 100644 index 000000000..3f96a440e --- /dev/null +++ b/k8sclient/models/v1_object_field_selector.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ObjectFieldSelector(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, field_path=None): + """ + V1ObjectFieldSelector - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'field_path': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'field_path': 'fieldPath' + } + + self._api_version = api_version + self._field_path = field_path + + + @property + def api_version(self): + """ + Gets the api_version of this V1ObjectFieldSelector. + Version of the schema the FieldPath is written in terms of, defaults to \"v1\". + + :return: The api_version of this V1ObjectFieldSelector. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ObjectFieldSelector. + Version of the schema the FieldPath is written in terms of, defaults to \"v1\". + + :param api_version: The api_version of this V1ObjectFieldSelector. + :type: str + """ + + self._api_version = api_version + + @property + def field_path(self): + """ + Gets the field_path of this V1ObjectFieldSelector. + Path of the field to select in the specified API version. + + :return: The field_path of this V1ObjectFieldSelector. + :rtype: str + """ + return self._field_path + + @field_path.setter + def field_path(self, field_path): + """ + Sets the field_path of this V1ObjectFieldSelector. + Path of the field to select in the specified API version. + + :param field_path: The field_path of this V1ObjectFieldSelector. + :type: str + """ + if field_path is None: + raise ValueError("Invalid value for `field_path`, must not be `None`") + + self._field_path = field_path + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_object_meta.py b/k8sclient/models/v1_object_meta.py new file mode 100644 index 000000000..ea6ead241 --- /dev/null +++ b/k8sclient/models/v1_object_meta.py @@ -0,0 +1,490 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ObjectMeta(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, labels=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, uid=None): + """ + V1ObjectMeta - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'annotations': 'dict(str, str)', + 'cluster_name': 'str', + 'creation_timestamp': 'UnversionedTime', + 'deletion_grace_period_seconds': 'int', + 'deletion_timestamp': 'UnversionedTime', + 'finalizers': 'list[str]', + 'generate_name': 'str', + 'generation': 'int', + 'labels': 'dict(str, str)', + 'name': 'str', + 'namespace': 'str', + 'owner_references': 'list[V1OwnerReference]', + 'resource_version': 'str', + 'self_link': 'str', + 'uid': 'str' + } + + self.attribute_map = { + 'annotations': 'annotations', + 'cluster_name': 'clusterName', + 'creation_timestamp': 'creationTimestamp', + 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', + 'deletion_timestamp': 'deletionTimestamp', + 'finalizers': 'finalizers', + 'generate_name': 'generateName', + 'generation': 'generation', + 'labels': 'labels', + 'name': 'name', + 'namespace': 'namespace', + 'owner_references': 'ownerReferences', + 'resource_version': 'resourceVersion', + 'self_link': 'selfLink', + 'uid': 'uid' + } + + self._annotations = annotations + self._cluster_name = cluster_name + self._creation_timestamp = creation_timestamp + self._deletion_grace_period_seconds = deletion_grace_period_seconds + self._deletion_timestamp = deletion_timestamp + self._finalizers = finalizers + self._generate_name = generate_name + self._generation = generation + self._labels = labels + self._name = name + self._namespace = namespace + self._owner_references = owner_references + self._resource_version = resource_version + self._self_link = self_link + self._uid = uid + + + @property + def annotations(self): + """ + Gets the annotations of this V1ObjectMeta. + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + + :return: The annotations of this V1ObjectMeta. + :rtype: dict(str, str) + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """ + Sets the annotations of this V1ObjectMeta. + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + + :param annotations: The annotations of this V1ObjectMeta. + :type: dict(str, str) + """ + + self._annotations = annotations + + @property + def cluster_name(self): + """ + Gets the cluster_name of this V1ObjectMeta. + The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + + :return: The cluster_name of this V1ObjectMeta. + :rtype: str + """ + return self._cluster_name + + @cluster_name.setter + def cluster_name(self, cluster_name): + """ + Sets the cluster_name of this V1ObjectMeta. + The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + + :param cluster_name: The cluster_name of this V1ObjectMeta. + :type: str + """ + + self._cluster_name = cluster_name + + @property + def creation_timestamp(self): + """ + Gets the creation_timestamp of this V1ObjectMeta. + CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The creation_timestamp of this V1ObjectMeta. + :rtype: UnversionedTime + """ + return self._creation_timestamp + + @creation_timestamp.setter + def creation_timestamp(self, creation_timestamp): + """ + Sets the creation_timestamp of this V1ObjectMeta. + CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param creation_timestamp: The creation_timestamp of this V1ObjectMeta. + :type: UnversionedTime + """ + + self._creation_timestamp = creation_timestamp + + @property + def deletion_grace_period_seconds(self): + """ + Gets the deletion_grace_period_seconds of this V1ObjectMeta. + Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + + :return: The deletion_grace_period_seconds of this V1ObjectMeta. + :rtype: int + """ + return self._deletion_grace_period_seconds + + @deletion_grace_period_seconds.setter + def deletion_grace_period_seconds(self, deletion_grace_period_seconds): + """ + Sets the deletion_grace_period_seconds of this V1ObjectMeta. + Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + + :param deletion_grace_period_seconds: The deletion_grace_period_seconds of this V1ObjectMeta. + :type: int + """ + + self._deletion_grace_period_seconds = deletion_grace_period_seconds + + @property + def deletion_timestamp(self): + """ + Gets the deletion_timestamp of this V1ObjectMeta. + DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource will be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet will send a hard termination signal to the container. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The deletion_timestamp of this V1ObjectMeta. + :rtype: UnversionedTime + """ + return self._deletion_timestamp + + @deletion_timestamp.setter + def deletion_timestamp(self, deletion_timestamp): + """ + Sets the deletion_timestamp of this V1ObjectMeta. + DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource will be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet will send a hard termination signal to the container. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param deletion_timestamp: The deletion_timestamp of this V1ObjectMeta. + :type: UnversionedTime + """ + + self._deletion_timestamp = deletion_timestamp + + @property + def finalizers(self): + """ + Gets the finalizers of this V1ObjectMeta. + Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. + + :return: The finalizers of this V1ObjectMeta. + :rtype: list[str] + """ + return self._finalizers + + @finalizers.setter + def finalizers(self, finalizers): + """ + Sets the finalizers of this V1ObjectMeta. + Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. + + :param finalizers: The finalizers of this V1ObjectMeta. + :type: list[str] + """ + + self._finalizers = finalizers + + @property + def generate_name(self): + """ + Gets the generate_name of this V1ObjectMeta. + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency + + :return: The generate_name of this V1ObjectMeta. + :rtype: str + """ + return self._generate_name + + @generate_name.setter + def generate_name(self, generate_name): + """ + Sets the generate_name of this V1ObjectMeta. + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency + + :param generate_name: The generate_name of this V1ObjectMeta. + :type: str + """ + + self._generate_name = generate_name + + @property + def generation(self): + """ + Gets the generation of this V1ObjectMeta. + A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + + :return: The generation of this V1ObjectMeta. + :rtype: int + """ + return self._generation + + @generation.setter + def generation(self, generation): + """ + Sets the generation of this V1ObjectMeta. + A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + + :param generation: The generation of this V1ObjectMeta. + :type: int + """ + + self._generation = generation + + @property + def labels(self): + """ + Gets the labels of this V1ObjectMeta. + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + + :return: The labels of this V1ObjectMeta. + :rtype: dict(str, str) + """ + return self._labels + + @labels.setter + def labels(self, labels): + """ + Sets the labels of this V1ObjectMeta. + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + + :param labels: The labels of this V1ObjectMeta. + :type: dict(str, str) + """ + + self._labels = labels + + @property + def name(self): + """ + Gets the name of this V1ObjectMeta. + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :return: The name of this V1ObjectMeta. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ObjectMeta. + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :param name: The name of this V1ObjectMeta. + :type: str + """ + + self._name = name + + @property + def namespace(self): + """ + Gets the namespace of this V1ObjectMeta. + Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + + :return: The namespace of this V1ObjectMeta. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1ObjectMeta. + Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + + :param namespace: The namespace of this V1ObjectMeta. + :type: str + """ + + self._namespace = namespace + + @property + def owner_references(self): + """ + Gets the owner_references of this V1ObjectMeta. + List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + + :return: The owner_references of this V1ObjectMeta. + :rtype: list[V1OwnerReference] + """ + return self._owner_references + + @owner_references.setter + def owner_references(self, owner_references): + """ + Sets the owner_references of this V1ObjectMeta. + List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + + :param owner_references: The owner_references of this V1ObjectMeta. + :type: list[V1OwnerReference] + """ + + self._owner_references = owner_references + + @property + def resource_version(self): + """ + Gets the resource_version of this V1ObjectMeta. + An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency + + :return: The resource_version of this V1ObjectMeta. + :rtype: str + """ + return self._resource_version + + @resource_version.setter + def resource_version(self, resource_version): + """ + Sets the resource_version of this V1ObjectMeta. + An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency + + :param resource_version: The resource_version of this V1ObjectMeta. + :type: str + """ + + self._resource_version = resource_version + + @property + def self_link(self): + """ + Gets the self_link of this V1ObjectMeta. + SelfLink is a URL representing this object. Populated by the system. Read-only. + + :return: The self_link of this V1ObjectMeta. + :rtype: str + """ + return self._self_link + + @self_link.setter + def self_link(self, self_link): + """ + Sets the self_link of this V1ObjectMeta. + SelfLink is a URL representing this object. Populated by the system. Read-only. + + :param self_link: The self_link of this V1ObjectMeta. + :type: str + """ + + self._self_link = self_link + + @property + def uid(self): + """ + Gets the uid of this V1ObjectMeta. + UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + :return: The uid of this V1ObjectMeta. + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """ + Sets the uid of this V1ObjectMeta. + UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + :param uid: The uid of this V1ObjectMeta. + :type: str + """ + + self._uid = uid + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_object_reference.py b/k8sclient/models/v1_object_reference.py new file mode 100644 index 000000000..adb657b10 --- /dev/null +++ b/k8sclient/models/v1_object_reference.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ObjectReference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, field_path=None, kind=None, name=None, namespace=None, resource_version=None, uid=None): + """ + V1ObjectReference - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'field_path': 'str', + 'kind': 'str', + 'name': 'str', + 'namespace': 'str', + 'resource_version': 'str', + 'uid': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'field_path': 'fieldPath', + 'kind': 'kind', + 'name': 'name', + 'namespace': 'namespace', + 'resource_version': 'resourceVersion', + 'uid': 'uid' + } + + self._api_version = api_version + self._field_path = field_path + self._kind = kind + self._name = name + self._namespace = namespace + self._resource_version = resource_version + self._uid = uid + + + @property + def api_version(self): + """ + Gets the api_version of this V1ObjectReference. + API version of the referent. + + :return: The api_version of this V1ObjectReference. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ObjectReference. + API version of the referent. + + :param api_version: The api_version of this V1ObjectReference. + :type: str + """ + + self._api_version = api_version + + @property + def field_path(self): + """ + Gets the field_path of this V1ObjectReference. + If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + + :return: The field_path of this V1ObjectReference. + :rtype: str + """ + return self._field_path + + @field_path.setter + def field_path(self, field_path): + """ + Sets the field_path of this V1ObjectReference. + If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + + :param field_path: The field_path of this V1ObjectReference. + :type: str + """ + + self._field_path = field_path + + @property + def kind(self): + """ + Gets the kind of this V1ObjectReference. + Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ObjectReference. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ObjectReference. + Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ObjectReference. + :type: str + """ + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this V1ObjectReference. + Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :return: The name of this V1ObjectReference. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ObjectReference. + Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :param name: The name of this V1ObjectReference. + :type: str + """ + + self._name = name + + @property + def namespace(self): + """ + Gets the namespace of this V1ObjectReference. + Namespace of the referent. More info: http://kubernetes.io/docs/user-guide/namespaces + + :return: The namespace of this V1ObjectReference. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1ObjectReference. + Namespace of the referent. More info: http://kubernetes.io/docs/user-guide/namespaces + + :param namespace: The namespace of this V1ObjectReference. + :type: str + """ + + self._namespace = namespace + + @property + def resource_version(self): + """ + Gets the resource_version of this V1ObjectReference. + Specific resourceVersion to which this reference is made, if any. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency + + :return: The resource_version of this V1ObjectReference. + :rtype: str + """ + return self._resource_version + + @resource_version.setter + def resource_version(self, resource_version): + """ + Sets the resource_version of this V1ObjectReference. + Specific resourceVersion to which this reference is made, if any. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency + + :param resource_version: The resource_version of this V1ObjectReference. + :type: str + """ + + self._resource_version = resource_version + + @property + def uid(self): + """ + Gets the uid of this V1ObjectReference. + UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + :return: The uid of this V1ObjectReference. + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """ + Sets the uid of this V1ObjectReference. + UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + :param uid: The uid of this V1ObjectReference. + :type: str + """ + + self._uid = uid + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_owner_reference.py b/k8sclient/models/v1_owner_reference.py new file mode 100644 index 000000000..3b401b7ac --- /dev/null +++ b/k8sclient/models/v1_owner_reference.py @@ -0,0 +1,238 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1OwnerReference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, controller=None, kind=None, name=None, uid=None): + """ + V1OwnerReference - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'controller': 'bool', + 'kind': 'str', + 'name': 'str', + 'uid': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'controller': 'controller', + 'kind': 'kind', + 'name': 'name', + 'uid': 'uid' + } + + self._api_version = api_version + self._controller = controller + self._kind = kind + self._name = name + self._uid = uid + + + @property + def api_version(self): + """ + Gets the api_version of this V1OwnerReference. + API version of the referent. + + :return: The api_version of this V1OwnerReference. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1OwnerReference. + API version of the referent. + + :param api_version: The api_version of this V1OwnerReference. + :type: str + """ + if api_version is None: + raise ValueError("Invalid value for `api_version`, must not be `None`") + + self._api_version = api_version + + @property + def controller(self): + """ + Gets the controller of this V1OwnerReference. + If true, this reference points to the managing controller. + + :return: The controller of this V1OwnerReference. + :rtype: bool + """ + return self._controller + + @controller.setter + def controller(self, controller): + """ + Sets the controller of this V1OwnerReference. + If true, this reference points to the managing controller. + + :param controller: The controller of this V1OwnerReference. + :type: bool + """ + + self._controller = controller + + @property + def kind(self): + """ + Gets the kind of this V1OwnerReference. + Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1OwnerReference. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1OwnerReference. + Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1OwnerReference. + :type: str + """ + if kind is None: + raise ValueError("Invalid value for `kind`, must not be `None`") + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this V1OwnerReference. + Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :return: The name of this V1OwnerReference. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1OwnerReference. + Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :param name: The name of this V1OwnerReference. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def uid(self): + """ + Gets the uid of this V1OwnerReference. + UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + :return: The uid of this V1OwnerReference. + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """ + Sets the uid of this V1OwnerReference. + UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + :param uid: The uid of this V1OwnerReference. + :type: str + """ + if uid is None: + raise ValueError("Invalid value for `uid`, must not be `None`") + + self._uid = uid + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_persistent_volume.py b/k8sclient/models/v1_persistent_volume.py new file mode 100644 index 000000000..6cb326c9e --- /dev/null +++ b/k8sclient/models/v1_persistent_volume.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1PersistentVolume(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1PersistentVolume - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1PersistentVolumeSpec', + 'status': 'V1PersistentVolumeStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1PersistentVolume. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1PersistentVolume. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PersistentVolume. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1PersistentVolume. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1PersistentVolume. + Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes + + :return: The spec of this V1PersistentVolume. + :rtype: V1PersistentVolumeSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1PersistentVolume. + Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes + + :param spec: The spec of this V1PersistentVolume. + :type: V1PersistentVolumeSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1PersistentVolume. + Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes + + :return: The status of this V1PersistentVolume. + :rtype: V1PersistentVolumeStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1PersistentVolume. + Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes + + :param status: The status of this V1PersistentVolume. + :type: V1PersistentVolumeStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_persistent_volume_claim.py b/k8sclient/models/v1_persistent_volume_claim.py new file mode 100644 index 000000000..abccd330e --- /dev/null +++ b/k8sclient/models/v1_persistent_volume_claim.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1PersistentVolumeClaim(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1PersistentVolumeClaim - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1PersistentVolumeClaimSpec', + 'status': 'V1PersistentVolumeClaimStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1PersistentVolumeClaim. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1PersistentVolumeClaim. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PersistentVolumeClaim. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1PersistentVolumeClaim. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1PersistentVolumeClaim. + Spec defines the desired characteristics of a volume requested by a pod author. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims + + :return: The spec of this V1PersistentVolumeClaim. + :rtype: V1PersistentVolumeClaimSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1PersistentVolumeClaim. + Spec defines the desired characteristics of a volume requested by a pod author. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims + + :param spec: The spec of this V1PersistentVolumeClaim. + :type: V1PersistentVolumeClaimSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1PersistentVolumeClaim. + Status represents the current information/status of a persistent volume claim. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims + + :return: The status of this V1PersistentVolumeClaim. + :rtype: V1PersistentVolumeClaimStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1PersistentVolumeClaim. + Status represents the current information/status of a persistent volume claim. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims + + :param status: The status of this V1PersistentVolumeClaim. + :type: V1PersistentVolumeClaimStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_persistent_volume_claim_list.py b/k8sclient/models/v1_persistent_volume_claim_list.py new file mode 100644 index 000000000..8fc165e68 --- /dev/null +++ b/k8sclient/models/v1_persistent_volume_claim_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1PersistentVolumeClaimList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1PersistentVolumeClaimList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1PersistentVolumeClaim]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1PersistentVolumeClaimList. + A list of persistent volume claims. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims + + :return: The items of this V1PersistentVolumeClaimList. + :rtype: list[V1PersistentVolumeClaim] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1PersistentVolumeClaimList. + A list of persistent volume claims. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims + + :param items: The items of this V1PersistentVolumeClaimList. + :type: list[V1PersistentVolumeClaim] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1PersistentVolumeClaimList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this V1PersistentVolumeClaimList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PersistentVolumeClaimList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1PersistentVolumeClaimList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_persistent_volume_claim_spec.py b/k8sclient/models/v1_persistent_volume_claim_spec.py new file mode 100644 index 000000000..8000ccf3f --- /dev/null +++ b/k8sclient/models/v1_persistent_volume_claim_spec.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1PersistentVolumeClaimSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, access_modes=None, resources=None, selector=None, volume_name=None): + """ + V1PersistentVolumeClaimSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'access_modes': 'list[str]', + 'resources': 'V1ResourceRequirements', + 'selector': 'UnversionedLabelSelector', + 'volume_name': 'str' + } + + self.attribute_map = { + 'access_modes': 'accessModes', + 'resources': 'resources', + 'selector': 'selector', + 'volume_name': 'volumeName' + } + + self._access_modes = access_modes + self._resources = resources + self._selector = selector + self._volume_name = volume_name + + + @property + def access_modes(self): + """ + Gets the access_modes of this V1PersistentVolumeClaimSpec. + AccessModes contains the desired access modes the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1 + + :return: The access_modes of this V1PersistentVolumeClaimSpec. + :rtype: list[str] + """ + return self._access_modes + + @access_modes.setter + def access_modes(self, access_modes): + """ + Sets the access_modes of this V1PersistentVolumeClaimSpec. + AccessModes contains the desired access modes the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1 + + :param access_modes: The access_modes of this V1PersistentVolumeClaimSpec. + :type: list[str] + """ + + self._access_modes = access_modes + + @property + def resources(self): + """ + Gets the resources of this V1PersistentVolumeClaimSpec. + Resources represents the minimum resources the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources + + :return: The resources of this V1PersistentVolumeClaimSpec. + :rtype: V1ResourceRequirements + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this V1PersistentVolumeClaimSpec. + Resources represents the minimum resources the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources + + :param resources: The resources of this V1PersistentVolumeClaimSpec. + :type: V1ResourceRequirements + """ + + self._resources = resources + + @property + def selector(self): + """ + Gets the selector of this V1PersistentVolumeClaimSpec. + A label query over volumes to consider for binding. + + :return: The selector of this V1PersistentVolumeClaimSpec. + :rtype: UnversionedLabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1PersistentVolumeClaimSpec. + A label query over volumes to consider for binding. + + :param selector: The selector of this V1PersistentVolumeClaimSpec. + :type: UnversionedLabelSelector + """ + + self._selector = selector + + @property + def volume_name(self): + """ + Gets the volume_name of this V1PersistentVolumeClaimSpec. + VolumeName is the binding reference to the PersistentVolume backing this claim. + + :return: The volume_name of this V1PersistentVolumeClaimSpec. + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """ + Sets the volume_name of this V1PersistentVolumeClaimSpec. + VolumeName is the binding reference to the PersistentVolume backing this claim. + + :param volume_name: The volume_name of this V1PersistentVolumeClaimSpec. + :type: str + """ + + self._volume_name = volume_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_persistent_volume_claim_status.py b/k8sclient/models/v1_persistent_volume_claim_status.py new file mode 100644 index 000000000..d7d647497 --- /dev/null +++ b/k8sclient/models/v1_persistent_volume_claim_status.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1PersistentVolumeClaimStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, access_modes=None, capacity=None, phase=None): + """ + V1PersistentVolumeClaimStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'access_modes': 'list[str]', + 'capacity': 'dict(str, ResourceQuantity)', + 'phase': 'str' + } + + self.attribute_map = { + 'access_modes': 'accessModes', + 'capacity': 'capacity', + 'phase': 'phase' + } + + self._access_modes = access_modes + self._capacity = capacity + self._phase = phase + + + @property + def access_modes(self): + """ + Gets the access_modes of this V1PersistentVolumeClaimStatus. + AccessModes contains the actual access modes the volume backing the PVC has. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1 + + :return: The access_modes of this V1PersistentVolumeClaimStatus. + :rtype: list[str] + """ + return self._access_modes + + @access_modes.setter + def access_modes(self, access_modes): + """ + Sets the access_modes of this V1PersistentVolumeClaimStatus. + AccessModes contains the actual access modes the volume backing the PVC has. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1 + + :param access_modes: The access_modes of this V1PersistentVolumeClaimStatus. + :type: list[str] + """ + + self._access_modes = access_modes + + @property + def capacity(self): + """ + Gets the capacity of this V1PersistentVolumeClaimStatus. + Represents the actual resources of the underlying volume. + + :return: The capacity of this V1PersistentVolumeClaimStatus. + :rtype: dict(str, ResourceQuantity) + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """ + Sets the capacity of this V1PersistentVolumeClaimStatus. + Represents the actual resources of the underlying volume. + + :param capacity: The capacity of this V1PersistentVolumeClaimStatus. + :type: dict(str, ResourceQuantity) + """ + + self._capacity = capacity + + @property + def phase(self): + """ + Gets the phase of this V1PersistentVolumeClaimStatus. + Phase represents the current phase of PersistentVolumeClaim. + + :return: The phase of this V1PersistentVolumeClaimStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1PersistentVolumeClaimStatus. + Phase represents the current phase of PersistentVolumeClaim. + + :param phase: The phase of this V1PersistentVolumeClaimStatus. + :type: str + """ + + self._phase = phase + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_persistent_volume_list.py b/k8sclient/models/v1_persistent_volume_list.py new file mode 100644 index 000000000..271a8b1d6 --- /dev/null +++ b/k8sclient/models/v1_persistent_volume_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1PersistentVolumeList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1PersistentVolumeList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1PersistentVolume]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1PersistentVolumeList. + List of persistent volumes. More info: http://kubernetes.io/docs/user-guide/persistent-volumes + + :return: The items of this V1PersistentVolumeList. + :rtype: list[V1PersistentVolume] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1PersistentVolumeList. + List of persistent volumes. More info: http://kubernetes.io/docs/user-guide/persistent-volumes + + :param items: The items of this V1PersistentVolumeList. + :type: list[V1PersistentVolume] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1PersistentVolumeList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this V1PersistentVolumeList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PersistentVolumeList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1PersistentVolumeList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_persistent_volume_spec.py b/k8sclient/models/v1_persistent_volume_spec.py new file mode 100644 index 000000000..f247ecfeb --- /dev/null +++ b/k8sclient/models/v1_persistent_volume_spec.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1PersistentVolumeSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, access_modes=None, capacity=None, claim_ref=None, persistent_volume_reclaim_policy=None): + """ + V1PersistentVolumeSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'access_modes': 'list[str]', + 'capacity': 'dict(str, ResourceQuantity)', + 'claim_ref': 'V1ObjectReference', + 'persistent_volume_reclaim_policy': 'str' + } + + self.attribute_map = { + 'access_modes': 'accessModes', + 'capacity': 'capacity', + 'claim_ref': 'claimRef', + 'persistent_volume_reclaim_policy': 'persistentVolumeReclaimPolicy' + } + + self._access_modes = access_modes + self._capacity = capacity + self._claim_ref = claim_ref + self._persistent_volume_reclaim_policy = persistent_volume_reclaim_policy + + + @property + def access_modes(self): + """ + Gets the access_modes of this V1PersistentVolumeSpec. + AccessModes contains all ways the volume can be mounted. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes + + :return: The access_modes of this V1PersistentVolumeSpec. + :rtype: list[str] + """ + return self._access_modes + + @access_modes.setter + def access_modes(self, access_modes): + """ + Sets the access_modes of this V1PersistentVolumeSpec. + AccessModes contains all ways the volume can be mounted. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes + + :param access_modes: The access_modes of this V1PersistentVolumeSpec. + :type: list[str] + """ + + self._access_modes = access_modes + + @property + def capacity(self): + """ + Gets the capacity of this V1PersistentVolumeSpec. + A description of the persistent volume's resources and capacity. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity + + :return: The capacity of this V1PersistentVolumeSpec. + :rtype: dict(str, ResourceQuantity) + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """ + Sets the capacity of this V1PersistentVolumeSpec. + A description of the persistent volume's resources and capacity. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity + + :param capacity: The capacity of this V1PersistentVolumeSpec. + :type: dict(str, ResourceQuantity) + """ + + self._capacity = capacity + + @property + def claim_ref(self): + """ + Gets the claim_ref of this V1PersistentVolumeSpec. + ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#binding + + :return: The claim_ref of this V1PersistentVolumeSpec. + :rtype: V1ObjectReference + """ + return self._claim_ref + + @claim_ref.setter + def claim_ref(self, claim_ref): + """ + Sets the claim_ref of this V1PersistentVolumeSpec. + ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#binding + + :param claim_ref: The claim_ref of this V1PersistentVolumeSpec. + :type: V1ObjectReference + """ + + self._claim_ref = claim_ref + + @property + def persistent_volume_reclaim_policy(self): + """ + Gets the persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. + What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recycling must be supported by the volume plugin underlying this persistent volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#recycling-policy + + :return: The persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. + :rtype: str + """ + return self._persistent_volume_reclaim_policy + + @persistent_volume_reclaim_policy.setter + def persistent_volume_reclaim_policy(self, persistent_volume_reclaim_policy): + """ + Sets the persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. + What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recycling must be supported by the volume plugin underlying this persistent volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#recycling-policy + + :param persistent_volume_reclaim_policy: The persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. + :type: str + """ + + self._persistent_volume_reclaim_policy = persistent_volume_reclaim_policy + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_persistent_volume_status.py b/k8sclient/models/v1_persistent_volume_status.py new file mode 100644 index 000000000..cbcb1eb72 --- /dev/null +++ b/k8sclient/models/v1_persistent_volume_status.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1PersistentVolumeStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, message=None, phase=None, reason=None): + """ + V1PersistentVolumeStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'message': 'str', + 'phase': 'str', + 'reason': 'str' + } + + self.attribute_map = { + 'message': 'message', + 'phase': 'phase', + 'reason': 'reason' + } + + self._message = message + self._phase = phase + self._reason = reason + + + @property + def message(self): + """ + Gets the message of this V1PersistentVolumeStatus. + A human-readable message indicating details about why the volume is in this state. + + :return: The message of this V1PersistentVolumeStatus. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1PersistentVolumeStatus. + A human-readable message indicating details about why the volume is in this state. + + :param message: The message of this V1PersistentVolumeStatus. + :type: str + """ + + self._message = message + + @property + def phase(self): + """ + Gets the phase of this V1PersistentVolumeStatus. + Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#phase + + :return: The phase of this V1PersistentVolumeStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1PersistentVolumeStatus. + Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#phase + + :param phase: The phase of this V1PersistentVolumeStatus. + :type: str + """ + + self._phase = phase + + @property + def reason(self): + """ + Gets the reason of this V1PersistentVolumeStatus. + Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. + + :return: The reason of this V1PersistentVolumeStatus. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1PersistentVolumeStatus. + Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. + + :param reason: The reason of this V1PersistentVolumeStatus. + :type: str + """ + + self._reason = reason + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_pod.py b/k8sclient/models/v1_pod.py new file mode 100644 index 000000000..d2131a78e --- /dev/null +++ b/k8sclient/models/v1_pod.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1Pod(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1Pod - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1PodSpec', + 'status': 'V1PodStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1Pod. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1Pod. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Pod. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1Pod. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1Pod. + Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The spec of this V1Pod. + :rtype: V1PodSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1Pod. + Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param spec: The spec of this V1Pod. + :type: V1PodSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1Pod. + Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The status of this V1Pod. + :rtype: V1PodStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1Pod. + Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param status: The status of this V1Pod. + :type: V1PodStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_pod_condition.py b/k8sclient/models/v1_pod_condition.py new file mode 100644 index 000000000..7c78dc628 --- /dev/null +++ b/k8sclient/models/v1_pod_condition.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1PodCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): + """ + V1PodCondition - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'last_probe_time': 'UnversionedTime', + 'last_transition_time': 'UnversionedTime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'last_probe_time': 'lastProbeTime', + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + self._last_probe_time = last_probe_time + self._last_transition_time = last_transition_time + self._message = message + self._reason = reason + self._status = status + self._type = type + + + @property + def last_probe_time(self): + """ + Gets the last_probe_time of this V1PodCondition. + Last time we probed the condition. + + :return: The last_probe_time of this V1PodCondition. + :rtype: UnversionedTime + """ + return self._last_probe_time + + @last_probe_time.setter + def last_probe_time(self, last_probe_time): + """ + Sets the last_probe_time of this V1PodCondition. + Last time we probed the condition. + + :param last_probe_time: The last_probe_time of this V1PodCondition. + :type: UnversionedTime + """ + + self._last_probe_time = last_probe_time + + @property + def last_transition_time(self): + """ + Gets the last_transition_time of this V1PodCondition. + Last time the condition transitioned from one status to another. + + :return: The last_transition_time of this V1PodCondition. + :rtype: UnversionedTime + """ + return self._last_transition_time + + @last_transition_time.setter + def last_transition_time(self, last_transition_time): + """ + Sets the last_transition_time of this V1PodCondition. + Last time the condition transitioned from one status to another. + + :param last_transition_time: The last_transition_time of this V1PodCondition. + :type: UnversionedTime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """ + Gets the message of this V1PodCondition. + Human-readable message indicating details about last transition. + + :return: The message of this V1PodCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1PodCondition. + Human-readable message indicating details about last transition. + + :param message: The message of this V1PodCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1PodCondition. + Unique, one-word, CamelCase reason for the condition's last transition. + + :return: The reason of this V1PodCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1PodCondition. + Unique, one-word, CamelCase reason for the condition's last transition. + + :param reason: The reason of this V1PodCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1PodCondition. + Status is the status of the condition. Can be True, False, Unknown. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions + + :return: The status of this V1PodCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1PodCondition. + Status is the status of the condition. Can be True, False, Unknown. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions + + :param status: The status of this V1PodCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1PodCondition. + Type is the type of the condition. Currently only Ready. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions + + :return: The type of this V1PodCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1PodCondition. + Type is the type of the condition. Currently only Ready. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions + + :param type: The type of this V1PodCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_pod_list.py b/k8sclient/models/v1_pod_list.py new file mode 100644 index 000000000..4c95b5b23 --- /dev/null +++ b/k8sclient/models/v1_pod_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1PodList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1PodList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1Pod]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1PodList. + List of pods. More info: http://kubernetes.io/docs/user-guide/pods + + :return: The items of this V1PodList. + :rtype: list[V1Pod] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1PodList. + List of pods. More info: http://kubernetes.io/docs/user-guide/pods + + :param items: The items of this V1PodList. + :type: list[V1Pod] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1PodList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this V1PodList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PodList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1PodList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_pod_security_context.py b/k8sclient/models/v1_pod_security_context.py new file mode 100644 index 000000000..4ba7c696a --- /dev/null +++ b/k8sclient/models/v1_pod_security_context.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1PodSecurityContext(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, fs_group=None, run_as_non_root=None, run_as_user=None, se_linux_options=None, supplemental_groups=None): + """ + V1PodSecurityContext - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'fs_group': 'int', + 'run_as_non_root': 'bool', + 'run_as_user': 'int', + 'se_linux_options': 'V1SELinuxOptions', + 'supplemental_groups': 'list[int]' + } + + self.attribute_map = { + 'fs_group': 'fsGroup', + 'run_as_non_root': 'runAsNonRoot', + 'run_as_user': 'runAsUser', + 'se_linux_options': 'seLinuxOptions', + 'supplemental_groups': 'supplementalGroups' + } + + self._fs_group = fs_group + self._run_as_non_root = run_as_non_root + self._run_as_user = run_as_user + self._se_linux_options = se_linux_options + self._supplemental_groups = supplemental_groups + + + @property + def fs_group(self): + """ + Gets the fs_group of this V1PodSecurityContext. + A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. + + :return: The fs_group of this V1PodSecurityContext. + :rtype: int + """ + return self._fs_group + + @fs_group.setter + def fs_group(self, fs_group): + """ + Sets the fs_group of this V1PodSecurityContext. + A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. + + :param fs_group: The fs_group of this V1PodSecurityContext. + :type: int + """ + + self._fs_group = fs_group + + @property + def run_as_non_root(self): + """ + Gets the run_as_non_root of this V1PodSecurityContext. + Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + :return: The run_as_non_root of this V1PodSecurityContext. + :rtype: bool + """ + return self._run_as_non_root + + @run_as_non_root.setter + def run_as_non_root(self, run_as_non_root): + """ + Sets the run_as_non_root of this V1PodSecurityContext. + Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + :param run_as_non_root: The run_as_non_root of this V1PodSecurityContext. + :type: bool + """ + + self._run_as_non_root = run_as_non_root + + @property + def run_as_user(self): + """ + Gets the run_as_user of this V1PodSecurityContext. + The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + + :return: The run_as_user of this V1PodSecurityContext. + :rtype: int + """ + return self._run_as_user + + @run_as_user.setter + def run_as_user(self, run_as_user): + """ + Sets the run_as_user of this V1PodSecurityContext. + The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + + :param run_as_user: The run_as_user of this V1PodSecurityContext. + :type: int + """ + + self._run_as_user = run_as_user + + @property + def se_linux_options(self): + """ + Gets the se_linux_options of this V1PodSecurityContext. + The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + + :return: The se_linux_options of this V1PodSecurityContext. + :rtype: V1SELinuxOptions + """ + return self._se_linux_options + + @se_linux_options.setter + def se_linux_options(self, se_linux_options): + """ + Sets the se_linux_options of this V1PodSecurityContext. + The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + + :param se_linux_options: The se_linux_options of this V1PodSecurityContext. + :type: V1SELinuxOptions + """ + + self._se_linux_options = se_linux_options + + @property + def supplemental_groups(self): + """ + Gets the supplemental_groups of this V1PodSecurityContext. + A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + + :return: The supplemental_groups of this V1PodSecurityContext. + :rtype: list[int] + """ + return self._supplemental_groups + + @supplemental_groups.setter + def supplemental_groups(self, supplemental_groups): + """ + Sets the supplemental_groups of this V1PodSecurityContext. + A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + + :param supplemental_groups: The supplemental_groups of this V1PodSecurityContext. + :type: list[int] + """ + + self._supplemental_groups = supplemental_groups + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_pod_spec.py b/k8sclient/models/v1_pod_spec.py new file mode 100644 index 000000000..d8434642c --- /dev/null +++ b/k8sclient/models/v1_pod_spec.py @@ -0,0 +1,544 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1PodSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, active_deadline_seconds=None, containers=None, dns_policy=None, host_ipc=None, host_network=None, host_pid=None, hostname=None, image_pull_secrets=None, node_name=None, node_selector=None, restart_policy=None, security_context=None, service_account=None, service_account_name=None, subdomain=None, termination_grace_period_seconds=None, volumes=None): + """ + V1PodSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'active_deadline_seconds': 'int', + 'containers': 'list[V1Container]', + 'dns_policy': 'str', + 'host_ipc': 'bool', + 'host_network': 'bool', + 'host_pid': 'bool', + 'hostname': 'str', + 'image_pull_secrets': 'list[V1LocalObjectReference]', + 'node_name': 'str', + 'node_selector': 'dict(str, str)', + 'restart_policy': 'str', + 'security_context': 'V1PodSecurityContext', + 'service_account': 'str', + 'service_account_name': 'str', + 'subdomain': 'str', + 'termination_grace_period_seconds': 'int', + 'volumes': 'list[V1Volume]' + } + + self.attribute_map = { + 'active_deadline_seconds': 'activeDeadlineSeconds', + 'containers': 'containers', + 'dns_policy': 'dnsPolicy', + 'host_ipc': 'hostIPC', + 'host_network': 'hostNetwork', + 'host_pid': 'hostPID', + 'hostname': 'hostname', + 'image_pull_secrets': 'imagePullSecrets', + 'node_name': 'nodeName', + 'node_selector': 'nodeSelector', + 'restart_policy': 'restartPolicy', + 'security_context': 'securityContext', + 'service_account': 'serviceAccount', + 'service_account_name': 'serviceAccountName', + 'subdomain': 'subdomain', + 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', + 'volumes': 'volumes' + } + + self._active_deadline_seconds = active_deadline_seconds + self._containers = containers + self._dns_policy = dns_policy + self._host_ipc = host_ipc + self._host_network = host_network + self._host_pid = host_pid + self._hostname = hostname + self._image_pull_secrets = image_pull_secrets + self._node_name = node_name + self._node_selector = node_selector + self._restart_policy = restart_policy + self._security_context = security_context + self._service_account = service_account + self._service_account_name = service_account_name + self._subdomain = subdomain + self._termination_grace_period_seconds = termination_grace_period_seconds + self._volumes = volumes + + + @property + def active_deadline_seconds(self): + """ + Gets the active_deadline_seconds of this V1PodSpec. + Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + + :return: The active_deadline_seconds of this V1PodSpec. + :rtype: int + """ + return self._active_deadline_seconds + + @active_deadline_seconds.setter + def active_deadline_seconds(self, active_deadline_seconds): + """ + Sets the active_deadline_seconds of this V1PodSpec. + Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + + :param active_deadline_seconds: The active_deadline_seconds of this V1PodSpec. + :type: int + """ + + self._active_deadline_seconds = active_deadline_seconds + + @property + def containers(self): + """ + Gets the containers of this V1PodSpec. + List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers + + :return: The containers of this V1PodSpec. + :rtype: list[V1Container] + """ + return self._containers + + @containers.setter + def containers(self, containers): + """ + Sets the containers of this V1PodSpec. + List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers + + :param containers: The containers of this V1PodSpec. + :type: list[V1Container] + """ + if containers is None: + raise ValueError("Invalid value for `containers`, must not be `None`") + + self._containers = containers + + @property + def dns_policy(self): + """ + Gets the dns_policy of this V1PodSpec. + Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". + + :return: The dns_policy of this V1PodSpec. + :rtype: str + """ + return self._dns_policy + + @dns_policy.setter + def dns_policy(self, dns_policy): + """ + Sets the dns_policy of this V1PodSpec. + Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". + + :param dns_policy: The dns_policy of this V1PodSpec. + :type: str + """ + + self._dns_policy = dns_policy + + @property + def host_ipc(self): + """ + Gets the host_ipc of this V1PodSpec. + Use the host's ipc namespace. Optional: Default to false. + + :return: The host_ipc of this V1PodSpec. + :rtype: bool + """ + return self._host_ipc + + @host_ipc.setter + def host_ipc(self, host_ipc): + """ + Sets the host_ipc of this V1PodSpec. + Use the host's ipc namespace. Optional: Default to false. + + :param host_ipc: The host_ipc of this V1PodSpec. + :type: bool + """ + + self._host_ipc = host_ipc + + @property + def host_network(self): + """ + Gets the host_network of this V1PodSpec. + Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + + :return: The host_network of this V1PodSpec. + :rtype: bool + """ + return self._host_network + + @host_network.setter + def host_network(self, host_network): + """ + Sets the host_network of this V1PodSpec. + Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + + :param host_network: The host_network of this V1PodSpec. + :type: bool + """ + + self._host_network = host_network + + @property + def host_pid(self): + """ + Gets the host_pid of this V1PodSpec. + Use the host's pid namespace. Optional: Default to false. + + :return: The host_pid of this V1PodSpec. + :rtype: bool + """ + return self._host_pid + + @host_pid.setter + def host_pid(self, host_pid): + """ + Sets the host_pid of this V1PodSpec. + Use the host's pid namespace. Optional: Default to false. + + :param host_pid: The host_pid of this V1PodSpec. + :type: bool + """ + + self._host_pid = host_pid + + @property + def hostname(self): + """ + Gets the hostname of this V1PodSpec. + Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + + :return: The hostname of this V1PodSpec. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """ + Sets the hostname of this V1PodSpec. + Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + + :param hostname: The hostname of this V1PodSpec. + :type: str + """ + + self._hostname = hostname + + @property + def image_pull_secrets(self): + """ + Gets the image_pull_secrets of this V1PodSpec. + ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod + + :return: The image_pull_secrets of this V1PodSpec. + :rtype: list[V1LocalObjectReference] + """ + return self._image_pull_secrets + + @image_pull_secrets.setter + def image_pull_secrets(self, image_pull_secrets): + """ + Sets the image_pull_secrets of this V1PodSpec. + ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod + + :param image_pull_secrets: The image_pull_secrets of this V1PodSpec. + :type: list[V1LocalObjectReference] + """ + + self._image_pull_secrets = image_pull_secrets + + @property + def node_name(self): + """ + Gets the node_name of this V1PodSpec. + NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + + :return: The node_name of this V1PodSpec. + :rtype: str + """ + return self._node_name + + @node_name.setter + def node_name(self, node_name): + """ + Sets the node_name of this V1PodSpec. + NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + + :param node_name: The node_name of this V1PodSpec. + :type: str + """ + + self._node_name = node_name + + @property + def node_selector(self): + """ + Gets the node_selector of this V1PodSpec. + NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://kubernetes.io/docs/user-guide/node-selection/README + + :return: The node_selector of this V1PodSpec. + :rtype: dict(str, str) + """ + return self._node_selector + + @node_selector.setter + def node_selector(self, node_selector): + """ + Sets the node_selector of this V1PodSpec. + NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://kubernetes.io/docs/user-guide/node-selection/README + + :param node_selector: The node_selector of this V1PodSpec. + :type: dict(str, str) + """ + + self._node_selector = node_selector + + @property + def restart_policy(self): + """ + Gets the restart_policy of this V1PodSpec. + Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://kubernetes.io/docs/user-guide/pod-states#restartpolicy + + :return: The restart_policy of this V1PodSpec. + :rtype: str + """ + return self._restart_policy + + @restart_policy.setter + def restart_policy(self, restart_policy): + """ + Sets the restart_policy of this V1PodSpec. + Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://kubernetes.io/docs/user-guide/pod-states#restartpolicy + + :param restart_policy: The restart_policy of this V1PodSpec. + :type: str + """ + + self._restart_policy = restart_policy + + @property + def security_context(self): + """ + Gets the security_context of this V1PodSpec. + SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + + :return: The security_context of this V1PodSpec. + :rtype: V1PodSecurityContext + """ + return self._security_context + + @security_context.setter + def security_context(self, security_context): + """ + Sets the security_context of this V1PodSpec. + SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + + :param security_context: The security_context of this V1PodSpec. + :type: V1PodSecurityContext + """ + + self._security_context = security_context + + @property + def service_account(self): + """ + Gets the service_account of this V1PodSpec. + DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + + :return: The service_account of this V1PodSpec. + :rtype: str + """ + return self._service_account + + @service_account.setter + def service_account(self, service_account): + """ + Sets the service_account of this V1PodSpec. + DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + + :param service_account: The service_account of this V1PodSpec. + :type: str + """ + + self._service_account = service_account + + @property + def service_account_name(self): + """ + Gets the service_account_name of this V1PodSpec. + ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md + + :return: The service_account_name of this V1PodSpec. + :rtype: str + """ + return self._service_account_name + + @service_account_name.setter + def service_account_name(self, service_account_name): + """ + Sets the service_account_name of this V1PodSpec. + ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md + + :param service_account_name: The service_account_name of this V1PodSpec. + :type: str + """ + + self._service_account_name = service_account_name + + @property + def subdomain(self): + """ + Gets the subdomain of this V1PodSpec. + If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all. + + :return: The subdomain of this V1PodSpec. + :rtype: str + """ + return self._subdomain + + @subdomain.setter + def subdomain(self, subdomain): + """ + Sets the subdomain of this V1PodSpec. + If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all. + + :param subdomain: The subdomain of this V1PodSpec. + :type: str + """ + + self._subdomain = subdomain + + @property + def termination_grace_period_seconds(self): + """ + Gets the termination_grace_period_seconds of this V1PodSpec. + Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + + :return: The termination_grace_period_seconds of this V1PodSpec. + :rtype: int + """ + return self._termination_grace_period_seconds + + @termination_grace_period_seconds.setter + def termination_grace_period_seconds(self, termination_grace_period_seconds): + """ + Sets the termination_grace_period_seconds of this V1PodSpec. + Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + + :param termination_grace_period_seconds: The termination_grace_period_seconds of this V1PodSpec. + :type: int + """ + + self._termination_grace_period_seconds = termination_grace_period_seconds + + @property + def volumes(self): + """ + Gets the volumes of this V1PodSpec. + List of volumes that can be mounted by containers belonging to the pod. More info: http://kubernetes.io/docs/user-guide/volumes + + :return: The volumes of this V1PodSpec. + :rtype: list[V1Volume] + """ + return self._volumes + + @volumes.setter + def volumes(self, volumes): + """ + Sets the volumes of this V1PodSpec. + List of volumes that can be mounted by containers belonging to the pod. More info: http://kubernetes.io/docs/user-guide/volumes + + :param volumes: The volumes of this V1PodSpec. + :type: list[V1Volume] + """ + + self._volumes = volumes + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_pod_status.py b/k8sclient/models/v1_pod_status.py new file mode 100644 index 000000000..c802161a7 --- /dev/null +++ b/k8sclient/models/v1_pod_status.py @@ -0,0 +1,308 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1PodStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, conditions=None, container_statuses=None, host_ip=None, message=None, phase=None, pod_ip=None, reason=None, start_time=None): + """ + V1PodStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'conditions': 'list[V1PodCondition]', + 'container_statuses': 'list[V1ContainerStatus]', + 'host_ip': 'str', + 'message': 'str', + 'phase': 'str', + 'pod_ip': 'str', + 'reason': 'str', + 'start_time': 'UnversionedTime' + } + + self.attribute_map = { + 'conditions': 'conditions', + 'container_statuses': 'containerStatuses', + 'host_ip': 'hostIP', + 'message': 'message', + 'phase': 'phase', + 'pod_ip': 'podIP', + 'reason': 'reason', + 'start_time': 'startTime' + } + + self._conditions = conditions + self._container_statuses = container_statuses + self._host_ip = host_ip + self._message = message + self._phase = phase + self._pod_ip = pod_ip + self._reason = reason + self._start_time = start_time + + + @property + def conditions(self): + """ + Gets the conditions of this V1PodStatus. + Current service state of pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions + + :return: The conditions of this V1PodStatus. + :rtype: list[V1PodCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1PodStatus. + Current service state of pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions + + :param conditions: The conditions of this V1PodStatus. + :type: list[V1PodCondition] + """ + + self._conditions = conditions + + @property + def container_statuses(self): + """ + Gets the container_statuses of this V1PodStatus. + The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses + + :return: The container_statuses of this V1PodStatus. + :rtype: list[V1ContainerStatus] + """ + return self._container_statuses + + @container_statuses.setter + def container_statuses(self, container_statuses): + """ + Sets the container_statuses of this V1PodStatus. + The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses + + :param container_statuses: The container_statuses of this V1PodStatus. + :type: list[V1ContainerStatus] + """ + + self._container_statuses = container_statuses + + @property + def host_ip(self): + """ + Gets the host_ip of this V1PodStatus. + IP address of the host to which the pod is assigned. Empty if not yet scheduled. + + :return: The host_ip of this V1PodStatus. + :rtype: str + """ + return self._host_ip + + @host_ip.setter + def host_ip(self, host_ip): + """ + Sets the host_ip of this V1PodStatus. + IP address of the host to which the pod is assigned. Empty if not yet scheduled. + + :param host_ip: The host_ip of this V1PodStatus. + :type: str + """ + + self._host_ip = host_ip + + @property + def message(self): + """ + Gets the message of this V1PodStatus. + A human readable message indicating details about why the pod is in this condition. + + :return: The message of this V1PodStatus. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1PodStatus. + A human readable message indicating details about why the pod is in this condition. + + :param message: The message of this V1PodStatus. + :type: str + """ + + self._message = message + + @property + def phase(self): + """ + Gets the phase of this V1PodStatus. + Current condition of the pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-phase + + :return: The phase of this V1PodStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1PodStatus. + Current condition of the pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-phase + + :param phase: The phase of this V1PodStatus. + :type: str + """ + + self._phase = phase + + @property + def pod_ip(self): + """ + Gets the pod_ip of this V1PodStatus. + IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. + + :return: The pod_ip of this V1PodStatus. + :rtype: str + """ + return self._pod_ip + + @pod_ip.setter + def pod_ip(self, pod_ip): + """ + Sets the pod_ip of this V1PodStatus. + IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. + + :param pod_ip: The pod_ip of this V1PodStatus. + :type: str + """ + + self._pod_ip = pod_ip + + @property + def reason(self): + """ + Gets the reason of this V1PodStatus. + A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk' + + :return: The reason of this V1PodStatus. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1PodStatus. + A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk' + + :param reason: The reason of this V1PodStatus. + :type: str + """ + + self._reason = reason + + @property + def start_time(self): + """ + Gets the start_time of this V1PodStatus. + RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. + + :return: The start_time of this V1PodStatus. + :rtype: UnversionedTime + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """ + Sets the start_time of this V1PodStatus. + RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. + + :param start_time: The start_time of this V1PodStatus. + :type: UnversionedTime + """ + + self._start_time = start_time + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_pod_template.py b/k8sclient/models/v1_pod_template.py new file mode 100644 index 000000000..e7984f9d8 --- /dev/null +++ b/k8sclient/models/v1_pod_template.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1PodTemplate(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, template=None): + """ + V1PodTemplate - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'template': 'V1PodTemplateSpec' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'template': 'template' + } + + self._metadata = metadata + self._template = template + + + @property + def metadata(self): + """ + Gets the metadata of this V1PodTemplate. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1PodTemplate. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PodTemplate. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1PodTemplate. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def template(self): + """ + Gets the template of this V1PodTemplate. + Template defines the pods that will be created from this pod template. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The template of this V1PodTemplate. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1PodTemplate. + Template defines the pods that will be created from this pod template. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param template: The template of this V1PodTemplate. + :type: V1PodTemplateSpec + """ + + self._template = template + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_pod_template_list.py b/k8sclient/models/v1_pod_template_list.py new file mode 100644 index 000000000..6326cd72a --- /dev/null +++ b/k8sclient/models/v1_pod_template_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1PodTemplateList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1PodTemplateList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1PodTemplate]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1PodTemplateList. + List of pod templates + + :return: The items of this V1PodTemplateList. + :rtype: list[V1PodTemplate] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1PodTemplateList. + List of pod templates + + :param items: The items of this V1PodTemplateList. + :type: list[V1PodTemplate] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1PodTemplateList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this V1PodTemplateList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PodTemplateList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1PodTemplateList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_pod_template_spec.py b/k8sclient/models/v1_pod_template_spec.py new file mode 100644 index 000000000..dffd05d83 --- /dev/null +++ b/k8sclient/models/v1_pod_template_spec.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1PodTemplateSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None): + """ + V1PodTemplateSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1PodSpec' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec' + } + + self._metadata = metadata + self._spec = spec + + + @property + def metadata(self): + """ + Gets the metadata of this V1PodTemplateSpec. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1PodTemplateSpec. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PodTemplateSpec. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1PodTemplateSpec. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1PodTemplateSpec. + Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The spec of this V1PodTemplateSpec. + :rtype: V1PodSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1PodTemplateSpec. + Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param spec: The spec of this V1PodTemplateSpec. + :type: V1PodSpec + """ + + self._spec = spec + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_preconditions.py b/k8sclient/models/v1_preconditions.py new file mode 100644 index 000000000..7e738e85c --- /dev/null +++ b/k8sclient/models/v1_preconditions.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1Preconditions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, uid=None): + """ + V1Preconditions - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'uid': 'str' + } + + self.attribute_map = { + 'uid': 'uid' + } + + self._uid = uid + + + @property + def uid(self): + """ + Gets the uid of this V1Preconditions. + Specifies the target UID. + + :return: The uid of this V1Preconditions. + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """ + Sets the uid of this V1Preconditions. + Specifies the target UID. + + :param uid: The uid of this V1Preconditions. + :type: str + """ + + self._uid = uid + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_probe.py b/k8sclient/models/v1_probe.py new file mode 100644 index 000000000..03cbde29e --- /dev/null +++ b/k8sclient/models/v1_probe.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1Probe(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, failure_threshold=None, initial_delay_seconds=None, period_seconds=None, success_threshold=None, timeout_seconds=None): + """ + V1Probe - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'failure_threshold': 'int', + 'initial_delay_seconds': 'int', + 'period_seconds': 'int', + 'success_threshold': 'int', + 'timeout_seconds': 'int' + } + + self.attribute_map = { + 'failure_threshold': 'failureThreshold', + 'initial_delay_seconds': 'initialDelaySeconds', + 'period_seconds': 'periodSeconds', + 'success_threshold': 'successThreshold', + 'timeout_seconds': 'timeoutSeconds' + } + + self._failure_threshold = failure_threshold + self._initial_delay_seconds = initial_delay_seconds + self._period_seconds = period_seconds + self._success_threshold = success_threshold + self._timeout_seconds = timeout_seconds + + + @property + def failure_threshold(self): + """ + Gets the failure_threshold of this V1Probe. + Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + + :return: The failure_threshold of this V1Probe. + :rtype: int + """ + return self._failure_threshold + + @failure_threshold.setter + def failure_threshold(self, failure_threshold): + """ + Sets the failure_threshold of this V1Probe. + Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + + :param failure_threshold: The failure_threshold of this V1Probe. + :type: int + """ + + self._failure_threshold = failure_threshold + + @property + def initial_delay_seconds(self): + """ + Gets the initial_delay_seconds of this V1Probe. + Number of seconds after the container has started before liveness probes are initiated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes + + :return: The initial_delay_seconds of this V1Probe. + :rtype: int + """ + return self._initial_delay_seconds + + @initial_delay_seconds.setter + def initial_delay_seconds(self, initial_delay_seconds): + """ + Sets the initial_delay_seconds of this V1Probe. + Number of seconds after the container has started before liveness probes are initiated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes + + :param initial_delay_seconds: The initial_delay_seconds of this V1Probe. + :type: int + """ + + self._initial_delay_seconds = initial_delay_seconds + + @property + def period_seconds(self): + """ + Gets the period_seconds of this V1Probe. + How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + + :return: The period_seconds of this V1Probe. + :rtype: int + """ + return self._period_seconds + + @period_seconds.setter + def period_seconds(self, period_seconds): + """ + Sets the period_seconds of this V1Probe. + How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + + :param period_seconds: The period_seconds of this V1Probe. + :type: int + """ + + self._period_seconds = period_seconds + + @property + def success_threshold(self): + """ + Gets the success_threshold of this V1Probe. + Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. + + :return: The success_threshold of this V1Probe. + :rtype: int + """ + return self._success_threshold + + @success_threshold.setter + def success_threshold(self, success_threshold): + """ + Sets the success_threshold of this V1Probe. + Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. + + :param success_threshold: The success_threshold of this V1Probe. + :type: int + """ + + self._success_threshold = success_threshold + + @property + def timeout_seconds(self): + """ + Gets the timeout_seconds of this V1Probe. + Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes + + :return: The timeout_seconds of this V1Probe. + :rtype: int + """ + return self._timeout_seconds + + @timeout_seconds.setter + def timeout_seconds(self, timeout_seconds): + """ + Sets the timeout_seconds of this V1Probe. + Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes + + :param timeout_seconds: The timeout_seconds of this V1Probe. + :type: int + """ + + self._timeout_seconds = timeout_seconds + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_replication_controller.py b/k8sclient/models/v1_replication_controller.py new file mode 100644 index 000000000..642fc5714 --- /dev/null +++ b/k8sclient/models/v1_replication_controller.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ReplicationController(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1ReplicationController - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ReplicationControllerSpec', + 'status': 'V1ReplicationControllerStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1ReplicationController. + If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1ReplicationController. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ReplicationController. + If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1ReplicationController. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1ReplicationController. + Spec defines the specification of the desired behavior of the replication controller. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The spec of this V1ReplicationController. + :rtype: V1ReplicationControllerSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1ReplicationController. + Spec defines the specification of the desired behavior of the replication controller. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param spec: The spec of this V1ReplicationController. + :type: V1ReplicationControllerSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1ReplicationController. + Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The status of this V1ReplicationController. + :rtype: V1ReplicationControllerStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1ReplicationController. + Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param status: The status of this V1ReplicationController. + :type: V1ReplicationControllerStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_replication_controller_condition.py b/k8sclient/models/v1_replication_controller_condition.py new file mode 100644 index 000000000..ebac1a043 --- /dev/null +++ b/k8sclient/models/v1_replication_controller_condition.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ReplicationControllerCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): + """ + V1ReplicationControllerCondition - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'last_transition_time': 'UnversionedTime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + self._last_transition_time = last_transition_time + self._message = message + self._reason = reason + self._status = status + self._type = type + + + @property + def last_transition_time(self): + """ + Gets the last_transition_time of this V1ReplicationControllerCondition. + The last time the condition transitioned from one status to another. + + :return: The last_transition_time of this V1ReplicationControllerCondition. + :rtype: UnversionedTime + """ + return self._last_transition_time + + @last_transition_time.setter + def last_transition_time(self, last_transition_time): + """ + Sets the last_transition_time of this V1ReplicationControllerCondition. + The last time the condition transitioned from one status to another. + + :param last_transition_time: The last_transition_time of this V1ReplicationControllerCondition. + :type: UnversionedTime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """ + Gets the message of this V1ReplicationControllerCondition. + A human readable message indicating details about the transition. + + :return: The message of this V1ReplicationControllerCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1ReplicationControllerCondition. + A human readable message indicating details about the transition. + + :param message: The message of this V1ReplicationControllerCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1ReplicationControllerCondition. + The reason for the condition's last transition. + + :return: The reason of this V1ReplicationControllerCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1ReplicationControllerCondition. + The reason for the condition's last transition. + + :param reason: The reason of this V1ReplicationControllerCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1ReplicationControllerCondition. + Status of the condition, one of True, False, Unknown. + + :return: The status of this V1ReplicationControllerCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1ReplicationControllerCondition. + Status of the condition, one of True, False, Unknown. + + :param status: The status of this V1ReplicationControllerCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1ReplicationControllerCondition. + Type of replication controller condition. + + :return: The type of this V1ReplicationControllerCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1ReplicationControllerCondition. + Type of replication controller condition. + + :param type: The type of this V1ReplicationControllerCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_replication_controller_list.py b/k8sclient/models/v1_replication_controller_list.py new file mode 100644 index 000000000..353f4d231 --- /dev/null +++ b/k8sclient/models/v1_replication_controller_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ReplicationControllerList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1ReplicationControllerList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1ReplicationController]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1ReplicationControllerList. + List of replication controllers. More info: http://kubernetes.io/docs/user-guide/replication-controller + + :return: The items of this V1ReplicationControllerList. + :rtype: list[V1ReplicationController] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ReplicationControllerList. + List of replication controllers. More info: http://kubernetes.io/docs/user-guide/replication-controller + + :param items: The items of this V1ReplicationControllerList. + :type: list[V1ReplicationController] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1ReplicationControllerList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this V1ReplicationControllerList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ReplicationControllerList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1ReplicationControllerList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_replication_controller_spec.py b/k8sclient/models/v1_replication_controller_spec.py new file mode 100644 index 000000000..cec95cd00 --- /dev/null +++ b/k8sclient/models/v1_replication_controller_spec.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ReplicationControllerSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None): + """ + V1ReplicationControllerSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'min_ready_seconds': 'int', + 'replicas': 'int', + 'selector': 'dict(str, str)', + 'template': 'V1PodTemplateSpec' + } + + self.attribute_map = { + 'min_ready_seconds': 'minReadySeconds', + 'replicas': 'replicas', + 'selector': 'selector', + 'template': 'template' + } + + self._min_ready_seconds = min_ready_seconds + self._replicas = replicas + self._selector = selector + self._template = template + + + @property + def min_ready_seconds(self): + """ + Gets the min_ready_seconds of this V1ReplicationControllerSpec. + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + + :return: The min_ready_seconds of this V1ReplicationControllerSpec. + :rtype: int + """ + return self._min_ready_seconds + + @min_ready_seconds.setter + def min_ready_seconds(self, min_ready_seconds): + """ + Sets the min_ready_seconds of this V1ReplicationControllerSpec. + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + + :param min_ready_seconds: The min_ready_seconds of this V1ReplicationControllerSpec. + :type: int + """ + + self._min_ready_seconds = min_ready_seconds + + @property + def replicas(self): + """ + Gets the replicas of this V1ReplicationControllerSpec. + Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller + + :return: The replicas of this V1ReplicationControllerSpec. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1ReplicationControllerSpec. + Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller + + :param replicas: The replicas of this V1ReplicationControllerSpec. + :type: int + """ + + self._replicas = replicas + + @property + def selector(self): + """ + Gets the selector of this V1ReplicationControllerSpec. + Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :return: The selector of this V1ReplicationControllerSpec. + :rtype: dict(str, str) + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1ReplicationControllerSpec. + Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :param selector: The selector of this V1ReplicationControllerSpec. + :type: dict(str, str) + """ + + self._selector = selector + + @property + def template(self): + """ + Gets the template of this V1ReplicationControllerSpec. + Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template + + :return: The template of this V1ReplicationControllerSpec. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1ReplicationControllerSpec. + Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template + + :param template: The template of this V1ReplicationControllerSpec. + :type: V1PodTemplateSpec + """ + + self._template = template + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_replication_controller_status.py b/k8sclient/models/v1_replication_controller_status.py new file mode 100644 index 000000000..5468e99a9 --- /dev/null +++ b/k8sclient/models/v1_replication_controller_status.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ReplicationControllerStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None): + """ + V1ReplicationControllerStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'available_replicas': 'int', + 'conditions': 'list[V1ReplicationControllerCondition]', + 'fully_labeled_replicas': 'int', + 'observed_generation': 'int', + 'ready_replicas': 'int', + 'replicas': 'int' + } + + self.attribute_map = { + 'available_replicas': 'availableReplicas', + 'conditions': 'conditions', + 'fully_labeled_replicas': 'fullyLabeledReplicas', + 'observed_generation': 'observedGeneration', + 'ready_replicas': 'readyReplicas', + 'replicas': 'replicas' + } + + self._available_replicas = available_replicas + self._conditions = conditions + self._fully_labeled_replicas = fully_labeled_replicas + self._observed_generation = observed_generation + self._ready_replicas = ready_replicas + self._replicas = replicas + + + @property + def available_replicas(self): + """ + Gets the available_replicas of this V1ReplicationControllerStatus. + The number of available replicas (ready for at least minReadySeconds) for this replication controller. + + :return: The available_replicas of this V1ReplicationControllerStatus. + :rtype: int + """ + return self._available_replicas + + @available_replicas.setter + def available_replicas(self, available_replicas): + """ + Sets the available_replicas of this V1ReplicationControllerStatus. + The number of available replicas (ready for at least minReadySeconds) for this replication controller. + + :param available_replicas: The available_replicas of this V1ReplicationControllerStatus. + :type: int + """ + + self._available_replicas = available_replicas + + @property + def conditions(self): + """ + Gets the conditions of this V1ReplicationControllerStatus. + Represents the latest available observations of a replication controller's current state. + + :return: The conditions of this V1ReplicationControllerStatus. + :rtype: list[V1ReplicationControllerCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1ReplicationControllerStatus. + Represents the latest available observations of a replication controller's current state. + + :param conditions: The conditions of this V1ReplicationControllerStatus. + :type: list[V1ReplicationControllerCondition] + """ + + self._conditions = conditions + + @property + def fully_labeled_replicas(self): + """ + Gets the fully_labeled_replicas of this V1ReplicationControllerStatus. + The number of pods that have labels matching the labels of the pod template of the replication controller. + + :return: The fully_labeled_replicas of this V1ReplicationControllerStatus. + :rtype: int + """ + return self._fully_labeled_replicas + + @fully_labeled_replicas.setter + def fully_labeled_replicas(self, fully_labeled_replicas): + """ + Sets the fully_labeled_replicas of this V1ReplicationControllerStatus. + The number of pods that have labels matching the labels of the pod template of the replication controller. + + :param fully_labeled_replicas: The fully_labeled_replicas of this V1ReplicationControllerStatus. + :type: int + """ + + self._fully_labeled_replicas = fully_labeled_replicas + + @property + def observed_generation(self): + """ + Gets the observed_generation of this V1ReplicationControllerStatus. + ObservedGeneration reflects the generation of the most recently observed replication controller. + + :return: The observed_generation of this V1ReplicationControllerStatus. + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """ + Sets the observed_generation of this V1ReplicationControllerStatus. + ObservedGeneration reflects the generation of the most recently observed replication controller. + + :param observed_generation: The observed_generation of this V1ReplicationControllerStatus. + :type: int + """ + + self._observed_generation = observed_generation + + @property + def ready_replicas(self): + """ + Gets the ready_replicas of this V1ReplicationControllerStatus. + The number of ready replicas for this replication controller. + + :return: The ready_replicas of this V1ReplicationControllerStatus. + :rtype: int + """ + return self._ready_replicas + + @ready_replicas.setter + def ready_replicas(self, ready_replicas): + """ + Sets the ready_replicas of this V1ReplicationControllerStatus. + The number of ready replicas for this replication controller. + + :param ready_replicas: The ready_replicas of this V1ReplicationControllerStatus. + :type: int + """ + + self._ready_replicas = ready_replicas + + @property + def replicas(self): + """ + Gets the replicas of this V1ReplicationControllerStatus. + Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller + + :return: The replicas of this V1ReplicationControllerStatus. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1ReplicationControllerStatus. + Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller + + :param replicas: The replicas of this V1ReplicationControllerStatus. + :type: int + """ + if replicas is None: + raise ValueError("Invalid value for `replicas`, must not be `None`") + + self._replicas = replicas + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_resource_field_selector.py b/k8sclient/models/v1_resource_field_selector.py new file mode 100644 index 000000000..b930e6de7 --- /dev/null +++ b/k8sclient/models/v1_resource_field_selector.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ResourceFieldSelector(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, container_name=None, divisor=None, resource=None): + """ + V1ResourceFieldSelector - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'container_name': 'str', + 'divisor': 'ResourceQuantity', + 'resource': 'str' + } + + self.attribute_map = { + 'container_name': 'containerName', + 'divisor': 'divisor', + 'resource': 'resource' + } + + self._container_name = container_name + self._divisor = divisor + self._resource = resource + + + @property + def container_name(self): + """ + Gets the container_name of this V1ResourceFieldSelector. + Container name: required for volumes, optional for env vars + + :return: The container_name of this V1ResourceFieldSelector. + :rtype: str + """ + return self._container_name + + @container_name.setter + def container_name(self, container_name): + """ + Sets the container_name of this V1ResourceFieldSelector. + Container name: required for volumes, optional for env vars + + :param container_name: The container_name of this V1ResourceFieldSelector. + :type: str + """ + + self._container_name = container_name + + @property + def divisor(self): + """ + Gets the divisor of this V1ResourceFieldSelector. + Specifies the output format of the exposed resources, defaults to \"1\" + + :return: The divisor of this V1ResourceFieldSelector. + :rtype: ResourceQuantity + """ + return self._divisor + + @divisor.setter + def divisor(self, divisor): + """ + Sets the divisor of this V1ResourceFieldSelector. + Specifies the output format of the exposed resources, defaults to \"1\" + + :param divisor: The divisor of this V1ResourceFieldSelector. + :type: ResourceQuantity + """ + + self._divisor = divisor + + @property + def resource(self): + """ + Gets the resource of this V1ResourceFieldSelector. + Required: resource to select + + :return: The resource of this V1ResourceFieldSelector. + :rtype: str + """ + return self._resource + + @resource.setter + def resource(self, resource): + """ + Sets the resource of this V1ResourceFieldSelector. + Required: resource to select + + :param resource: The resource of this V1ResourceFieldSelector. + :type: str + """ + if resource is None: + raise ValueError("Invalid value for `resource`, must not be `None`") + + self._resource = resource + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_resource_quota.py b/k8sclient/models/v1_resource_quota.py new file mode 100644 index 000000000..170a30b19 --- /dev/null +++ b/k8sclient/models/v1_resource_quota.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ResourceQuota(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1ResourceQuota - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ResourceQuotaSpec', + 'status': 'V1ResourceQuotaStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1ResourceQuota. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1ResourceQuota. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ResourceQuota. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1ResourceQuota. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1ResourceQuota. + Spec defines the desired quota. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The spec of this V1ResourceQuota. + :rtype: V1ResourceQuotaSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1ResourceQuota. + Spec defines the desired quota. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param spec: The spec of this V1ResourceQuota. + :type: V1ResourceQuotaSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1ResourceQuota. + Status defines the actual enforced quota and its current usage. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The status of this V1ResourceQuota. + :rtype: V1ResourceQuotaStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1ResourceQuota. + Status defines the actual enforced quota and its current usage. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param status: The status of this V1ResourceQuota. + :type: V1ResourceQuotaStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_resource_quota_list.py b/k8sclient/models/v1_resource_quota_list.py new file mode 100644 index 000000000..0aee929b8 --- /dev/null +++ b/k8sclient/models/v1_resource_quota_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ResourceQuotaList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1ResourceQuotaList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1ResourceQuota]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1ResourceQuotaList. + Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + + :return: The items of this V1ResourceQuotaList. + :rtype: list[V1ResourceQuota] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ResourceQuotaList. + Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + + :param items: The items of this V1ResourceQuotaList. + :type: list[V1ResourceQuota] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1ResourceQuotaList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this V1ResourceQuotaList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ResourceQuotaList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1ResourceQuotaList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_resource_quota_spec.py b/k8sclient/models/v1_resource_quota_spec.py new file mode 100644 index 000000000..778f24544 --- /dev/null +++ b/k8sclient/models/v1_resource_quota_spec.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ResourceQuotaSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, hard=None, scopes=None): + """ + V1ResourceQuotaSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'hard': 'dict(str, ResourceQuantity)', + 'scopes': 'list[str]' + } + + self.attribute_map = { + 'hard': 'hard', + 'scopes': 'scopes' + } + + self._hard = hard + self._scopes = scopes + + + @property + def hard(self): + """ + Gets the hard of this V1ResourceQuotaSpec. + Hard is the set of desired hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + + :return: The hard of this V1ResourceQuotaSpec. + :rtype: dict(str, ResourceQuantity) + """ + return self._hard + + @hard.setter + def hard(self, hard): + """ + Sets the hard of this V1ResourceQuotaSpec. + Hard is the set of desired hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + + :param hard: The hard of this V1ResourceQuotaSpec. + :type: dict(str, ResourceQuantity) + """ + + self._hard = hard + + @property + def scopes(self): + """ + Gets the scopes of this V1ResourceQuotaSpec. + A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. + + :return: The scopes of this V1ResourceQuotaSpec. + :rtype: list[str] + """ + return self._scopes + + @scopes.setter + def scopes(self, scopes): + """ + Sets the scopes of this V1ResourceQuotaSpec. + A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. + + :param scopes: The scopes of this V1ResourceQuotaSpec. + :type: list[str] + """ + + self._scopes = scopes + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_resource_quota_status.py b/k8sclient/models/v1_resource_quota_status.py new file mode 100644 index 000000000..884a0abc1 --- /dev/null +++ b/k8sclient/models/v1_resource_quota_status.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ResourceQuotaStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, hard=None, used=None): + """ + V1ResourceQuotaStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'hard': 'dict(str, ResourceQuantity)', + 'used': 'dict(str, ResourceQuantity)' + } + + self.attribute_map = { + 'hard': 'hard', + 'used': 'used' + } + + self._hard = hard + self._used = used + + + @property + def hard(self): + """ + Gets the hard of this V1ResourceQuotaStatus. + Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + + :return: The hard of this V1ResourceQuotaStatus. + :rtype: dict(str, ResourceQuantity) + """ + return self._hard + + @hard.setter + def hard(self, hard): + """ + Sets the hard of this V1ResourceQuotaStatus. + Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + + :param hard: The hard of this V1ResourceQuotaStatus. + :type: dict(str, ResourceQuantity) + """ + + self._hard = hard + + @property + def used(self): + """ + Gets the used of this V1ResourceQuotaStatus. + Used is the current observed total usage of the resource in the namespace. + + :return: The used of this V1ResourceQuotaStatus. + :rtype: dict(str, ResourceQuantity) + """ + return self._used + + @used.setter + def used(self, used): + """ + Sets the used of this V1ResourceQuotaStatus. + Used is the current observed total usage of the resource in the namespace. + + :param used: The used of this V1ResourceQuotaStatus. + :type: dict(str, ResourceQuantity) + """ + + self._used = used + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_resource_requirements.py b/k8sclient/models/v1_resource_requirements.py new file mode 100644 index 000000000..f061b14d6 --- /dev/null +++ b/k8sclient/models/v1_resource_requirements.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ResourceRequirements(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, limits=None, requests=None): + """ + V1ResourceRequirements - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'limits': 'dict(str, ResourceQuantity)', + 'requests': 'dict(str, ResourceQuantity)' + } + + self.attribute_map = { + 'limits': 'limits', + 'requests': 'requests' + } + + self._limits = limits + self._requests = requests + + + @property + def limits(self): + """ + Gets the limits of this V1ResourceRequirements. + Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/ + + :return: The limits of this V1ResourceRequirements. + :rtype: dict(str, ResourceQuantity) + """ + return self._limits + + @limits.setter + def limits(self, limits): + """ + Sets the limits of this V1ResourceRequirements. + Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/ + + :param limits: The limits of this V1ResourceRequirements. + :type: dict(str, ResourceQuantity) + """ + + self._limits = limits + + @property + def requests(self): + """ + Gets the requests of this V1ResourceRequirements. + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://kubernetes.io/docs/user-guide/compute-resources/ + + :return: The requests of this V1ResourceRequirements. + :rtype: dict(str, ResourceQuantity) + """ + return self._requests + + @requests.setter + def requests(self, requests): + """ + Sets the requests of this V1ResourceRequirements. + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://kubernetes.io/docs/user-guide/compute-resources/ + + :param requests: The requests of this V1ResourceRequirements. + :type: dict(str, ResourceQuantity) + """ + + self._requests = requests + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_scale.py b/k8sclient/models/v1_scale.py new file mode 100644 index 000000000..65e742927 --- /dev/null +++ b/k8sclient/models/v1_scale.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1Scale(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1Scale - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ScaleSpec', + 'status': 'V1ScaleStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1Scale. + Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. + + :return: The metadata of this V1Scale. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Scale. + Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. + + :param metadata: The metadata of this V1Scale. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1Scale. + defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + + :return: The spec of this V1Scale. + :rtype: V1ScaleSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1Scale. + defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + + :param spec: The spec of this V1Scale. + :type: V1ScaleSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1Scale. + current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. + + :return: The status of this V1Scale. + :rtype: V1ScaleStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1Scale. + current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. + + :param status: The status of this V1Scale. + :type: V1ScaleStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_scale_spec.py b/k8sclient/models/v1_scale_spec.py new file mode 100644 index 000000000..147e14d9a --- /dev/null +++ b/k8sclient/models/v1_scale_spec.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ScaleSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, replicas=None): + """ + V1ScaleSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'replicas': 'int' + } + + self.attribute_map = { + 'replicas': 'replicas' + } + + self._replicas = replicas + + + @property + def replicas(self): + """ + Gets the replicas of this V1ScaleSpec. + desired number of instances for the scaled object. + + :return: The replicas of this V1ScaleSpec. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1ScaleSpec. + desired number of instances for the scaled object. + + :param replicas: The replicas of this V1ScaleSpec. + :type: int + """ + + self._replicas = replicas + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_scale_status.py b/k8sclient/models/v1_scale_status.py new file mode 100644 index 000000000..0ad5ae7fc --- /dev/null +++ b/k8sclient/models/v1_scale_status.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ScaleStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, replicas=None, selector=None): + """ + V1ScaleStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'replicas': 'int', + 'selector': 'str' + } + + self.attribute_map = { + 'replicas': 'replicas', + 'selector': 'selector' + } + + self._replicas = replicas + self._selector = selector + + + @property + def replicas(self): + """ + Gets the replicas of this V1ScaleStatus. + actual number of observed instances of the scaled object. + + :return: The replicas of this V1ScaleStatus. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1ScaleStatus. + actual number of observed instances of the scaled object. + + :param replicas: The replicas of this V1ScaleStatus. + :type: int + """ + if replicas is None: + raise ValueError("Invalid value for `replicas`, must not be `None`") + + self._replicas = replicas + + @property + def selector(self): + """ + Gets the selector of this V1ScaleStatus. + label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :return: The selector of this V1ScaleStatus. + :rtype: str + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1ScaleStatus. + label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :param selector: The selector of this V1ScaleStatus. + :type: str + """ + + self._selector = selector + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_se_linux_options.py b/k8sclient/models/v1_se_linux_options.py new file mode 100644 index 000000000..1d27aaf51 --- /dev/null +++ b/k8sclient/models/v1_se_linux_options.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1SELinuxOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, level=None, role=None, type=None, user=None): + """ + V1SELinuxOptions - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'level': 'str', + 'role': 'str', + 'type': 'str', + 'user': 'str' + } + + self.attribute_map = { + 'level': 'level', + 'role': 'role', + 'type': 'type', + 'user': 'user' + } + + self._level = level + self._role = role + self._type = type + self._user = user + + + @property + def level(self): + """ + Gets the level of this V1SELinuxOptions. + Level is SELinux level label that applies to the container. + + :return: The level of this V1SELinuxOptions. + :rtype: str + """ + return self._level + + @level.setter + def level(self, level): + """ + Sets the level of this V1SELinuxOptions. + Level is SELinux level label that applies to the container. + + :param level: The level of this V1SELinuxOptions. + :type: str + """ + + self._level = level + + @property + def role(self): + """ + Gets the role of this V1SELinuxOptions. + Role is a SELinux role label that applies to the container. + + :return: The role of this V1SELinuxOptions. + :rtype: str + """ + return self._role + + @role.setter + def role(self, role): + """ + Sets the role of this V1SELinuxOptions. + Role is a SELinux role label that applies to the container. + + :param role: The role of this V1SELinuxOptions. + :type: str + """ + + self._role = role + + @property + def type(self): + """ + Gets the type of this V1SELinuxOptions. + Type is a SELinux type label that applies to the container. + + :return: The type of this V1SELinuxOptions. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1SELinuxOptions. + Type is a SELinux type label that applies to the container. + + :param type: The type of this V1SELinuxOptions. + :type: str + """ + + self._type = type + + @property + def user(self): + """ + Gets the user of this V1SELinuxOptions. + User is a SELinux user label that applies to the container. + + :return: The user of this V1SELinuxOptions. + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """ + Sets the user of this V1SELinuxOptions. + User is a SELinux user label that applies to the container. + + :param user: The user of this V1SELinuxOptions. + :type: str + """ + + self._user = user + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_secret.py b/k8sclient/models/v1_secret.py new file mode 100644 index 000000000..e0dffaa97 --- /dev/null +++ b/k8sclient/models/v1_secret.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1Secret(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, data=None, metadata=None, string_data=None, type=None): + """ + V1Secret - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'data': 'dict(str, list[int])', + 'metadata': 'V1ObjectMeta', + 'string_data': 'dict(str, str)', + 'type': 'str' + } + + self.attribute_map = { + 'data': 'data', + 'metadata': 'metadata', + 'string_data': 'stringData', + 'type': 'type' + } + + self._data = data + self._metadata = metadata + self._string_data = string_data + self._type = type + + + @property + def data(self): + """ + Gets the data of this V1Secret. + Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + + :return: The data of this V1Secret. + :rtype: dict(str, list[int]) + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this V1Secret. + Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + + :param data: The data of this V1Secret. + :type: dict(str, list[int]) + """ + + self._data = data + + @property + def metadata(self): + """ + Gets the metadata of this V1Secret. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1Secret. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Secret. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1Secret. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def string_data(self): + """ + Gets the string_data of this V1Secret. + stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. + + :return: The string_data of this V1Secret. + :rtype: dict(str, str) + """ + return self._string_data + + @string_data.setter + def string_data(self, string_data): + """ + Sets the string_data of this V1Secret. + stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. + + :param string_data: The string_data of this V1Secret. + :type: dict(str, str) + """ + + self._string_data = string_data + + @property + def type(self): + """ + Gets the type of this V1Secret. + Used to facilitate programmatic handling of secret data. + + :return: The type of this V1Secret. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1Secret. + Used to facilitate programmatic handling of secret data. + + :param type: The type of this V1Secret. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_secret_key_selector.py b/k8sclient/models/v1_secret_key_selector.py new file mode 100644 index 000000000..96759c87d --- /dev/null +++ b/k8sclient/models/v1_secret_key_selector.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1SecretKeySelector(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, key=None): + """ + V1SecretKeySelector - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'key': 'str' + } + + self.attribute_map = { + 'key': 'key' + } + + self._key = key + + + @property + def key(self): + """ + Gets the key of this V1SecretKeySelector. + The key of the secret to select from. Must be a valid secret key. + + :return: The key of this V1SecretKeySelector. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """ + Sets the key of this V1SecretKeySelector. + The key of the secret to select from. Must be a valid secret key. + + :param key: The key of this V1SecretKeySelector. + :type: str + """ + if key is None: + raise ValueError("Invalid value for `key`, must not be `None`") + + self._key = key + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_secret_list.py b/k8sclient/models/v1_secret_list.py new file mode 100644 index 000000000..8d65084e8 --- /dev/null +++ b/k8sclient/models/v1_secret_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1SecretList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1SecretList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1Secret]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1SecretList. + Items is a list of secret objects. More info: http://kubernetes.io/docs/user-guide/secrets + + :return: The items of this V1SecretList. + :rtype: list[V1Secret] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1SecretList. + Items is a list of secret objects. More info: http://kubernetes.io/docs/user-guide/secrets + + :param items: The items of this V1SecretList. + :type: list[V1Secret] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1SecretList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this V1SecretList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1SecretList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1SecretList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_security_context.py b/k8sclient/models/v1_security_context.py new file mode 100644 index 000000000..96a8fbe35 --- /dev/null +++ b/k8sclient/models/v1_security_context.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1SecurityContext(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, capabilities=None, privileged=None, read_only_root_filesystem=None, run_as_non_root=None, run_as_user=None, se_linux_options=None): + """ + V1SecurityContext - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'capabilities': 'V1Capabilities', + 'privileged': 'bool', + 'read_only_root_filesystem': 'bool', + 'run_as_non_root': 'bool', + 'run_as_user': 'int', + 'se_linux_options': 'V1SELinuxOptions' + } + + self.attribute_map = { + 'capabilities': 'capabilities', + 'privileged': 'privileged', + 'read_only_root_filesystem': 'readOnlyRootFilesystem', + 'run_as_non_root': 'runAsNonRoot', + 'run_as_user': 'runAsUser', + 'se_linux_options': 'seLinuxOptions' + } + + self._capabilities = capabilities + self._privileged = privileged + self._read_only_root_filesystem = read_only_root_filesystem + self._run_as_non_root = run_as_non_root + self._run_as_user = run_as_user + self._se_linux_options = se_linux_options + + + @property + def capabilities(self): + """ + Gets the capabilities of this V1SecurityContext. + The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + + :return: The capabilities of this V1SecurityContext. + :rtype: V1Capabilities + """ + return self._capabilities + + @capabilities.setter + def capabilities(self, capabilities): + """ + Sets the capabilities of this V1SecurityContext. + The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + + :param capabilities: The capabilities of this V1SecurityContext. + :type: V1Capabilities + """ + + self._capabilities = capabilities + + @property + def privileged(self): + """ + Gets the privileged of this V1SecurityContext. + Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + + :return: The privileged of this V1SecurityContext. + :rtype: bool + """ + return self._privileged + + @privileged.setter + def privileged(self, privileged): + """ + Sets the privileged of this V1SecurityContext. + Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + + :param privileged: The privileged of this V1SecurityContext. + :type: bool + """ + + self._privileged = privileged + + @property + def read_only_root_filesystem(self): + """ + Gets the read_only_root_filesystem of this V1SecurityContext. + Whether this container has a read-only root filesystem. Default is false. + + :return: The read_only_root_filesystem of this V1SecurityContext. + :rtype: bool + """ + return self._read_only_root_filesystem + + @read_only_root_filesystem.setter + def read_only_root_filesystem(self, read_only_root_filesystem): + """ + Sets the read_only_root_filesystem of this V1SecurityContext. + Whether this container has a read-only root filesystem. Default is false. + + :param read_only_root_filesystem: The read_only_root_filesystem of this V1SecurityContext. + :type: bool + """ + + self._read_only_root_filesystem = read_only_root_filesystem + + @property + def run_as_non_root(self): + """ + Gets the run_as_non_root of this V1SecurityContext. + Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + :return: The run_as_non_root of this V1SecurityContext. + :rtype: bool + """ + return self._run_as_non_root + + @run_as_non_root.setter + def run_as_non_root(self, run_as_non_root): + """ + Sets the run_as_non_root of this V1SecurityContext. + Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + :param run_as_non_root: The run_as_non_root of this V1SecurityContext. + :type: bool + """ + + self._run_as_non_root = run_as_non_root + + @property + def run_as_user(self): + """ + Gets the run_as_user of this V1SecurityContext. + The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + :return: The run_as_user of this V1SecurityContext. + :rtype: int + """ + return self._run_as_user + + @run_as_user.setter + def run_as_user(self, run_as_user): + """ + Sets the run_as_user of this V1SecurityContext. + The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + :param run_as_user: The run_as_user of this V1SecurityContext. + :type: int + """ + + self._run_as_user = run_as_user + + @property + def se_linux_options(self): + """ + Gets the se_linux_options of this V1SecurityContext. + The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + :return: The se_linux_options of this V1SecurityContext. + :rtype: V1SELinuxOptions + """ + return self._se_linux_options + + @se_linux_options.setter + def se_linux_options(self, se_linux_options): + """ + Sets the se_linux_options of this V1SecurityContext. + The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + :param se_linux_options: The se_linux_options of this V1SecurityContext. + :type: V1SELinuxOptions + """ + + self._se_linux_options = se_linux_options + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_service.py b/k8sclient/models/v1_service.py new file mode 100644 index 000000000..197d9cc71 --- /dev/null +++ b/k8sclient/models/v1_service.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1Service(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1Service - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ServiceSpec', + 'status': 'V1ServiceStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1Service. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1Service. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Service. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1Service. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1Service. + Spec defines the behavior of a service. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The spec of this V1Service. + :rtype: V1ServiceSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1Service. + Spec defines the behavior of a service. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param spec: The spec of this V1Service. + :type: V1ServiceSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1Service. + Most recently observed status of the service. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The status of this V1Service. + :rtype: V1ServiceStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1Service. + Most recently observed status of the service. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param status: The status of this V1Service. + :type: V1ServiceStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_service_account.py b/k8sclient/models/v1_service_account.py new file mode 100644 index 000000000..21810babd --- /dev/null +++ b/k8sclient/models/v1_service_account.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ServiceAccount(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, image_pull_secrets=None, metadata=None, secrets=None): + """ + V1ServiceAccount - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'image_pull_secrets': 'list[V1LocalObjectReference]', + 'metadata': 'V1ObjectMeta', + 'secrets': 'list[V1ObjectReference]' + } + + self.attribute_map = { + 'image_pull_secrets': 'imagePullSecrets', + 'metadata': 'metadata', + 'secrets': 'secrets' + } + + self._image_pull_secrets = image_pull_secrets + self._metadata = metadata + self._secrets = secrets + + + @property + def image_pull_secrets(self): + """ + Gets the image_pull_secrets of this V1ServiceAccount. + ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: http://kubernetes.io/docs/user-guide/secrets#manually-specifying-an-imagepullsecret + + :return: The image_pull_secrets of this V1ServiceAccount. + :rtype: list[V1LocalObjectReference] + """ + return self._image_pull_secrets + + @image_pull_secrets.setter + def image_pull_secrets(self, image_pull_secrets): + """ + Sets the image_pull_secrets of this V1ServiceAccount. + ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: http://kubernetes.io/docs/user-guide/secrets#manually-specifying-an-imagepullsecret + + :param image_pull_secrets: The image_pull_secrets of this V1ServiceAccount. + :type: list[V1LocalObjectReference] + """ + + self._image_pull_secrets = image_pull_secrets + + @property + def metadata(self): + """ + Gets the metadata of this V1ServiceAccount. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1ServiceAccount. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ServiceAccount. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1ServiceAccount. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def secrets(self): + """ + Gets the secrets of this V1ServiceAccount. + Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: http://kubernetes.io/docs/user-guide/secrets + + :return: The secrets of this V1ServiceAccount. + :rtype: list[V1ObjectReference] + """ + return self._secrets + + @secrets.setter + def secrets(self, secrets): + """ + Sets the secrets of this V1ServiceAccount. + Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: http://kubernetes.io/docs/user-guide/secrets + + :param secrets: The secrets of this V1ServiceAccount. + :type: list[V1ObjectReference] + """ + + self._secrets = secrets + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_service_account_list.py b/k8sclient/models/v1_service_account_list.py new file mode 100644 index 000000000..1a3d0d5c5 --- /dev/null +++ b/k8sclient/models/v1_service_account_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ServiceAccountList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1ServiceAccountList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1ServiceAccount]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1ServiceAccountList. + List of ServiceAccounts. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md#service-accounts + + :return: The items of this V1ServiceAccountList. + :rtype: list[V1ServiceAccount] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ServiceAccountList. + List of ServiceAccounts. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md#service-accounts + + :param items: The items of this V1ServiceAccountList. + :type: list[V1ServiceAccount] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1ServiceAccountList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this V1ServiceAccountList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ServiceAccountList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1ServiceAccountList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_service_list.py b/k8sclient/models/v1_service_list.py new file mode 100644 index 000000000..dbc45859a --- /dev/null +++ b/k8sclient/models/v1_service_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ServiceList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1ServiceList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1Service]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1ServiceList. + List of services + + :return: The items of this V1ServiceList. + :rtype: list[V1Service] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ServiceList. + List of services + + :param items: The items of this V1ServiceList. + :type: list[V1Service] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1ServiceList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this V1ServiceList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ServiceList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1ServiceList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_service_port.py b/k8sclient/models/v1_service_port.py new file mode 100644 index 000000000..0b2537279 --- /dev/null +++ b/k8sclient/models/v1_service_port.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ServicePort(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, name=None, node_port=None, port=None, protocol=None, target_port=None): + """ + V1ServicePort - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'node_port': 'int', + 'port': 'int', + 'protocol': 'str', + 'target_port': 'IntstrIntOrString' + } + + self.attribute_map = { + 'name': 'name', + 'node_port': 'nodePort', + 'port': 'port', + 'protocol': 'protocol', + 'target_port': 'targetPort' + } + + self._name = name + self._node_port = node_port + self._port = port + self._protocol = protocol + self._target_port = target_port + + + @property + def name(self): + """ + Gets the name of this V1ServicePort. + The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. + + :return: The name of this V1ServicePort. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ServicePort. + The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. + + :param name: The name of this V1ServicePort. + :type: str + """ + + self._name = name + + @property + def node_port(self): + """ + Gets the node_port of this V1ServicePort. + The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: http://kubernetes.io/docs/user-guide/services#type--nodeport + + :return: The node_port of this V1ServicePort. + :rtype: int + """ + return self._node_port + + @node_port.setter + def node_port(self, node_port): + """ + Sets the node_port of this V1ServicePort. + The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: http://kubernetes.io/docs/user-guide/services#type--nodeport + + :param node_port: The node_port of this V1ServicePort. + :type: int + """ + + self._node_port = node_port + + @property + def port(self): + """ + Gets the port of this V1ServicePort. + The port that will be exposed by this service. + + :return: The port of this V1ServicePort. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """ + Sets the port of this V1ServicePort. + The port that will be exposed by this service. + + :param port: The port of this V1ServicePort. + :type: int + """ + if port is None: + raise ValueError("Invalid value for `port`, must not be `None`") + + self._port = port + + @property + def protocol(self): + """ + Gets the protocol of this V1ServicePort. + The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP. + + :return: The protocol of this V1ServicePort. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """ + Sets the protocol of this V1ServicePort. + The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP. + + :param protocol: The protocol of this V1ServicePort. + :type: str + """ + + self._protocol = protocol + + @property + def target_port(self): + """ + Gets the target_port of this V1ServicePort. + Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://kubernetes.io/docs/user-guide/services#defining-a-service + + :return: The target_port of this V1ServicePort. + :rtype: IntstrIntOrString + """ + return self._target_port + + @target_port.setter + def target_port(self, target_port): + """ + Sets the target_port of this V1ServicePort. + Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://kubernetes.io/docs/user-guide/services#defining-a-service + + :param target_port: The target_port of this V1ServicePort. + :type: IntstrIntOrString + """ + + self._target_port = target_port + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_service_spec.py b/k8sclient/models/v1_service_spec.py new file mode 100644 index 000000000..122e0ed02 --- /dev/null +++ b/k8sclient/models/v1_service_spec.py @@ -0,0 +1,362 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ServiceSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, cluster_ip=None, deprecated_public_i_ps=None, external_i_ps=None, external_name=None, load_balancer_ip=None, load_balancer_source_ranges=None, ports=None, selector=None, session_affinity=None, type=None): + """ + V1ServiceSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'cluster_ip': 'str', + 'deprecated_public_i_ps': 'list[str]', + 'external_i_ps': 'list[str]', + 'external_name': 'str', + 'load_balancer_ip': 'str', + 'load_balancer_source_ranges': 'list[str]', + 'ports': 'list[V1ServicePort]', + 'selector': 'dict(str, str)', + 'session_affinity': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'cluster_ip': 'clusterIP', + 'deprecated_public_i_ps': 'deprecatedPublicIPs', + 'external_i_ps': 'externalIPs', + 'external_name': 'externalName', + 'load_balancer_ip': 'loadBalancerIP', + 'load_balancer_source_ranges': 'loadBalancerSourceRanges', + 'ports': 'ports', + 'selector': 'selector', + 'session_affinity': 'sessionAffinity', + 'type': 'type' + } + + self._cluster_ip = cluster_ip + self._deprecated_public_i_ps = deprecated_public_i_ps + self._external_i_ps = external_i_ps + self._external_name = external_name + self._load_balancer_ip = load_balancer_ip + self._load_balancer_source_ranges = load_balancer_source_ranges + self._ports = ports + self._selector = selector + self._session_affinity = session_affinity + self._type = type + + + @property + def cluster_ip(self): + """ + Gets the cluster_ip of this V1ServiceSpec. + clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies + + :return: The cluster_ip of this V1ServiceSpec. + :rtype: str + """ + return self._cluster_ip + + @cluster_ip.setter + def cluster_ip(self, cluster_ip): + """ + Sets the cluster_ip of this V1ServiceSpec. + clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies + + :param cluster_ip: The cluster_ip of this V1ServiceSpec. + :type: str + """ + + self._cluster_ip = cluster_ip + + @property + def deprecated_public_i_ps(self): + """ + Gets the deprecated_public_i_ps of this V1ServiceSpec. + deprecatedPublicIPs is deprecated and replaced by the externalIPs field with almost the exact same semantics. This field is retained in the v1 API for compatibility until at least 8/20/2016. It will be removed from any new API revisions. If both deprecatedPublicIPs *and* externalIPs are set, deprecatedPublicIPs is used. + + :return: The deprecated_public_i_ps of this V1ServiceSpec. + :rtype: list[str] + """ + return self._deprecated_public_i_ps + + @deprecated_public_i_ps.setter + def deprecated_public_i_ps(self, deprecated_public_i_ps): + """ + Sets the deprecated_public_i_ps of this V1ServiceSpec. + deprecatedPublicIPs is deprecated and replaced by the externalIPs field with almost the exact same semantics. This field is retained in the v1 API for compatibility until at least 8/20/2016. It will be removed from any new API revisions. If both deprecatedPublicIPs *and* externalIPs are set, deprecatedPublicIPs is used. + + :param deprecated_public_i_ps: The deprecated_public_i_ps of this V1ServiceSpec. + :type: list[str] + """ + + self._deprecated_public_i_ps = deprecated_public_i_ps + + @property + def external_i_ps(self): + """ + Gets the external_i_ps of this V1ServiceSpec. + externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. A previous form of this functionality exists as the deprecatedPublicIPs field. When using this field, callers should also clear the deprecatedPublicIPs field. + + :return: The external_i_ps of this V1ServiceSpec. + :rtype: list[str] + """ + return self._external_i_ps + + @external_i_ps.setter + def external_i_ps(self, external_i_ps): + """ + Sets the external_i_ps of this V1ServiceSpec. + externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. A previous form of this functionality exists as the deprecatedPublicIPs field. When using this field, callers should also clear the deprecatedPublicIPs field. + + :param external_i_ps: The external_i_ps of this V1ServiceSpec. + :type: list[str] + """ + + self._external_i_ps = external_i_ps + + @property + def external_name(self): + """ + Gets the external_name of this V1ServiceSpec. + externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid DNS name and requires Type to be ExternalName. + + :return: The external_name of this V1ServiceSpec. + :rtype: str + """ + return self._external_name + + @external_name.setter + def external_name(self, external_name): + """ + Sets the external_name of this V1ServiceSpec. + externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid DNS name and requires Type to be ExternalName. + + :param external_name: The external_name of this V1ServiceSpec. + :type: str + """ + + self._external_name = external_name + + @property + def load_balancer_ip(self): + """ + Gets the load_balancer_ip of this V1ServiceSpec. + Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. + + :return: The load_balancer_ip of this V1ServiceSpec. + :rtype: str + """ + return self._load_balancer_ip + + @load_balancer_ip.setter + def load_balancer_ip(self, load_balancer_ip): + """ + Sets the load_balancer_ip of this V1ServiceSpec. + Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. + + :param load_balancer_ip: The load_balancer_ip of this V1ServiceSpec. + :type: str + """ + + self._load_balancer_ip = load_balancer_ip + + @property + def load_balancer_source_ranges(self): + """ + Gets the load_balancer_source_ranges of this V1ServiceSpec. + If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: http://kubernetes.io/docs/user-guide/services-firewalls + + :return: The load_balancer_source_ranges of this V1ServiceSpec. + :rtype: list[str] + """ + return self._load_balancer_source_ranges + + @load_balancer_source_ranges.setter + def load_balancer_source_ranges(self, load_balancer_source_ranges): + """ + Sets the load_balancer_source_ranges of this V1ServiceSpec. + If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: http://kubernetes.io/docs/user-guide/services-firewalls + + :param load_balancer_source_ranges: The load_balancer_source_ranges of this V1ServiceSpec. + :type: list[str] + """ + + self._load_balancer_source_ranges = load_balancer_source_ranges + + @property + def ports(self): + """ + Gets the ports of this V1ServiceSpec. + The list of ports that are exposed by this service. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies + + :return: The ports of this V1ServiceSpec. + :rtype: list[V1ServicePort] + """ + return self._ports + + @ports.setter + def ports(self, ports): + """ + Sets the ports of this V1ServiceSpec. + The list of ports that are exposed by this service. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies + + :param ports: The ports of this V1ServiceSpec. + :type: list[V1ServicePort] + """ + if ports is None: + raise ValueError("Invalid value for `ports`, must not be `None`") + + self._ports = ports + + @property + def selector(self): + """ + Gets the selector of this V1ServiceSpec. + Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://kubernetes.io/docs/user-guide/services#overview + + :return: The selector of this V1ServiceSpec. + :rtype: dict(str, str) + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1ServiceSpec. + Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://kubernetes.io/docs/user-guide/services#overview + + :param selector: The selector of this V1ServiceSpec. + :type: dict(str, str) + """ + + self._selector = selector + + @property + def session_affinity(self): + """ + Gets the session_affinity of this V1ServiceSpec. + Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies + + :return: The session_affinity of this V1ServiceSpec. + :rtype: str + """ + return self._session_affinity + + @session_affinity.setter + def session_affinity(self, session_affinity): + """ + Sets the session_affinity of this V1ServiceSpec. + Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies + + :param session_affinity: The session_affinity of this V1ServiceSpec. + :type: str + """ + + self._session_affinity = session_affinity + + @property + def type(self): + """ + Gets the type of this V1ServiceSpec. + type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: http://kubernetes.io/docs/user-guide/services#overview + + :return: The type of this V1ServiceSpec. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1ServiceSpec. + type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: http://kubernetes.io/docs/user-guide/services#overview + + :param type: The type of this V1ServiceSpec. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_service_status.py b/k8sclient/models/v1_service_status.py new file mode 100644 index 000000000..8109b70ad --- /dev/null +++ b/k8sclient/models/v1_service_status.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1ServiceStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, load_balancer=None): + """ + V1ServiceStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'load_balancer': 'V1LoadBalancerStatus' + } + + self.attribute_map = { + 'load_balancer': 'loadBalancer' + } + + self._load_balancer = load_balancer + + + @property + def load_balancer(self): + """ + Gets the load_balancer of this V1ServiceStatus. + LoadBalancer contains the current status of the load-balancer, if one is present. + + :return: The load_balancer of this V1ServiceStatus. + :rtype: V1LoadBalancerStatus + """ + return self._load_balancer + + @load_balancer.setter + def load_balancer(self, load_balancer): + """ + Sets the load_balancer of this V1ServiceStatus. + LoadBalancer contains the current status of the load-balancer, if one is present. + + :param load_balancer: The load_balancer of this V1ServiceStatus. + :type: V1LoadBalancerStatus + """ + + self._load_balancer = load_balancer + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_tcp_socket_action.py b/k8sclient/models/v1_tcp_socket_action.py new file mode 100644 index 000000000..b2c702c56 --- /dev/null +++ b/k8sclient/models/v1_tcp_socket_action.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1TCPSocketAction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, port=None): + """ + V1TCPSocketAction - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'port': 'IntstrIntOrString' + } + + self.attribute_map = { + 'port': 'port' + } + + self._port = port + + + @property + def port(self): + """ + Gets the port of this V1TCPSocketAction. + Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + :return: The port of this V1TCPSocketAction. + :rtype: IntstrIntOrString + """ + return self._port + + @port.setter + def port(self, port): + """ + Sets the port of this V1TCPSocketAction. + Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + :param port: The port of this V1TCPSocketAction. + :type: IntstrIntOrString + """ + if port is None: + raise ValueError("Invalid value for `port`, must not be `None`") + + self._port = port + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_volume.py b/k8sclient/models/v1_volume.py new file mode 100644 index 000000000..a55e290a0 --- /dev/null +++ b/k8sclient/models/v1_volume.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1Volume(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, name=None): + """ + V1Volume - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str' + } + + self.attribute_map = { + 'name': 'name' + } + + self._name = name + + + @property + def name(self): + """ + Gets the name of this V1Volume. + Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :return: The name of this V1Volume. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1Volume. + Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :param name: The name of this V1Volume. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1_volume_mount.py b/k8sclient/models/v1_volume_mount.py new file mode 100644 index 000000000..8cf98824e --- /dev/null +++ b/k8sclient/models/v1_volume_mount.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1VolumeMount(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, mount_path=None, name=None, read_only=None, sub_path=None): + """ + V1VolumeMount - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'mount_path': 'str', + 'name': 'str', + 'read_only': 'bool', + 'sub_path': 'str' + } + + self.attribute_map = { + 'mount_path': 'mountPath', + 'name': 'name', + 'read_only': 'readOnly', + 'sub_path': 'subPath' + } + + self._mount_path = mount_path + self._name = name + self._read_only = read_only + self._sub_path = sub_path + + + @property + def mount_path(self): + """ + Gets the mount_path of this V1VolumeMount. + Path within the container at which the volume should be mounted. Must not contain ':'. + + :return: The mount_path of this V1VolumeMount. + :rtype: str + """ + return self._mount_path + + @mount_path.setter + def mount_path(self, mount_path): + """ + Sets the mount_path of this V1VolumeMount. + Path within the container at which the volume should be mounted. Must not contain ':'. + + :param mount_path: The mount_path of this V1VolumeMount. + :type: str + """ + if mount_path is None: + raise ValueError("Invalid value for `mount_path`, must not be `None`") + + self._mount_path = mount_path + + @property + def name(self): + """ + Gets the name of this V1VolumeMount. + This must match the Name of a Volume. + + :return: The name of this V1VolumeMount. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1VolumeMount. + This must match the Name of a Volume. + + :param name: The name of this V1VolumeMount. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def read_only(self): + """ + Gets the read_only of this V1VolumeMount. + Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + + :return: The read_only of this V1VolumeMount. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1VolumeMount. + Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + + :param read_only: The read_only of this V1VolumeMount. + :type: bool + """ + + self._read_only = read_only + + @property + def sub_path(self): + """ + Gets the sub_path of this V1VolumeMount. + Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). + + :return: The sub_path of this V1VolumeMount. + :rtype: str + """ + return self._sub_path + + @sub_path.setter + def sub_path(self, sub_path): + """ + Sets the sub_path of this V1VolumeMount. + Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). + + :param sub_path: The sub_path of this V1VolumeMount. + :type: str + """ + + self._sub_path = sub_path + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_certificate_signing_request.py b/k8sclient/models/v1alpha1_certificate_signing_request.py new file mode 100644 index 000000000..ff0a11059 --- /dev/null +++ b/k8sclient/models/v1alpha1_certificate_signing_request.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1CertificateSigningRequest(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1alpha1CertificateSigningRequest - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1alpha1CertificateSigningRequestSpec', + 'status': 'V1alpha1CertificateSigningRequestStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1CertificateSigningRequest. + + + :return: The metadata of this V1alpha1CertificateSigningRequest. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1CertificateSigningRequest. + + + :param metadata: The metadata of this V1alpha1CertificateSigningRequest. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1CertificateSigningRequest. + The certificate request itself and any additional information. + + :return: The spec of this V1alpha1CertificateSigningRequest. + :rtype: V1alpha1CertificateSigningRequestSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1CertificateSigningRequest. + The certificate request itself and any additional information. + + :param spec: The spec of this V1alpha1CertificateSigningRequest. + :type: V1alpha1CertificateSigningRequestSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1alpha1CertificateSigningRequest. + Derived information about the request. + + :return: The status of this V1alpha1CertificateSigningRequest. + :rtype: V1alpha1CertificateSigningRequestStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1alpha1CertificateSigningRequest. + Derived information about the request. + + :param status: The status of this V1alpha1CertificateSigningRequest. + :type: V1alpha1CertificateSigningRequestStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_certificate_signing_request_condition.py b/k8sclient/models/v1alpha1_certificate_signing_request_condition.py new file mode 100644 index 000000000..b05d25d30 --- /dev/null +++ b/k8sclient/models/v1alpha1_certificate_signing_request_condition.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1CertificateSigningRequestCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, last_update_time=None, message=None, reason=None, type=None): + """ + V1alpha1CertificateSigningRequestCondition - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'last_update_time': 'UnversionedTime', + 'message': 'str', + 'reason': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'last_update_time': 'lastUpdateTime', + 'message': 'message', + 'reason': 'reason', + 'type': 'type' + } + + self._last_update_time = last_update_time + self._message = message + self._reason = reason + self._type = type + + + @property + def last_update_time(self): + """ + Gets the last_update_time of this V1alpha1CertificateSigningRequestCondition. + timestamp for the last update to this condition + + :return: The last_update_time of this V1alpha1CertificateSigningRequestCondition. + :rtype: UnversionedTime + """ + return self._last_update_time + + @last_update_time.setter + def last_update_time(self, last_update_time): + """ + Sets the last_update_time of this V1alpha1CertificateSigningRequestCondition. + timestamp for the last update to this condition + + :param last_update_time: The last_update_time of this V1alpha1CertificateSigningRequestCondition. + :type: UnversionedTime + """ + + self._last_update_time = last_update_time + + @property + def message(self): + """ + Gets the message of this V1alpha1CertificateSigningRequestCondition. + human readable message with details about the request state + + :return: The message of this V1alpha1CertificateSigningRequestCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1alpha1CertificateSigningRequestCondition. + human readable message with details about the request state + + :param message: The message of this V1alpha1CertificateSigningRequestCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1alpha1CertificateSigningRequestCondition. + brief reason for the request state + + :return: The reason of this V1alpha1CertificateSigningRequestCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1alpha1CertificateSigningRequestCondition. + brief reason for the request state + + :param reason: The reason of this V1alpha1CertificateSigningRequestCondition. + :type: str + """ + + self._reason = reason + + @property + def type(self): + """ + Gets the type of this V1alpha1CertificateSigningRequestCondition. + request approval state, currently Approved or Denied. + + :return: The type of this V1alpha1CertificateSigningRequestCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1alpha1CertificateSigningRequestCondition. + request approval state, currently Approved or Denied. + + :param type: The type of this V1alpha1CertificateSigningRequestCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_certificate_signing_request_list.py b/k8sclient/models/v1alpha1_certificate_signing_request_list.py new file mode 100644 index 000000000..6c5b721c7 --- /dev/null +++ b/k8sclient/models/v1alpha1_certificate_signing_request_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1CertificateSigningRequestList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1alpha1CertificateSigningRequestList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1alpha1CertificateSigningRequest]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1alpha1CertificateSigningRequestList. + + + :return: The items of this V1alpha1CertificateSigningRequestList. + :rtype: list[V1alpha1CertificateSigningRequest] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1CertificateSigningRequestList. + + + :param items: The items of this V1alpha1CertificateSigningRequestList. + :type: list[V1alpha1CertificateSigningRequest] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1CertificateSigningRequestList. + + + :return: The metadata of this V1alpha1CertificateSigningRequestList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1CertificateSigningRequestList. + + + :param metadata: The metadata of this V1alpha1CertificateSigningRequestList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_certificate_signing_request_spec.py b/k8sclient/models/v1alpha1_certificate_signing_request_spec.py new file mode 100644 index 000000000..a896c60a5 --- /dev/null +++ b/k8sclient/models/v1alpha1_certificate_signing_request_spec.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1CertificateSigningRequestSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, groups=None, request=None, uid=None, username=None): + """ + V1alpha1CertificateSigningRequestSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'groups': 'list[str]', + 'request': 'str', + 'uid': 'str', + 'username': 'str' + } + + self.attribute_map = { + 'groups': 'groups', + 'request': 'request', + 'uid': 'uid', + 'username': 'username' + } + + self._groups = groups + self._request = request + self._uid = uid + self._username = username + + + @property + def groups(self): + """ + Gets the groups of this V1alpha1CertificateSigningRequestSpec. + + + :return: The groups of this V1alpha1CertificateSigningRequestSpec. + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """ + Sets the groups of this V1alpha1CertificateSigningRequestSpec. + + + :param groups: The groups of this V1alpha1CertificateSigningRequestSpec. + :type: list[str] + """ + + self._groups = groups + + @property + def request(self): + """ + Gets the request of this V1alpha1CertificateSigningRequestSpec. + Base64-encoded PKCS#10 CSR data + + :return: The request of this V1alpha1CertificateSigningRequestSpec. + :rtype: str + """ + return self._request + + @request.setter + def request(self, request): + """ + Sets the request of this V1alpha1CertificateSigningRequestSpec. + Base64-encoded PKCS#10 CSR data + + :param request: The request of this V1alpha1CertificateSigningRequestSpec. + :type: str + """ + if request is None: + raise ValueError("Invalid value for `request`, must not be `None`") + + self._request = request + + @property + def uid(self): + """ + Gets the uid of this V1alpha1CertificateSigningRequestSpec. + + + :return: The uid of this V1alpha1CertificateSigningRequestSpec. + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """ + Sets the uid of this V1alpha1CertificateSigningRequestSpec. + + + :param uid: The uid of this V1alpha1CertificateSigningRequestSpec. + :type: str + """ + + self._uid = uid + + @property + def username(self): + """ + Gets the username of this V1alpha1CertificateSigningRequestSpec. + Information about the requesting user (if relevant) See user.Info interface for details + + :return: The username of this V1alpha1CertificateSigningRequestSpec. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """ + Sets the username of this V1alpha1CertificateSigningRequestSpec. + Information about the requesting user (if relevant) See user.Info interface for details + + :param username: The username of this V1alpha1CertificateSigningRequestSpec. + :type: str + """ + + self._username = username + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_certificate_signing_request_status.py b/k8sclient/models/v1alpha1_certificate_signing_request_status.py new file mode 100644 index 000000000..63e7f5c26 --- /dev/null +++ b/k8sclient/models/v1alpha1_certificate_signing_request_status.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1CertificateSigningRequestStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, certificate=None, conditions=None): + """ + V1alpha1CertificateSigningRequestStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'certificate': 'str', + 'conditions': 'list[V1alpha1CertificateSigningRequestCondition]' + } + + self.attribute_map = { + 'certificate': 'certificate', + 'conditions': 'conditions' + } + + self._certificate = certificate + self._conditions = conditions + + + @property + def certificate(self): + """ + Gets the certificate of this V1alpha1CertificateSigningRequestStatus. + If request was approved, the controller will place the issued certificate here. + + :return: The certificate of this V1alpha1CertificateSigningRequestStatus. + :rtype: str + """ + return self._certificate + + @certificate.setter + def certificate(self, certificate): + """ + Sets the certificate of this V1alpha1CertificateSigningRequestStatus. + If request was approved, the controller will place the issued certificate here. + + :param certificate: The certificate of this V1alpha1CertificateSigningRequestStatus. + :type: str + """ + + self._certificate = certificate + + @property + def conditions(self): + """ + Gets the conditions of this V1alpha1CertificateSigningRequestStatus. + Conditions applied to the request, such as approval or denial. + + :return: The conditions of this V1alpha1CertificateSigningRequestStatus. + :rtype: list[V1alpha1CertificateSigningRequestCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1alpha1CertificateSigningRequestStatus. + Conditions applied to the request, such as approval or denial. + + :param conditions: The conditions of this V1alpha1CertificateSigningRequestStatus. + :type: list[V1alpha1CertificateSigningRequestCondition] + """ + + self._conditions = conditions + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_cluster_role.py b/k8sclient/models/v1alpha1_cluster_role.py new file mode 100644 index 000000000..f0a4139b9 --- /dev/null +++ b/k8sclient/models/v1alpha1_cluster_role.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1ClusterRole(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, rules=None): + """ + V1alpha1ClusterRole - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'rules': 'list[V1alpha1PolicyRule]' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'rules': 'rules' + } + + self._metadata = metadata + self._rules = rules + + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1ClusterRole. + Standard object's metadata. + + :return: The metadata of this V1alpha1ClusterRole. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1ClusterRole. + Standard object's metadata. + + :param metadata: The metadata of this V1alpha1ClusterRole. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def rules(self): + """ + Gets the rules of this V1alpha1ClusterRole. + Rules holds all the PolicyRules for this ClusterRole + + :return: The rules of this V1alpha1ClusterRole. + :rtype: list[V1alpha1PolicyRule] + """ + return self._rules + + @rules.setter + def rules(self, rules): + """ + Sets the rules of this V1alpha1ClusterRole. + Rules holds all the PolicyRules for this ClusterRole + + :param rules: The rules of this V1alpha1ClusterRole. + :type: list[V1alpha1PolicyRule] + """ + if rules is None: + raise ValueError("Invalid value for `rules`, must not be `None`") + + self._rules = rules + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_cluster_role_binding.py b/k8sclient/models/v1alpha1_cluster_role_binding.py new file mode 100644 index 000000000..202ab949a --- /dev/null +++ b/k8sclient/models/v1alpha1_cluster_role_binding.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1ClusterRoleBinding(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, role_ref=None, subjects=None): + """ + V1alpha1ClusterRoleBinding - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'role_ref': 'V1alpha1RoleRef', + 'subjects': 'list[V1alpha1Subject]' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'role_ref': 'roleRef', + 'subjects': 'subjects' + } + + self._metadata = metadata + self._role_ref = role_ref + self._subjects = subjects + + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1ClusterRoleBinding. + Standard object's metadata. + + :return: The metadata of this V1alpha1ClusterRoleBinding. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1ClusterRoleBinding. + Standard object's metadata. + + :param metadata: The metadata of this V1alpha1ClusterRoleBinding. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def role_ref(self): + """ + Gets the role_ref of this V1alpha1ClusterRoleBinding. + RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + + :return: The role_ref of this V1alpha1ClusterRoleBinding. + :rtype: V1alpha1RoleRef + """ + return self._role_ref + + @role_ref.setter + def role_ref(self, role_ref): + """ + Sets the role_ref of this V1alpha1ClusterRoleBinding. + RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + + :param role_ref: The role_ref of this V1alpha1ClusterRoleBinding. + :type: V1alpha1RoleRef + """ + if role_ref is None: + raise ValueError("Invalid value for `role_ref`, must not be `None`") + + self._role_ref = role_ref + + @property + def subjects(self): + """ + Gets the subjects of this V1alpha1ClusterRoleBinding. + Subjects holds references to the objects the role applies to. + + :return: The subjects of this V1alpha1ClusterRoleBinding. + :rtype: list[V1alpha1Subject] + """ + return self._subjects + + @subjects.setter + def subjects(self, subjects): + """ + Sets the subjects of this V1alpha1ClusterRoleBinding. + Subjects holds references to the objects the role applies to. + + :param subjects: The subjects of this V1alpha1ClusterRoleBinding. + :type: list[V1alpha1Subject] + """ + if subjects is None: + raise ValueError("Invalid value for `subjects`, must not be `None`") + + self._subjects = subjects + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_cluster_role_binding_list.py b/k8sclient/models/v1alpha1_cluster_role_binding_list.py new file mode 100644 index 000000000..04ee3f091 --- /dev/null +++ b/k8sclient/models/v1alpha1_cluster_role_binding_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1ClusterRoleBindingList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1alpha1ClusterRoleBindingList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1alpha1ClusterRoleBinding]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1alpha1ClusterRoleBindingList. + Items is a list of ClusterRoleBindings + + :return: The items of this V1alpha1ClusterRoleBindingList. + :rtype: list[V1alpha1ClusterRoleBinding] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1ClusterRoleBindingList. + Items is a list of ClusterRoleBindings + + :param items: The items of this V1alpha1ClusterRoleBindingList. + :type: list[V1alpha1ClusterRoleBinding] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1ClusterRoleBindingList. + Standard object's metadata. + + :return: The metadata of this V1alpha1ClusterRoleBindingList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1ClusterRoleBindingList. + Standard object's metadata. + + :param metadata: The metadata of this V1alpha1ClusterRoleBindingList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_cluster_role_list.py b/k8sclient/models/v1alpha1_cluster_role_list.py new file mode 100644 index 000000000..36101bb70 --- /dev/null +++ b/k8sclient/models/v1alpha1_cluster_role_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1ClusterRoleList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1alpha1ClusterRoleList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1alpha1ClusterRole]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1alpha1ClusterRoleList. + Items is a list of ClusterRoles + + :return: The items of this V1alpha1ClusterRoleList. + :rtype: list[V1alpha1ClusterRole] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1ClusterRoleList. + Items is a list of ClusterRoles + + :param items: The items of this V1alpha1ClusterRoleList. + :type: list[V1alpha1ClusterRole] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1ClusterRoleList. + Standard object's metadata. + + :return: The metadata of this V1alpha1ClusterRoleList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1ClusterRoleList. + Standard object's metadata. + + :param metadata: The metadata of this V1alpha1ClusterRoleList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_eviction.py b/k8sclient/models/v1alpha1_eviction.py new file mode 100644 index 000000000..2024c5b76 --- /dev/null +++ b/k8sclient/models/v1alpha1_eviction.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1Eviction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, delete_options=None, metadata=None): + """ + V1alpha1Eviction - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'delete_options': 'V1DeleteOptions', + 'metadata': 'V1ObjectMeta' + } + + self.attribute_map = { + 'delete_options': 'deleteOptions', + 'metadata': 'metadata' + } + + self._delete_options = delete_options + self._metadata = metadata + + + @property + def delete_options(self): + """ + Gets the delete_options of this V1alpha1Eviction. + DeleteOptions may be provided + + :return: The delete_options of this V1alpha1Eviction. + :rtype: V1DeleteOptions + """ + return self._delete_options + + @delete_options.setter + def delete_options(self, delete_options): + """ + Sets the delete_options of this V1alpha1Eviction. + DeleteOptions may be provided + + :param delete_options: The delete_options of this V1alpha1Eviction. + :type: V1DeleteOptions + """ + + self._delete_options = delete_options + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1Eviction. + ObjectMeta describes the pod that is being evicted. + + :return: The metadata of this V1alpha1Eviction. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1Eviction. + ObjectMeta describes the pod that is being evicted. + + :param metadata: The metadata of this V1alpha1Eviction. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_pod_disruption_budget.py b/k8sclient/models/v1alpha1_pod_disruption_budget.py new file mode 100644 index 000000000..c563e7a7d --- /dev/null +++ b/k8sclient/models/v1alpha1_pod_disruption_budget.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1PodDisruptionBudget(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1alpha1PodDisruptionBudget - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1alpha1PodDisruptionBudgetSpec', + 'status': 'V1alpha1PodDisruptionBudgetStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1PodDisruptionBudget. + + + :return: The metadata of this V1alpha1PodDisruptionBudget. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1PodDisruptionBudget. + + + :param metadata: The metadata of this V1alpha1PodDisruptionBudget. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1PodDisruptionBudget. + Specification of the desired behavior of the PodDisruptionBudget. + + :return: The spec of this V1alpha1PodDisruptionBudget. + :rtype: V1alpha1PodDisruptionBudgetSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1PodDisruptionBudget. + Specification of the desired behavior of the PodDisruptionBudget. + + :param spec: The spec of this V1alpha1PodDisruptionBudget. + :type: V1alpha1PodDisruptionBudgetSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1alpha1PodDisruptionBudget. + Most recently observed status of the PodDisruptionBudget. + + :return: The status of this V1alpha1PodDisruptionBudget. + :rtype: V1alpha1PodDisruptionBudgetStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1alpha1PodDisruptionBudget. + Most recently observed status of the PodDisruptionBudget. + + :param status: The status of this V1alpha1PodDisruptionBudget. + :type: V1alpha1PodDisruptionBudgetStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_pod_disruption_budget_list.py b/k8sclient/models/v1alpha1_pod_disruption_budget_list.py new file mode 100644 index 000000000..f610a3728 --- /dev/null +++ b/k8sclient/models/v1alpha1_pod_disruption_budget_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1PodDisruptionBudgetList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1alpha1PodDisruptionBudgetList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1alpha1PodDisruptionBudget]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1alpha1PodDisruptionBudgetList. + + + :return: The items of this V1alpha1PodDisruptionBudgetList. + :rtype: list[V1alpha1PodDisruptionBudget] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1PodDisruptionBudgetList. + + + :param items: The items of this V1alpha1PodDisruptionBudgetList. + :type: list[V1alpha1PodDisruptionBudget] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1PodDisruptionBudgetList. + + + :return: The metadata of this V1alpha1PodDisruptionBudgetList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1PodDisruptionBudgetList. + + + :param metadata: The metadata of this V1alpha1PodDisruptionBudgetList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_pod_disruption_budget_spec.py b/k8sclient/models/v1alpha1_pod_disruption_budget_spec.py new file mode 100644 index 000000000..e9d4ead58 --- /dev/null +++ b/k8sclient/models/v1alpha1_pod_disruption_budget_spec.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1PodDisruptionBudgetSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, min_available=None, selector=None): + """ + V1alpha1PodDisruptionBudgetSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'min_available': 'IntstrIntOrString', + 'selector': 'UnversionedLabelSelector' + } + + self.attribute_map = { + 'min_available': 'minAvailable', + 'selector': 'selector' + } + + self._min_available = min_available + self._selector = selector + + + @property + def min_available(self): + """ + Gets the min_available of this V1alpha1PodDisruptionBudgetSpec. + An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". + + :return: The min_available of this V1alpha1PodDisruptionBudgetSpec. + :rtype: IntstrIntOrString + """ + return self._min_available + + @min_available.setter + def min_available(self, min_available): + """ + Sets the min_available of this V1alpha1PodDisruptionBudgetSpec. + An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". + + :param min_available: The min_available of this V1alpha1PodDisruptionBudgetSpec. + :type: IntstrIntOrString + """ + + self._min_available = min_available + + @property + def selector(self): + """ + Gets the selector of this V1alpha1PodDisruptionBudgetSpec. + Label query over pods whose evictions are managed by the disruption budget. + + :return: The selector of this V1alpha1PodDisruptionBudgetSpec. + :rtype: UnversionedLabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1alpha1PodDisruptionBudgetSpec. + Label query over pods whose evictions are managed by the disruption budget. + + :param selector: The selector of this V1alpha1PodDisruptionBudgetSpec. + :type: UnversionedLabelSelector + """ + + self._selector = selector + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_pod_disruption_budget_status.py b/k8sclient/models/v1alpha1_pod_disruption_budget_status.py new file mode 100644 index 000000000..7f9024651 --- /dev/null +++ b/k8sclient/models/v1alpha1_pod_disruption_budget_status.py @@ -0,0 +1,212 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1PodDisruptionBudgetStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, current_healthy=None, desired_healthy=None, disruption_allowed=None, expected_pods=None): + """ + V1alpha1PodDisruptionBudgetStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'current_healthy': 'int', + 'desired_healthy': 'int', + 'disruption_allowed': 'bool', + 'expected_pods': 'int' + } + + self.attribute_map = { + 'current_healthy': 'currentHealthy', + 'desired_healthy': 'desiredHealthy', + 'disruption_allowed': 'disruptionAllowed', + 'expected_pods': 'expectedPods' + } + + self._current_healthy = current_healthy + self._desired_healthy = desired_healthy + self._disruption_allowed = disruption_allowed + self._expected_pods = expected_pods + + + @property + def current_healthy(self): + """ + Gets the current_healthy of this V1alpha1PodDisruptionBudgetStatus. + current number of healthy pods + + :return: The current_healthy of this V1alpha1PodDisruptionBudgetStatus. + :rtype: int + """ + return self._current_healthy + + @current_healthy.setter + def current_healthy(self, current_healthy): + """ + Sets the current_healthy of this V1alpha1PodDisruptionBudgetStatus. + current number of healthy pods + + :param current_healthy: The current_healthy of this V1alpha1PodDisruptionBudgetStatus. + :type: int + """ + if current_healthy is None: + raise ValueError("Invalid value for `current_healthy`, must not be `None`") + + self._current_healthy = current_healthy + + @property + def desired_healthy(self): + """ + Gets the desired_healthy of this V1alpha1PodDisruptionBudgetStatus. + minimum desired number of healthy pods + + :return: The desired_healthy of this V1alpha1PodDisruptionBudgetStatus. + :rtype: int + """ + return self._desired_healthy + + @desired_healthy.setter + def desired_healthy(self, desired_healthy): + """ + Sets the desired_healthy of this V1alpha1PodDisruptionBudgetStatus. + minimum desired number of healthy pods + + :param desired_healthy: The desired_healthy of this V1alpha1PodDisruptionBudgetStatus. + :type: int + """ + if desired_healthy is None: + raise ValueError("Invalid value for `desired_healthy`, must not be `None`") + + self._desired_healthy = desired_healthy + + @property + def disruption_allowed(self): + """ + Gets the disruption_allowed of this V1alpha1PodDisruptionBudgetStatus. + Whether or not a disruption is currently allowed. + + :return: The disruption_allowed of this V1alpha1PodDisruptionBudgetStatus. + :rtype: bool + """ + return self._disruption_allowed + + @disruption_allowed.setter + def disruption_allowed(self, disruption_allowed): + """ + Sets the disruption_allowed of this V1alpha1PodDisruptionBudgetStatus. + Whether or not a disruption is currently allowed. + + :param disruption_allowed: The disruption_allowed of this V1alpha1PodDisruptionBudgetStatus. + :type: bool + """ + if disruption_allowed is None: + raise ValueError("Invalid value for `disruption_allowed`, must not be `None`") + + self._disruption_allowed = disruption_allowed + + @property + def expected_pods(self): + """ + Gets the expected_pods of this V1alpha1PodDisruptionBudgetStatus. + total number of pods counted by this disruption budget + + :return: The expected_pods of this V1alpha1PodDisruptionBudgetStatus. + :rtype: int + """ + return self._expected_pods + + @expected_pods.setter + def expected_pods(self, expected_pods): + """ + Sets the expected_pods of this V1alpha1PodDisruptionBudgetStatus. + total number of pods counted by this disruption budget + + :param expected_pods: The expected_pods of this V1alpha1PodDisruptionBudgetStatus. + :type: int + """ + if expected_pods is None: + raise ValueError("Invalid value for `expected_pods`, must not be `None`") + + self._expected_pods = expected_pods + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_policy_rule.py b/k8sclient/models/v1alpha1_policy_rule.py new file mode 100644 index 000000000..a20ab6a04 --- /dev/null +++ b/k8sclient/models/v1alpha1_policy_rule.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1PolicyRule(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_groups=None, attribute_restrictions=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None): + """ + V1alpha1PolicyRule - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_groups': 'list[str]', + 'attribute_restrictions': 'RuntimeRawExtension', + 'non_resource_ur_ls': 'list[str]', + 'resource_names': 'list[str]', + 'resources': 'list[str]', + 'verbs': 'list[str]' + } + + self.attribute_map = { + 'api_groups': 'apiGroups', + 'attribute_restrictions': 'attributeRestrictions', + 'non_resource_ur_ls': 'nonResourceURLs', + 'resource_names': 'resourceNames', + 'resources': 'resources', + 'verbs': 'verbs' + } + + self._api_groups = api_groups + self._attribute_restrictions = attribute_restrictions + self._non_resource_ur_ls = non_resource_ur_ls + self._resource_names = resource_names + self._resources = resources + self._verbs = verbs + + + @property + def api_groups(self): + """ + Gets the api_groups of this V1alpha1PolicyRule. + APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + + :return: The api_groups of this V1alpha1PolicyRule. + :rtype: list[str] + """ + return self._api_groups + + @api_groups.setter + def api_groups(self, api_groups): + """ + Sets the api_groups of this V1alpha1PolicyRule. + APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + + :param api_groups: The api_groups of this V1alpha1PolicyRule. + :type: list[str] + """ + + self._api_groups = api_groups + + @property + def attribute_restrictions(self): + """ + Gets the attribute_restrictions of this V1alpha1PolicyRule. + AttributeRestrictions will vary depending on what the Authorizer/AuthorizationAttributeBuilder pair supports. If the Authorizer does not recognize how to handle the AttributeRestrictions, the Authorizer should report an error. + + :return: The attribute_restrictions of this V1alpha1PolicyRule. + :rtype: RuntimeRawExtension + """ + return self._attribute_restrictions + + @attribute_restrictions.setter + def attribute_restrictions(self, attribute_restrictions): + """ + Sets the attribute_restrictions of this V1alpha1PolicyRule. + AttributeRestrictions will vary depending on what the Authorizer/AuthorizationAttributeBuilder pair supports. If the Authorizer does not recognize how to handle the AttributeRestrictions, the Authorizer should report an error. + + :param attribute_restrictions: The attribute_restrictions of this V1alpha1PolicyRule. + :type: RuntimeRawExtension + """ + + self._attribute_restrictions = attribute_restrictions + + @property + def non_resource_ur_ls(self): + """ + Gets the non_resource_ur_ls of this V1alpha1PolicyRule. + NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. + + :return: The non_resource_ur_ls of this V1alpha1PolicyRule. + :rtype: list[str] + """ + return self._non_resource_ur_ls + + @non_resource_ur_ls.setter + def non_resource_ur_ls(self, non_resource_ur_ls): + """ + Sets the non_resource_ur_ls of this V1alpha1PolicyRule. + NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. + + :param non_resource_ur_ls: The non_resource_ur_ls of this V1alpha1PolicyRule. + :type: list[str] + """ + + self._non_resource_ur_ls = non_resource_ur_ls + + @property + def resource_names(self): + """ + Gets the resource_names of this V1alpha1PolicyRule. + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + + :return: The resource_names of this V1alpha1PolicyRule. + :rtype: list[str] + """ + return self._resource_names + + @resource_names.setter + def resource_names(self, resource_names): + """ + Sets the resource_names of this V1alpha1PolicyRule. + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + + :param resource_names: The resource_names of this V1alpha1PolicyRule. + :type: list[str] + """ + + self._resource_names = resource_names + + @property + def resources(self): + """ + Gets the resources of this V1alpha1PolicyRule. + Resources is a list of resources this rule applies to. ResourceAll represents all resources. + + :return: The resources of this V1alpha1PolicyRule. + :rtype: list[str] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this V1alpha1PolicyRule. + Resources is a list of resources this rule applies to. ResourceAll represents all resources. + + :param resources: The resources of this V1alpha1PolicyRule. + :type: list[str] + """ + + self._resources = resources + + @property + def verbs(self): + """ + Gets the verbs of this V1alpha1PolicyRule. + Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + + :return: The verbs of this V1alpha1PolicyRule. + :rtype: list[str] + """ + return self._verbs + + @verbs.setter + def verbs(self, verbs): + """ + Sets the verbs of this V1alpha1PolicyRule. + Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + + :param verbs: The verbs of this V1alpha1PolicyRule. + :type: list[str] + """ + if verbs is None: + raise ValueError("Invalid value for `verbs`, must not be `None`") + + self._verbs = verbs + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_role.py b/k8sclient/models/v1alpha1_role.py new file mode 100644 index 000000000..ad03bd072 --- /dev/null +++ b/k8sclient/models/v1alpha1_role.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1Role(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, rules=None): + """ + V1alpha1Role - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'rules': 'list[V1alpha1PolicyRule]' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'rules': 'rules' + } + + self._metadata = metadata + self._rules = rules + + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1Role. + Standard object's metadata. + + :return: The metadata of this V1alpha1Role. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1Role. + Standard object's metadata. + + :param metadata: The metadata of this V1alpha1Role. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def rules(self): + """ + Gets the rules of this V1alpha1Role. + Rules holds all the PolicyRules for this Role + + :return: The rules of this V1alpha1Role. + :rtype: list[V1alpha1PolicyRule] + """ + return self._rules + + @rules.setter + def rules(self, rules): + """ + Sets the rules of this V1alpha1Role. + Rules holds all the PolicyRules for this Role + + :param rules: The rules of this V1alpha1Role. + :type: list[V1alpha1PolicyRule] + """ + if rules is None: + raise ValueError("Invalid value for `rules`, must not be `None`") + + self._rules = rules + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_role_binding.py b/k8sclient/models/v1alpha1_role_binding.py new file mode 100644 index 000000000..a5a5b983e --- /dev/null +++ b/k8sclient/models/v1alpha1_role_binding.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1RoleBinding(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, role_ref=None, subjects=None): + """ + V1alpha1RoleBinding - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'role_ref': 'V1alpha1RoleRef', + 'subjects': 'list[V1alpha1Subject]' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'role_ref': 'roleRef', + 'subjects': 'subjects' + } + + self._metadata = metadata + self._role_ref = role_ref + self._subjects = subjects + + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1RoleBinding. + Standard object's metadata. + + :return: The metadata of this V1alpha1RoleBinding. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1RoleBinding. + Standard object's metadata. + + :param metadata: The metadata of this V1alpha1RoleBinding. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def role_ref(self): + """ + Gets the role_ref of this V1alpha1RoleBinding. + RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + + :return: The role_ref of this V1alpha1RoleBinding. + :rtype: V1alpha1RoleRef + """ + return self._role_ref + + @role_ref.setter + def role_ref(self, role_ref): + """ + Sets the role_ref of this V1alpha1RoleBinding. + RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + + :param role_ref: The role_ref of this V1alpha1RoleBinding. + :type: V1alpha1RoleRef + """ + if role_ref is None: + raise ValueError("Invalid value for `role_ref`, must not be `None`") + + self._role_ref = role_ref + + @property + def subjects(self): + """ + Gets the subjects of this V1alpha1RoleBinding. + Subjects holds references to the objects the role applies to. + + :return: The subjects of this V1alpha1RoleBinding. + :rtype: list[V1alpha1Subject] + """ + return self._subjects + + @subjects.setter + def subjects(self, subjects): + """ + Sets the subjects of this V1alpha1RoleBinding. + Subjects holds references to the objects the role applies to. + + :param subjects: The subjects of this V1alpha1RoleBinding. + :type: list[V1alpha1Subject] + """ + if subjects is None: + raise ValueError("Invalid value for `subjects`, must not be `None`") + + self._subjects = subjects + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_role_binding_list.py b/k8sclient/models/v1alpha1_role_binding_list.py new file mode 100644 index 000000000..dfafba480 --- /dev/null +++ b/k8sclient/models/v1alpha1_role_binding_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1RoleBindingList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1alpha1RoleBindingList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1alpha1RoleBinding]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1alpha1RoleBindingList. + Items is a list of RoleBindings + + :return: The items of this V1alpha1RoleBindingList. + :rtype: list[V1alpha1RoleBinding] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1RoleBindingList. + Items is a list of RoleBindings + + :param items: The items of this V1alpha1RoleBindingList. + :type: list[V1alpha1RoleBinding] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1RoleBindingList. + Standard object's metadata. + + :return: The metadata of this V1alpha1RoleBindingList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1RoleBindingList. + Standard object's metadata. + + :param metadata: The metadata of this V1alpha1RoleBindingList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_role_list.py b/k8sclient/models/v1alpha1_role_list.py new file mode 100644 index 000000000..5c8920a62 --- /dev/null +++ b/k8sclient/models/v1alpha1_role_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1RoleList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1alpha1RoleList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1alpha1Role]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1alpha1RoleList. + Items is a list of Roles + + :return: The items of this V1alpha1RoleList. + :rtype: list[V1alpha1Role] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1RoleList. + Items is a list of Roles + + :param items: The items of this V1alpha1RoleList. + :type: list[V1alpha1Role] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1RoleList. + Standard object's metadata. + + :return: The metadata of this V1alpha1RoleList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1RoleList. + Standard object's metadata. + + :param metadata: The metadata of this V1alpha1RoleList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_role_ref.py b/k8sclient/models/v1alpha1_role_ref.py new file mode 100644 index 000000000..52b6bdef4 --- /dev/null +++ b/k8sclient/models/v1alpha1_role_ref.py @@ -0,0 +1,184 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1RoleRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_group=None, kind=None, name=None): + """ + V1alpha1RoleRef - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_group': 'str', + 'kind': 'str', + 'name': 'str' + } + + self.attribute_map = { + 'api_group': 'apiGroup', + 'kind': 'kind', + 'name': 'name' + } + + self._api_group = api_group + self._kind = kind + self._name = name + + + @property + def api_group(self): + """ + Gets the api_group of this V1alpha1RoleRef. + APIGroup is the group for the resource being referenced + + :return: The api_group of this V1alpha1RoleRef. + :rtype: str + """ + return self._api_group + + @api_group.setter + def api_group(self, api_group): + """ + Sets the api_group of this V1alpha1RoleRef. + APIGroup is the group for the resource being referenced + + :param api_group: The api_group of this V1alpha1RoleRef. + :type: str + """ + if api_group is None: + raise ValueError("Invalid value for `api_group`, must not be `None`") + + self._api_group = api_group + + @property + def kind(self): + """ + Gets the kind of this V1alpha1RoleRef. + Kind is the type of resource being referenced + + :return: The kind of this V1alpha1RoleRef. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1RoleRef. + Kind is the type of resource being referenced + + :param kind: The kind of this V1alpha1RoleRef. + :type: str + """ + if kind is None: + raise ValueError("Invalid value for `kind`, must not be `None`") + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this V1alpha1RoleRef. + Name is the name of resource being referenced + + :return: The name of this V1alpha1RoleRef. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1alpha1RoleRef. + Name is the name of resource being referenced + + :param name: The name of this V1alpha1RoleRef. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_stateful_set.py b/k8sclient/models/v1alpha1_stateful_set.py new file mode 100644 index 000000000..122616785 --- /dev/null +++ b/k8sclient/models/v1alpha1_stateful_set.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1StatefulSet(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1alpha1StatefulSet - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1alpha1StatefulSetSpec', + 'status': 'V1alpha1StatefulSetStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1StatefulSet. + + + :return: The metadata of this V1alpha1StatefulSet. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1StatefulSet. + + + :param metadata: The metadata of this V1alpha1StatefulSet. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1StatefulSet. + Spec defines the desired identities of pods in this set. + + :return: The spec of this V1alpha1StatefulSet. + :rtype: V1alpha1StatefulSetSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1StatefulSet. + Spec defines the desired identities of pods in this set. + + :param spec: The spec of this V1alpha1StatefulSet. + :type: V1alpha1StatefulSetSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1alpha1StatefulSet. + Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + + :return: The status of this V1alpha1StatefulSet. + :rtype: V1alpha1StatefulSetStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1alpha1StatefulSet. + Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + + :param status: The status of this V1alpha1StatefulSet. + :type: V1alpha1StatefulSetStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_stateful_set_list.py b/k8sclient/models/v1alpha1_stateful_set_list.py new file mode 100644 index 000000000..d5424fae4 --- /dev/null +++ b/k8sclient/models/v1alpha1_stateful_set_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1StatefulSetList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1alpha1StatefulSetList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1alpha1StatefulSet]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1alpha1StatefulSetList. + + + :return: The items of this V1alpha1StatefulSetList. + :rtype: list[V1alpha1StatefulSet] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1StatefulSetList. + + + :param items: The items of this V1alpha1StatefulSetList. + :type: list[V1alpha1StatefulSet] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1StatefulSetList. + + + :return: The metadata of this V1alpha1StatefulSetList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1StatefulSetList. + + + :param metadata: The metadata of this V1alpha1StatefulSetList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_stateful_set_spec.py b/k8sclient/models/v1alpha1_stateful_set_spec.py new file mode 100644 index 000000000..0ee8745ef --- /dev/null +++ b/k8sclient/models/v1alpha1_stateful_set_spec.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1StatefulSetSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, replicas=None, selector=None, service_name=None, template=None, volume_claim_templates=None): + """ + V1alpha1StatefulSetSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'replicas': 'int', + 'selector': 'UnversionedLabelSelector', + 'service_name': 'str', + 'template': 'V1PodTemplateSpec', + 'volume_claim_templates': 'list[V1PersistentVolumeClaim]' + } + + self.attribute_map = { + 'replicas': 'replicas', + 'selector': 'selector', + 'service_name': 'serviceName', + 'template': 'template', + 'volume_claim_templates': 'volumeClaimTemplates' + } + + self._replicas = replicas + self._selector = selector + self._service_name = service_name + self._template = template + self._volume_claim_templates = volume_claim_templates + + + @property + def replicas(self): + """ + Gets the replicas of this V1alpha1StatefulSetSpec. + Replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + + :return: The replicas of this V1alpha1StatefulSetSpec. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1alpha1StatefulSetSpec. + Replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + + :param replicas: The replicas of this V1alpha1StatefulSetSpec. + :type: int + """ + + self._replicas = replicas + + @property + def selector(self): + """ + Gets the selector of this V1alpha1StatefulSetSpec. + Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :return: The selector of this V1alpha1StatefulSetSpec. + :rtype: UnversionedLabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1alpha1StatefulSetSpec. + Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :param selector: The selector of this V1alpha1StatefulSetSpec. + :type: UnversionedLabelSelector + """ + + self._selector = selector + + @property + def service_name(self): + """ + Gets the service_name of this V1alpha1StatefulSetSpec. + ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. + + :return: The service_name of this V1alpha1StatefulSetSpec. + :rtype: str + """ + return self._service_name + + @service_name.setter + def service_name(self, service_name): + """ + Sets the service_name of this V1alpha1StatefulSetSpec. + ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. + + :param service_name: The service_name of this V1alpha1StatefulSetSpec. + :type: str + """ + if service_name is None: + raise ValueError("Invalid value for `service_name`, must not be `None`") + + self._service_name = service_name + + @property + def template(self): + """ + Gets the template of this V1alpha1StatefulSetSpec. + Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + + :return: The template of this V1alpha1StatefulSetSpec. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1alpha1StatefulSetSpec. + Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + + :param template: The template of this V1alpha1StatefulSetSpec. + :type: V1PodTemplateSpec + """ + if template is None: + raise ValueError("Invalid value for `template`, must not be `None`") + + self._template = template + + @property + def volume_claim_templates(self): + """ + Gets the volume_claim_templates of this V1alpha1StatefulSetSpec. + VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + + :return: The volume_claim_templates of this V1alpha1StatefulSetSpec. + :rtype: list[V1PersistentVolumeClaim] + """ + return self._volume_claim_templates + + @volume_claim_templates.setter + def volume_claim_templates(self, volume_claim_templates): + """ + Sets the volume_claim_templates of this V1alpha1StatefulSetSpec. + VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + + :param volume_claim_templates: The volume_claim_templates of this V1alpha1StatefulSetSpec. + :type: list[V1PersistentVolumeClaim] + """ + + self._volume_claim_templates = volume_claim_templates + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_stateful_set_status.py b/k8sclient/models/v1alpha1_stateful_set_status.py new file mode 100644 index 000000000..d45a1eb29 --- /dev/null +++ b/k8sclient/models/v1alpha1_stateful_set_status.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1StatefulSetStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, observed_generation=None, replicas=None): + """ + V1alpha1StatefulSetStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'observed_generation': 'int', + 'replicas': 'int' + } + + self.attribute_map = { + 'observed_generation': 'observedGeneration', + 'replicas': 'replicas' + } + + self._observed_generation = observed_generation + self._replicas = replicas + + + @property + def observed_generation(self): + """ + Gets the observed_generation of this V1alpha1StatefulSetStatus. + most recent generation observed by this autoscaler. + + :return: The observed_generation of this V1alpha1StatefulSetStatus. + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """ + Sets the observed_generation of this V1alpha1StatefulSetStatus. + most recent generation observed by this autoscaler. + + :param observed_generation: The observed_generation of this V1alpha1StatefulSetStatus. + :type: int + """ + + self._observed_generation = observed_generation + + @property + def replicas(self): + """ + Gets the replicas of this V1alpha1StatefulSetStatus. + Replicas is the number of actual replicas. + + :return: The replicas of this V1alpha1StatefulSetStatus. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1alpha1StatefulSetStatus. + Replicas is the number of actual replicas. + + :param replicas: The replicas of this V1alpha1StatefulSetStatus. + :type: int + """ + if replicas is None: + raise ValueError("Invalid value for `replicas`, must not be `None`") + + self._replicas = replicas + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1alpha1_subject.py b/k8sclient/models/v1alpha1_subject.py new file mode 100644 index 000000000..8d6bba238 --- /dev/null +++ b/k8sclient/models/v1alpha1_subject.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1Subject(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, name=None, namespace=None): + """ + V1alpha1Subject - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'name': 'str', + 'namespace': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'name': 'name', + 'namespace': 'namespace' + } + + self._api_version = api_version + self._kind = kind + self._name = name + self._namespace = namespace + + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1Subject. + APIVersion holds the API group and version of the referenced object. + + :return: The api_version of this V1alpha1Subject. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1Subject. + APIVersion holds the API group and version of the referenced object. + + :param api_version: The api_version of this V1alpha1Subject. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1alpha1Subject. + Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + + :return: The kind of this V1alpha1Subject. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1Subject. + Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + + :param kind: The kind of this V1alpha1Subject. + :type: str + """ + if kind is None: + raise ValueError("Invalid value for `kind`, must not be `None`") + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this V1alpha1Subject. + Name of the object being referenced. + + :return: The name of this V1alpha1Subject. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1alpha1Subject. + Name of the object being referenced. + + :param name: The name of this V1alpha1Subject. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def namespace(self): + """ + Gets the namespace of this V1alpha1Subject. + Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. + + :return: The namespace of this V1alpha1Subject. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1alpha1Subject. + Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. + + :param namespace: The namespace of this V1alpha1Subject. + :type: str + """ + + self._namespace = namespace + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_api_version.py b/k8sclient/models/v1beta1_api_version.py new file mode 100644 index 000000000..0ac1d7907 --- /dev/null +++ b/k8sclient/models/v1beta1_api_version.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1APIVersion(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, name=None): + """ + V1beta1APIVersion - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str' + } + + self.attribute_map = { + 'name': 'name' + } + + self._name = name + + + @property + def name(self): + """ + Gets the name of this V1beta1APIVersion. + Name of this version (e.g. 'v1'). + + :return: The name of this V1beta1APIVersion. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1beta1APIVersion. + Name of this version (e.g. 'v1'). + + :param name: The name of this V1beta1APIVersion. + :type: str + """ + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_cpu_target_utilization.py b/k8sclient/models/v1beta1_cpu_target_utilization.py new file mode 100644 index 000000000..1367edbda --- /dev/null +++ b/k8sclient/models/v1beta1_cpu_target_utilization.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1CPUTargetUtilization(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, target_percentage=None): + """ + V1beta1CPUTargetUtilization - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'target_percentage': 'int' + } + + self.attribute_map = { + 'target_percentage': 'targetPercentage' + } + + self._target_percentage = target_percentage + + + @property + def target_percentage(self): + """ + Gets the target_percentage of this V1beta1CPUTargetUtilization. + fraction of the requested CPU that should be utilized/used, e.g. 70 means that 70% of the requested CPU should be in use. + + :return: The target_percentage of this V1beta1CPUTargetUtilization. + :rtype: int + """ + return self._target_percentage + + @target_percentage.setter + def target_percentage(self, target_percentage): + """ + Sets the target_percentage of this V1beta1CPUTargetUtilization. + fraction of the requested CPU that should be utilized/used, e.g. 70 means that 70% of the requested CPU should be in use. + + :param target_percentage: The target_percentage of this V1beta1CPUTargetUtilization. + :type: int + """ + if target_percentage is None: + raise ValueError("Invalid value for `target_percentage`, must not be `None`") + + self._target_percentage = target_percentage + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_daemon_set.py b/k8sclient/models/v1beta1_daemon_set.py new file mode 100644 index 000000000..697a42760 --- /dev/null +++ b/k8sclient/models/v1beta1_daemon_set.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DaemonSet(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1beta1DaemonSet - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1beta1DaemonSetSpec', + 'status': 'V1beta1DaemonSetStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1DaemonSet. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1beta1DaemonSet. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1DaemonSet. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1beta1DaemonSet. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1DaemonSet. + Spec defines the desired behavior of this daemon set. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The spec of this V1beta1DaemonSet. + :rtype: V1beta1DaemonSetSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1DaemonSet. + Spec defines the desired behavior of this daemon set. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param spec: The spec of this V1beta1DaemonSet. + :type: V1beta1DaemonSetSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1beta1DaemonSet. + Status is the current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The status of this V1beta1DaemonSet. + :rtype: V1beta1DaemonSetStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1DaemonSet. + Status is the current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param status: The status of this V1beta1DaemonSet. + :type: V1beta1DaemonSetStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_daemon_set_list.py b/k8sclient/models/v1beta1_daemon_set_list.py new file mode 100644 index 000000000..960e2ec73 --- /dev/null +++ b/k8sclient/models/v1beta1_daemon_set_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DaemonSetList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1beta1DaemonSetList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1beta1DaemonSet]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1beta1DaemonSetList. + Items is a list of daemon sets. + + :return: The items of this V1beta1DaemonSetList. + :rtype: list[V1beta1DaemonSet] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1DaemonSetList. + Items is a list of daemon sets. + + :param items: The items of this V1beta1DaemonSetList. + :type: list[V1beta1DaemonSet] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1DaemonSetList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1beta1DaemonSetList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1DaemonSetList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1beta1DaemonSetList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_daemon_set_spec.py b/k8sclient/models/v1beta1_daemon_set_spec.py new file mode 100644 index 000000000..8449157f4 --- /dev/null +++ b/k8sclient/models/v1beta1_daemon_set_spec.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DaemonSetSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, selector=None, template=None): + """ + V1beta1DaemonSetSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'selector': 'UnversionedLabelSelector', + 'template': 'V1PodTemplateSpec' + } + + self.attribute_map = { + 'selector': 'selector', + 'template': 'template' + } + + self._selector = selector + self._template = template + + + @property + def selector(self): + """ + Gets the selector of this V1beta1DaemonSetSpec. + Selector is a label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :return: The selector of this V1beta1DaemonSetSpec. + :rtype: UnversionedLabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1beta1DaemonSetSpec. + Selector is a label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :param selector: The selector of this V1beta1DaemonSetSpec. + :type: UnversionedLabelSelector + """ + + self._selector = selector + + @property + def template(self): + """ + Gets the template of this V1beta1DaemonSetSpec. + Template is the object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template + + :return: The template of this V1beta1DaemonSetSpec. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1beta1DaemonSetSpec. + Template is the object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template + + :param template: The template of this V1beta1DaemonSetSpec. + :type: V1PodTemplateSpec + """ + if template is None: + raise ValueError("Invalid value for `template`, must not be `None`") + + self._template = template + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_daemon_set_status.py b/k8sclient/models/v1beta1_daemon_set_status.py new file mode 100644 index 000000000..6e9290a79 --- /dev/null +++ b/k8sclient/models/v1beta1_daemon_set_status.py @@ -0,0 +1,212 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DaemonSetStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, current_number_scheduled=None, desired_number_scheduled=None, number_misscheduled=None, number_ready=None): + """ + V1beta1DaemonSetStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'current_number_scheduled': 'int', + 'desired_number_scheduled': 'int', + 'number_misscheduled': 'int', + 'number_ready': 'int' + } + + self.attribute_map = { + 'current_number_scheduled': 'currentNumberScheduled', + 'desired_number_scheduled': 'desiredNumberScheduled', + 'number_misscheduled': 'numberMisscheduled', + 'number_ready': 'numberReady' + } + + self._current_number_scheduled = current_number_scheduled + self._desired_number_scheduled = desired_number_scheduled + self._number_misscheduled = number_misscheduled + self._number_ready = number_ready + + + @property + def current_number_scheduled(self): + """ + Gets the current_number_scheduled of this V1beta1DaemonSetStatus. + CurrentNumberScheduled is the number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md + + :return: The current_number_scheduled of this V1beta1DaemonSetStatus. + :rtype: int + """ + return self._current_number_scheduled + + @current_number_scheduled.setter + def current_number_scheduled(self, current_number_scheduled): + """ + Sets the current_number_scheduled of this V1beta1DaemonSetStatus. + CurrentNumberScheduled is the number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md + + :param current_number_scheduled: The current_number_scheduled of this V1beta1DaemonSetStatus. + :type: int + """ + if current_number_scheduled is None: + raise ValueError("Invalid value for `current_number_scheduled`, must not be `None`") + + self._current_number_scheduled = current_number_scheduled + + @property + def desired_number_scheduled(self): + """ + Gets the desired_number_scheduled of this V1beta1DaemonSetStatus. + DesiredNumberScheduled is the total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md + + :return: The desired_number_scheduled of this V1beta1DaemonSetStatus. + :rtype: int + """ + return self._desired_number_scheduled + + @desired_number_scheduled.setter + def desired_number_scheduled(self, desired_number_scheduled): + """ + Sets the desired_number_scheduled of this V1beta1DaemonSetStatus. + DesiredNumberScheduled is the total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md + + :param desired_number_scheduled: The desired_number_scheduled of this V1beta1DaemonSetStatus. + :type: int + """ + if desired_number_scheduled is None: + raise ValueError("Invalid value for `desired_number_scheduled`, must not be `None`") + + self._desired_number_scheduled = desired_number_scheduled + + @property + def number_misscheduled(self): + """ + Gets the number_misscheduled of this V1beta1DaemonSetStatus. + NumberMisscheduled is the number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md + + :return: The number_misscheduled of this V1beta1DaemonSetStatus. + :rtype: int + """ + return self._number_misscheduled + + @number_misscheduled.setter + def number_misscheduled(self, number_misscheduled): + """ + Sets the number_misscheduled of this V1beta1DaemonSetStatus. + NumberMisscheduled is the number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md + + :param number_misscheduled: The number_misscheduled of this V1beta1DaemonSetStatus. + :type: int + """ + if number_misscheduled is None: + raise ValueError("Invalid value for `number_misscheduled`, must not be `None`") + + self._number_misscheduled = number_misscheduled + + @property + def number_ready(self): + """ + Gets the number_ready of this V1beta1DaemonSetStatus. + NumberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + + :return: The number_ready of this V1beta1DaemonSetStatus. + :rtype: int + """ + return self._number_ready + + @number_ready.setter + def number_ready(self, number_ready): + """ + Sets the number_ready of this V1beta1DaemonSetStatus. + NumberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + + :param number_ready: The number_ready of this V1beta1DaemonSetStatus. + :type: int + """ + if number_ready is None: + raise ValueError("Invalid value for `number_ready`, must not be `None`") + + self._number_ready = number_ready + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_deployment.py b/k8sclient/models/v1beta1_deployment.py new file mode 100644 index 000000000..306e9d894 --- /dev/null +++ b/k8sclient/models/v1beta1_deployment.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1Deployment(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1beta1Deployment - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1beta1DeploymentSpec', + 'status': 'V1beta1DeploymentStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1Deployment. + Standard object metadata. + + :return: The metadata of this V1beta1Deployment. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1Deployment. + Standard object metadata. + + :param metadata: The metadata of this V1beta1Deployment. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1Deployment. + Specification of the desired behavior of the Deployment. + + :return: The spec of this V1beta1Deployment. + :rtype: V1beta1DeploymentSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1Deployment. + Specification of the desired behavior of the Deployment. + + :param spec: The spec of this V1beta1Deployment. + :type: V1beta1DeploymentSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1beta1Deployment. + Most recently observed status of the Deployment. + + :return: The status of this V1beta1Deployment. + :rtype: V1beta1DeploymentStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1Deployment. + Most recently observed status of the Deployment. + + :param status: The status of this V1beta1Deployment. + :type: V1beta1DeploymentStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_deployment_condition.py b/k8sclient/models/v1beta1_deployment_condition.py new file mode 100644 index 000000000..7e10554d7 --- /dev/null +++ b/k8sclient/models/v1beta1_deployment_condition.py @@ -0,0 +1,268 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DeploymentCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None): + """ + V1beta1DeploymentCondition - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'last_transition_time': 'UnversionedTime', + 'last_update_time': 'UnversionedTime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'last_transition_time': 'lastTransitionTime', + 'last_update_time': 'lastUpdateTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + self._last_transition_time = last_transition_time + self._last_update_time = last_update_time + self._message = message + self._reason = reason + self._status = status + self._type = type + + + @property + def last_transition_time(self): + """ + Gets the last_transition_time of this V1beta1DeploymentCondition. + Last time the condition transitioned from one status to another. + + :return: The last_transition_time of this V1beta1DeploymentCondition. + :rtype: UnversionedTime + """ + return self._last_transition_time + + @last_transition_time.setter + def last_transition_time(self, last_transition_time): + """ + Sets the last_transition_time of this V1beta1DeploymentCondition. + Last time the condition transitioned from one status to another. + + :param last_transition_time: The last_transition_time of this V1beta1DeploymentCondition. + :type: UnversionedTime + """ + if last_transition_time is None: + raise ValueError("Invalid value for `last_transition_time`, must not be `None`") + + self._last_transition_time = last_transition_time + + @property + def last_update_time(self): + """ + Gets the last_update_time of this V1beta1DeploymentCondition. + The last time this condition was updated. + + :return: The last_update_time of this V1beta1DeploymentCondition. + :rtype: UnversionedTime + """ + return self._last_update_time + + @last_update_time.setter + def last_update_time(self, last_update_time): + """ + Sets the last_update_time of this V1beta1DeploymentCondition. + The last time this condition was updated. + + :param last_update_time: The last_update_time of this V1beta1DeploymentCondition. + :type: UnversionedTime + """ + if last_update_time is None: + raise ValueError("Invalid value for `last_update_time`, must not be `None`") + + self._last_update_time = last_update_time + + @property + def message(self): + """ + Gets the message of this V1beta1DeploymentCondition. + A human readable message indicating details about the transition. + + :return: The message of this V1beta1DeploymentCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1beta1DeploymentCondition. + A human readable message indicating details about the transition. + + :param message: The message of this V1beta1DeploymentCondition. + :type: str + """ + if message is None: + raise ValueError("Invalid value for `message`, must not be `None`") + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1beta1DeploymentCondition. + The reason for the condition's last transition. + + :return: The reason of this V1beta1DeploymentCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1beta1DeploymentCondition. + The reason for the condition's last transition. + + :param reason: The reason of this V1beta1DeploymentCondition. + :type: str + """ + if reason is None: + raise ValueError("Invalid value for `reason`, must not be `None`") + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1beta1DeploymentCondition. + Status of the condition, one of True, False, Unknown. + + :return: The status of this V1beta1DeploymentCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1DeploymentCondition. + Status of the condition, one of True, False, Unknown. + + :param status: The status of this V1beta1DeploymentCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1beta1DeploymentCondition. + Type of deployment condition. + + :return: The type of this V1beta1DeploymentCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1beta1DeploymentCondition. + Type of deployment condition. + + :param type: The type of this V1beta1DeploymentCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_deployment_list.py b/k8sclient/models/v1beta1_deployment_list.py new file mode 100644 index 000000000..436d3c343 --- /dev/null +++ b/k8sclient/models/v1beta1_deployment_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DeploymentList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1beta1DeploymentList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1beta1Deployment]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1beta1DeploymentList. + Items is the list of Deployments. + + :return: The items of this V1beta1DeploymentList. + :rtype: list[V1beta1Deployment] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1DeploymentList. + Items is the list of Deployments. + + :param items: The items of this V1beta1DeploymentList. + :type: list[V1beta1Deployment] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1DeploymentList. + Standard list metadata. + + :return: The metadata of this V1beta1DeploymentList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1DeploymentList. + Standard list metadata. + + :param metadata: The metadata of this V1beta1DeploymentList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_deployment_rollback.py b/k8sclient/models/v1beta1_deployment_rollback.py new file mode 100644 index 000000000..7c3585ca0 --- /dev/null +++ b/k8sclient/models/v1beta1_deployment_rollback.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DeploymentRollback(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, name=None, rollback_to=None, updated_annotations=None): + """ + V1beta1DeploymentRollback - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'rollback_to': 'V1beta1RollbackConfig', + 'updated_annotations': 'dict(str, str)' + } + + self.attribute_map = { + 'name': 'name', + 'rollback_to': 'rollbackTo', + 'updated_annotations': 'updatedAnnotations' + } + + self._name = name + self._rollback_to = rollback_to + self._updated_annotations = updated_annotations + + + @property + def name(self): + """ + Gets the name of this V1beta1DeploymentRollback. + Required: This must match the Name of a deployment. + + :return: The name of this V1beta1DeploymentRollback. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1beta1DeploymentRollback. + Required: This must match the Name of a deployment. + + :param name: The name of this V1beta1DeploymentRollback. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def rollback_to(self): + """ + Gets the rollback_to of this V1beta1DeploymentRollback. + The config of this deployment rollback. + + :return: The rollback_to of this V1beta1DeploymentRollback. + :rtype: V1beta1RollbackConfig + """ + return self._rollback_to + + @rollback_to.setter + def rollback_to(self, rollback_to): + """ + Sets the rollback_to of this V1beta1DeploymentRollback. + The config of this deployment rollback. + + :param rollback_to: The rollback_to of this V1beta1DeploymentRollback. + :type: V1beta1RollbackConfig + """ + if rollback_to is None: + raise ValueError("Invalid value for `rollback_to`, must not be `None`") + + self._rollback_to = rollback_to + + @property + def updated_annotations(self): + """ + Gets the updated_annotations of this V1beta1DeploymentRollback. + The annotations to be updated to a deployment + + :return: The updated_annotations of this V1beta1DeploymentRollback. + :rtype: dict(str, str) + """ + return self._updated_annotations + + @updated_annotations.setter + def updated_annotations(self, updated_annotations): + """ + Sets the updated_annotations of this V1beta1DeploymentRollback. + The annotations to be updated to a deployment + + :param updated_annotations: The updated_annotations of this V1beta1DeploymentRollback. + :type: dict(str, str) + """ + + self._updated_annotations = updated_annotations + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_deployment_spec.py b/k8sclient/models/v1beta1_deployment_spec.py new file mode 100644 index 000000000..028a52c04 --- /dev/null +++ b/k8sclient/models/v1beta1_deployment_spec.py @@ -0,0 +1,338 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DeploymentSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, rollback_to=None, selector=None, strategy=None, template=None): + """ + V1beta1DeploymentSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'min_ready_seconds': 'int', + 'paused': 'bool', + 'progress_deadline_seconds': 'int', + 'replicas': 'int', + 'revision_history_limit': 'int', + 'rollback_to': 'V1beta1RollbackConfig', + 'selector': 'UnversionedLabelSelector', + 'strategy': 'V1beta1DeploymentStrategy', + 'template': 'V1PodTemplateSpec' + } + + self.attribute_map = { + 'min_ready_seconds': 'minReadySeconds', + 'paused': 'paused', + 'progress_deadline_seconds': 'progressDeadlineSeconds', + 'replicas': 'replicas', + 'revision_history_limit': 'revisionHistoryLimit', + 'rollback_to': 'rollbackTo', + 'selector': 'selector', + 'strategy': 'strategy', + 'template': 'template' + } + + self._min_ready_seconds = min_ready_seconds + self._paused = paused + self._progress_deadline_seconds = progress_deadline_seconds + self._replicas = replicas + self._revision_history_limit = revision_history_limit + self._rollback_to = rollback_to + self._selector = selector + self._strategy = strategy + self._template = template + + + @property + def min_ready_seconds(self): + """ + Gets the min_ready_seconds of this V1beta1DeploymentSpec. + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + + :return: The min_ready_seconds of this V1beta1DeploymentSpec. + :rtype: int + """ + return self._min_ready_seconds + + @min_ready_seconds.setter + def min_ready_seconds(self, min_ready_seconds): + """ + Sets the min_ready_seconds of this V1beta1DeploymentSpec. + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + + :param min_ready_seconds: The min_ready_seconds of this V1beta1DeploymentSpec. + :type: int + """ + + self._min_ready_seconds = min_ready_seconds + + @property + def paused(self): + """ + Gets the paused of this V1beta1DeploymentSpec. + Indicates that the deployment is paused and will not be processed by the deployment controller. + + :return: The paused of this V1beta1DeploymentSpec. + :rtype: bool + """ + return self._paused + + @paused.setter + def paused(self, paused): + """ + Sets the paused of this V1beta1DeploymentSpec. + Indicates that the deployment is paused and will not be processed by the deployment controller. + + :param paused: The paused of this V1beta1DeploymentSpec. + :type: bool + """ + + self._paused = paused + + @property + def progress_deadline_seconds(self): + """ + Gets the progress_deadline_seconds of this V1beta1DeploymentSpec. + The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default. + + :return: The progress_deadline_seconds of this V1beta1DeploymentSpec. + :rtype: int + """ + return self._progress_deadline_seconds + + @progress_deadline_seconds.setter + def progress_deadline_seconds(self, progress_deadline_seconds): + """ + Sets the progress_deadline_seconds of this V1beta1DeploymentSpec. + The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default. + + :param progress_deadline_seconds: The progress_deadline_seconds of this V1beta1DeploymentSpec. + :type: int + """ + if progress_deadline_seconds is None: + raise ValueError("Invalid value for `progress_deadline_seconds`, must not be `None`") + + self._progress_deadline_seconds = progress_deadline_seconds + + @property + def replicas(self): + """ + Gets the replicas of this V1beta1DeploymentSpec. + Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + + :return: The replicas of this V1beta1DeploymentSpec. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1beta1DeploymentSpec. + Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + + :param replicas: The replicas of this V1beta1DeploymentSpec. + :type: int + """ + + self._replicas = replicas + + @property + def revision_history_limit(self): + """ + Gets the revision_history_limit of this V1beta1DeploymentSpec. + The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. + + :return: The revision_history_limit of this V1beta1DeploymentSpec. + :rtype: int + """ + return self._revision_history_limit + + @revision_history_limit.setter + def revision_history_limit(self, revision_history_limit): + """ + Sets the revision_history_limit of this V1beta1DeploymentSpec. + The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. + + :param revision_history_limit: The revision_history_limit of this V1beta1DeploymentSpec. + :type: int + """ + + self._revision_history_limit = revision_history_limit + + @property + def rollback_to(self): + """ + Gets the rollback_to of this V1beta1DeploymentSpec. + The config this deployment is rolling back to. Will be cleared after rollback is done. + + :return: The rollback_to of this V1beta1DeploymentSpec. + :rtype: V1beta1RollbackConfig + """ + return self._rollback_to + + @rollback_to.setter + def rollback_to(self, rollback_to): + """ + Sets the rollback_to of this V1beta1DeploymentSpec. + The config this deployment is rolling back to. Will be cleared after rollback is done. + + :param rollback_to: The rollback_to of this V1beta1DeploymentSpec. + :type: V1beta1RollbackConfig + """ + + self._rollback_to = rollback_to + + @property + def selector(self): + """ + Gets the selector of this V1beta1DeploymentSpec. + Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + + :return: The selector of this V1beta1DeploymentSpec. + :rtype: UnversionedLabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1beta1DeploymentSpec. + Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + + :param selector: The selector of this V1beta1DeploymentSpec. + :type: UnversionedLabelSelector + """ + + self._selector = selector + + @property + def strategy(self): + """ + Gets the strategy of this V1beta1DeploymentSpec. + The deployment strategy to use to replace existing pods with new ones. + + :return: The strategy of this V1beta1DeploymentSpec. + :rtype: V1beta1DeploymentStrategy + """ + return self._strategy + + @strategy.setter + def strategy(self, strategy): + """ + Sets the strategy of this V1beta1DeploymentSpec. + The deployment strategy to use to replace existing pods with new ones. + + :param strategy: The strategy of this V1beta1DeploymentSpec. + :type: V1beta1DeploymentStrategy + """ + + self._strategy = strategy + + @property + def template(self): + """ + Gets the template of this V1beta1DeploymentSpec. + Template describes the pods that will be created. + + :return: The template of this V1beta1DeploymentSpec. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1beta1DeploymentSpec. + Template describes the pods that will be created. + + :param template: The template of this V1beta1DeploymentSpec. + :type: V1PodTemplateSpec + """ + if template is None: + raise ValueError("Invalid value for `template`, must not be `None`") + + self._template = template + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_deployment_status.py b/k8sclient/models/v1beta1_deployment_status.py new file mode 100644 index 000000000..9662a93a7 --- /dev/null +++ b/k8sclient/models/v1beta1_deployment_status.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DeploymentStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, available_replicas=None, conditions=None, observed_generation=None, replicas=None, unavailable_replicas=None, updated_replicas=None): + """ + V1beta1DeploymentStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'available_replicas': 'int', + 'conditions': 'list[V1beta1DeploymentCondition]', + 'observed_generation': 'int', + 'replicas': 'int', + 'unavailable_replicas': 'int', + 'updated_replicas': 'int' + } + + self.attribute_map = { + 'available_replicas': 'availableReplicas', + 'conditions': 'conditions', + 'observed_generation': 'observedGeneration', + 'replicas': 'replicas', + 'unavailable_replicas': 'unavailableReplicas', + 'updated_replicas': 'updatedReplicas' + } + + self._available_replicas = available_replicas + self._conditions = conditions + self._observed_generation = observed_generation + self._replicas = replicas + self._unavailable_replicas = unavailable_replicas + self._updated_replicas = updated_replicas + + + @property + def available_replicas(self): + """ + Gets the available_replicas of this V1beta1DeploymentStatus. + Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + + :return: The available_replicas of this V1beta1DeploymentStatus. + :rtype: int + """ + return self._available_replicas + + @available_replicas.setter + def available_replicas(self, available_replicas): + """ + Sets the available_replicas of this V1beta1DeploymentStatus. + Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + + :param available_replicas: The available_replicas of this V1beta1DeploymentStatus. + :type: int + """ + + self._available_replicas = available_replicas + + @property + def conditions(self): + """ + Gets the conditions of this V1beta1DeploymentStatus. + Represents the latest available observations of a deployment's current state. + + :return: The conditions of this V1beta1DeploymentStatus. + :rtype: list[V1beta1DeploymentCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1beta1DeploymentStatus. + Represents the latest available observations of a deployment's current state. + + :param conditions: The conditions of this V1beta1DeploymentStatus. + :type: list[V1beta1DeploymentCondition] + """ + if conditions is None: + raise ValueError("Invalid value for `conditions`, must not be `None`") + + self._conditions = conditions + + @property + def observed_generation(self): + """ + Gets the observed_generation of this V1beta1DeploymentStatus. + The generation observed by the deployment controller. + + :return: The observed_generation of this V1beta1DeploymentStatus. + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """ + Sets the observed_generation of this V1beta1DeploymentStatus. + The generation observed by the deployment controller. + + :param observed_generation: The observed_generation of this V1beta1DeploymentStatus. + :type: int + """ + + self._observed_generation = observed_generation + + @property + def replicas(self): + """ + Gets the replicas of this V1beta1DeploymentStatus. + Total number of non-terminated pods targeted by this deployment (their labels match the selector). + + :return: The replicas of this V1beta1DeploymentStatus. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1beta1DeploymentStatus. + Total number of non-terminated pods targeted by this deployment (their labels match the selector). + + :param replicas: The replicas of this V1beta1DeploymentStatus. + :type: int + """ + + self._replicas = replicas + + @property + def unavailable_replicas(self): + """ + Gets the unavailable_replicas of this V1beta1DeploymentStatus. + Total number of unavailable pods targeted by this deployment. + + :return: The unavailable_replicas of this V1beta1DeploymentStatus. + :rtype: int + """ + return self._unavailable_replicas + + @unavailable_replicas.setter + def unavailable_replicas(self, unavailable_replicas): + """ + Sets the unavailable_replicas of this V1beta1DeploymentStatus. + Total number of unavailable pods targeted by this deployment. + + :param unavailable_replicas: The unavailable_replicas of this V1beta1DeploymentStatus. + :type: int + """ + + self._unavailable_replicas = unavailable_replicas + + @property + def updated_replicas(self): + """ + Gets the updated_replicas of this V1beta1DeploymentStatus. + Total number of non-terminated pods targeted by this deployment that have the desired template spec. + + :return: The updated_replicas of this V1beta1DeploymentStatus. + :rtype: int + """ + return self._updated_replicas + + @updated_replicas.setter + def updated_replicas(self, updated_replicas): + """ + Sets the updated_replicas of this V1beta1DeploymentStatus. + Total number of non-terminated pods targeted by this deployment that have the desired template spec. + + :param updated_replicas: The updated_replicas of this V1beta1DeploymentStatus. + :type: int + """ + + self._updated_replicas = updated_replicas + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_deployment_strategy.py b/k8sclient/models/v1beta1_deployment_strategy.py new file mode 100644 index 000000000..053b1af37 --- /dev/null +++ b/k8sclient/models/v1beta1_deployment_strategy.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DeploymentStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, rolling_update=None, type=None): + """ + V1beta1DeploymentStrategy - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'rolling_update': 'V1beta1RollingUpdateDeployment', + 'type': 'str' + } + + self.attribute_map = { + 'rolling_update': 'rollingUpdate', + 'type': 'type' + } + + self._rolling_update = rolling_update + self._type = type + + + @property + def rolling_update(self): + """ + Gets the rolling_update of this V1beta1DeploymentStrategy. + Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + + :return: The rolling_update of this V1beta1DeploymentStrategy. + :rtype: V1beta1RollingUpdateDeployment + """ + return self._rolling_update + + @rolling_update.setter + def rolling_update(self, rolling_update): + """ + Sets the rolling_update of this V1beta1DeploymentStrategy. + Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + + :param rolling_update: The rolling_update of this V1beta1DeploymentStrategy. + :type: V1beta1RollingUpdateDeployment + """ + + self._rolling_update = rolling_update + + @property + def type(self): + """ + Gets the type of this V1beta1DeploymentStrategy. + Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. + + :return: The type of this V1beta1DeploymentStrategy. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1beta1DeploymentStrategy. + Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. + + :param type: The type of this V1beta1DeploymentStrategy. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_horizontal_pod_autoscaler.py b/k8sclient/models/v1beta1_horizontal_pod_autoscaler.py new file mode 100644 index 000000000..674f65848 --- /dev/null +++ b/k8sclient/models/v1beta1_horizontal_pod_autoscaler.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1HorizontalPodAutoscaler(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1beta1HorizontalPodAutoscaler - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1beta1HorizontalPodAutoscalerSpec', + 'status': 'V1beta1HorizontalPodAutoscalerStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1HorizontalPodAutoscaler. + Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1beta1HorizontalPodAutoscaler. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1HorizontalPodAutoscaler. + Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1beta1HorizontalPodAutoscaler. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1HorizontalPodAutoscaler. + behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + + :return: The spec of this V1beta1HorizontalPodAutoscaler. + :rtype: V1beta1HorizontalPodAutoscalerSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1HorizontalPodAutoscaler. + behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + + :param spec: The spec of this V1beta1HorizontalPodAutoscaler. + :type: V1beta1HorizontalPodAutoscalerSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1beta1HorizontalPodAutoscaler. + current information about the autoscaler. + + :return: The status of this V1beta1HorizontalPodAutoscaler. + :rtype: V1beta1HorizontalPodAutoscalerStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1HorizontalPodAutoscaler. + current information about the autoscaler. + + :param status: The status of this V1beta1HorizontalPodAutoscaler. + :type: V1beta1HorizontalPodAutoscalerStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_horizontal_pod_autoscaler_list.py b/k8sclient/models/v1beta1_horizontal_pod_autoscaler_list.py new file mode 100644 index 000000000..b7df4aa5f --- /dev/null +++ b/k8sclient/models/v1beta1_horizontal_pod_autoscaler_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1HorizontalPodAutoscalerList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1beta1HorizontalPodAutoscalerList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1beta1HorizontalPodAutoscaler]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1beta1HorizontalPodAutoscalerList. + list of horizontal pod autoscaler objects. + + :return: The items of this V1beta1HorizontalPodAutoscalerList. + :rtype: list[V1beta1HorizontalPodAutoscaler] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1HorizontalPodAutoscalerList. + list of horizontal pod autoscaler objects. + + :param items: The items of this V1beta1HorizontalPodAutoscalerList. + :type: list[V1beta1HorizontalPodAutoscaler] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1HorizontalPodAutoscalerList. + Standard list metadata. + + :return: The metadata of this V1beta1HorizontalPodAutoscalerList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1HorizontalPodAutoscalerList. + Standard list metadata. + + :param metadata: The metadata of this V1beta1HorizontalPodAutoscalerList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_horizontal_pod_autoscaler_spec.py b/k8sclient/models/v1beta1_horizontal_pod_autoscaler_spec.py new file mode 100644 index 000000000..cb45f0110 --- /dev/null +++ b/k8sclient/models/v1beta1_horizontal_pod_autoscaler_spec.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1HorizontalPodAutoscalerSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, cpu_utilization=None, max_replicas=None, min_replicas=None, scale_ref=None): + """ + V1beta1HorizontalPodAutoscalerSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'cpu_utilization': 'V1beta1CPUTargetUtilization', + 'max_replicas': 'int', + 'min_replicas': 'int', + 'scale_ref': 'V1beta1SubresourceReference' + } + + self.attribute_map = { + 'cpu_utilization': 'cpuUtilization', + 'max_replicas': 'maxReplicas', + 'min_replicas': 'minReplicas', + 'scale_ref': 'scaleRef' + } + + self._cpu_utilization = cpu_utilization + self._max_replicas = max_replicas + self._min_replicas = min_replicas + self._scale_ref = scale_ref + + + @property + def cpu_utilization(self): + """ + Gets the cpu_utilization of this V1beta1HorizontalPodAutoscalerSpec. + target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified it defaults to the target CPU utilization at 80% of the requested resources. + + :return: The cpu_utilization of this V1beta1HorizontalPodAutoscalerSpec. + :rtype: V1beta1CPUTargetUtilization + """ + return self._cpu_utilization + + @cpu_utilization.setter + def cpu_utilization(self, cpu_utilization): + """ + Sets the cpu_utilization of this V1beta1HorizontalPodAutoscalerSpec. + target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified it defaults to the target CPU utilization at 80% of the requested resources. + + :param cpu_utilization: The cpu_utilization of this V1beta1HorizontalPodAutoscalerSpec. + :type: V1beta1CPUTargetUtilization + """ + + self._cpu_utilization = cpu_utilization + + @property + def max_replicas(self): + """ + Gets the max_replicas of this V1beta1HorizontalPodAutoscalerSpec. + upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. + + :return: The max_replicas of this V1beta1HorizontalPodAutoscalerSpec. + :rtype: int + """ + return self._max_replicas + + @max_replicas.setter + def max_replicas(self, max_replicas): + """ + Sets the max_replicas of this V1beta1HorizontalPodAutoscalerSpec. + upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. + + :param max_replicas: The max_replicas of this V1beta1HorizontalPodAutoscalerSpec. + :type: int + """ + if max_replicas is None: + raise ValueError("Invalid value for `max_replicas`, must not be `None`") + + self._max_replicas = max_replicas + + @property + def min_replicas(self): + """ + Gets the min_replicas of this V1beta1HorizontalPodAutoscalerSpec. + lower limit for the number of pods that can be set by the autoscaler, default 1. + + :return: The min_replicas of this V1beta1HorizontalPodAutoscalerSpec. + :rtype: int + """ + return self._min_replicas + + @min_replicas.setter + def min_replicas(self, min_replicas): + """ + Sets the min_replicas of this V1beta1HorizontalPodAutoscalerSpec. + lower limit for the number of pods that can be set by the autoscaler, default 1. + + :param min_replicas: The min_replicas of this V1beta1HorizontalPodAutoscalerSpec. + :type: int + """ + + self._min_replicas = min_replicas + + @property + def scale_ref(self): + """ + Gets the scale_ref of this V1beta1HorizontalPodAutoscalerSpec. + reference to Scale subresource; horizontal pod autoscaler will learn the current resource consumption from its status, and will set the desired number of pods by modifying its spec. + + :return: The scale_ref of this V1beta1HorizontalPodAutoscalerSpec. + :rtype: V1beta1SubresourceReference + """ + return self._scale_ref + + @scale_ref.setter + def scale_ref(self, scale_ref): + """ + Sets the scale_ref of this V1beta1HorizontalPodAutoscalerSpec. + reference to Scale subresource; horizontal pod autoscaler will learn the current resource consumption from its status, and will set the desired number of pods by modifying its spec. + + :param scale_ref: The scale_ref of this V1beta1HorizontalPodAutoscalerSpec. + :type: V1beta1SubresourceReference + """ + if scale_ref is None: + raise ValueError("Invalid value for `scale_ref`, must not be `None`") + + self._scale_ref = scale_ref + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_horizontal_pod_autoscaler_status.py b/k8sclient/models/v1beta1_horizontal_pod_autoscaler_status.py new file mode 100644 index 000000000..d2e6afcb8 --- /dev/null +++ b/k8sclient/models/v1beta1_horizontal_pod_autoscaler_status.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1HorizontalPodAutoscalerStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, current_cpu_utilization_percentage=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None): + """ + V1beta1HorizontalPodAutoscalerStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'current_cpu_utilization_percentage': 'int', + 'current_replicas': 'int', + 'desired_replicas': 'int', + 'last_scale_time': 'UnversionedTime', + 'observed_generation': 'int' + } + + self.attribute_map = { + 'current_cpu_utilization_percentage': 'currentCPUUtilizationPercentage', + 'current_replicas': 'currentReplicas', + 'desired_replicas': 'desiredReplicas', + 'last_scale_time': 'lastScaleTime', + 'observed_generation': 'observedGeneration' + } + + self._current_cpu_utilization_percentage = current_cpu_utilization_percentage + self._current_replicas = current_replicas + self._desired_replicas = desired_replicas + self._last_scale_time = last_scale_time + self._observed_generation = observed_generation + + + @property + def current_cpu_utilization_percentage(self): + """ + Gets the current_cpu_utilization_percentage of this V1beta1HorizontalPodAutoscalerStatus. + current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. + + :return: The current_cpu_utilization_percentage of this V1beta1HorizontalPodAutoscalerStatus. + :rtype: int + """ + return self._current_cpu_utilization_percentage + + @current_cpu_utilization_percentage.setter + def current_cpu_utilization_percentage(self, current_cpu_utilization_percentage): + """ + Sets the current_cpu_utilization_percentage of this V1beta1HorizontalPodAutoscalerStatus. + current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. + + :param current_cpu_utilization_percentage: The current_cpu_utilization_percentage of this V1beta1HorizontalPodAutoscalerStatus. + :type: int + """ + + self._current_cpu_utilization_percentage = current_cpu_utilization_percentage + + @property + def current_replicas(self): + """ + Gets the current_replicas of this V1beta1HorizontalPodAutoscalerStatus. + current number of replicas of pods managed by this autoscaler. + + :return: The current_replicas of this V1beta1HorizontalPodAutoscalerStatus. + :rtype: int + """ + return self._current_replicas + + @current_replicas.setter + def current_replicas(self, current_replicas): + """ + Sets the current_replicas of this V1beta1HorizontalPodAutoscalerStatus. + current number of replicas of pods managed by this autoscaler. + + :param current_replicas: The current_replicas of this V1beta1HorizontalPodAutoscalerStatus. + :type: int + """ + if current_replicas is None: + raise ValueError("Invalid value for `current_replicas`, must not be `None`") + + self._current_replicas = current_replicas + + @property + def desired_replicas(self): + """ + Gets the desired_replicas of this V1beta1HorizontalPodAutoscalerStatus. + desired number of replicas of pods managed by this autoscaler. + + :return: The desired_replicas of this V1beta1HorizontalPodAutoscalerStatus. + :rtype: int + """ + return self._desired_replicas + + @desired_replicas.setter + def desired_replicas(self, desired_replicas): + """ + Sets the desired_replicas of this V1beta1HorizontalPodAutoscalerStatus. + desired number of replicas of pods managed by this autoscaler. + + :param desired_replicas: The desired_replicas of this V1beta1HorizontalPodAutoscalerStatus. + :type: int + """ + if desired_replicas is None: + raise ValueError("Invalid value for `desired_replicas`, must not be `None`") + + self._desired_replicas = desired_replicas + + @property + def last_scale_time(self): + """ + Gets the last_scale_time of this V1beta1HorizontalPodAutoscalerStatus. + last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. + + :return: The last_scale_time of this V1beta1HorizontalPodAutoscalerStatus. + :rtype: UnversionedTime + """ + return self._last_scale_time + + @last_scale_time.setter + def last_scale_time(self, last_scale_time): + """ + Sets the last_scale_time of this V1beta1HorizontalPodAutoscalerStatus. + last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. + + :param last_scale_time: The last_scale_time of this V1beta1HorizontalPodAutoscalerStatus. + :type: UnversionedTime + """ + + self._last_scale_time = last_scale_time + + @property + def observed_generation(self): + """ + Gets the observed_generation of this V1beta1HorizontalPodAutoscalerStatus. + most recent generation observed by this autoscaler. + + :return: The observed_generation of this V1beta1HorizontalPodAutoscalerStatus. + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """ + Sets the observed_generation of this V1beta1HorizontalPodAutoscalerStatus. + most recent generation observed by this autoscaler. + + :param observed_generation: The observed_generation of this V1beta1HorizontalPodAutoscalerStatus. + :type: int + """ + + self._observed_generation = observed_generation + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_ingress.py b/k8sclient/models/v1beta1_ingress.py new file mode 100644 index 000000000..bf291232f --- /dev/null +++ b/k8sclient/models/v1beta1_ingress.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1Ingress(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1beta1Ingress - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1beta1IngressSpec', + 'status': 'V1beta1IngressStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1Ingress. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1beta1Ingress. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1Ingress. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1beta1Ingress. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1Ingress. + Spec is the desired state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The spec of this V1beta1Ingress. + :rtype: V1beta1IngressSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1Ingress. + Spec is the desired state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param spec: The spec of this V1beta1Ingress. + :type: V1beta1IngressSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1beta1Ingress. + Status is the current state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The status of this V1beta1Ingress. + :rtype: V1beta1IngressStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1Ingress. + Status is the current state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param status: The status of this V1beta1Ingress. + :type: V1beta1IngressStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_ingress_backend.py b/k8sclient/models/v1beta1_ingress_backend.py new file mode 100644 index 000000000..ebe6f5757 --- /dev/null +++ b/k8sclient/models/v1beta1_ingress_backend.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1IngressBackend(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, service_name=None, service_port=None): + """ + V1beta1IngressBackend - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'service_name': 'str', + 'service_port': 'IntstrIntOrString' + } + + self.attribute_map = { + 'service_name': 'serviceName', + 'service_port': 'servicePort' + } + + self._service_name = service_name + self._service_port = service_port + + + @property + def service_name(self): + """ + Gets the service_name of this V1beta1IngressBackend. + Specifies the name of the referenced service. + + :return: The service_name of this V1beta1IngressBackend. + :rtype: str + """ + return self._service_name + + @service_name.setter + def service_name(self, service_name): + """ + Sets the service_name of this V1beta1IngressBackend. + Specifies the name of the referenced service. + + :param service_name: The service_name of this V1beta1IngressBackend. + :type: str + """ + if service_name is None: + raise ValueError("Invalid value for `service_name`, must not be `None`") + + self._service_name = service_name + + @property + def service_port(self): + """ + Gets the service_port of this V1beta1IngressBackend. + Specifies the port of the referenced service. + + :return: The service_port of this V1beta1IngressBackend. + :rtype: IntstrIntOrString + """ + return self._service_port + + @service_port.setter + def service_port(self, service_port): + """ + Sets the service_port of this V1beta1IngressBackend. + Specifies the port of the referenced service. + + :param service_port: The service_port of this V1beta1IngressBackend. + :type: IntstrIntOrString + """ + if service_port is None: + raise ValueError("Invalid value for `service_port`, must not be `None`") + + self._service_port = service_port + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_ingress_list.py b/k8sclient/models/v1beta1_ingress_list.py new file mode 100644 index 000000000..a7479ebcb --- /dev/null +++ b/k8sclient/models/v1beta1_ingress_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1IngressList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1beta1IngressList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1beta1Ingress]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1beta1IngressList. + Items is the list of Ingress. + + :return: The items of this V1beta1IngressList. + :rtype: list[V1beta1Ingress] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1IngressList. + Items is the list of Ingress. + + :param items: The items of this V1beta1IngressList. + :type: list[V1beta1Ingress] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1IngressList. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1beta1IngressList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1IngressList. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1beta1IngressList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_ingress_rule.py b/k8sclient/models/v1beta1_ingress_rule.py new file mode 100644 index 000000000..b9dcb7c90 --- /dev/null +++ b/k8sclient/models/v1beta1_ingress_rule.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1IngressRule(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, host=None): + """ + V1beta1IngressRule - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'host': 'str' + } + + self.attribute_map = { + 'host': 'host' + } + + self._host = host + + + @property + def host(self): + """ + Gets the host of this V1beta1IngressRule. + Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + + :return: The host of this V1beta1IngressRule. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """ + Sets the host of this V1beta1IngressRule. + Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + + :param host: The host of this V1beta1IngressRule. + :type: str + """ + + self._host = host + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_ingress_spec.py b/k8sclient/models/v1beta1_ingress_spec.py new file mode 100644 index 000000000..9e3fa216b --- /dev/null +++ b/k8sclient/models/v1beta1_ingress_spec.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1IngressSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, backend=None, rules=None, tls=None): + """ + V1beta1IngressSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'backend': 'V1beta1IngressBackend', + 'rules': 'list[V1beta1IngressRule]', + 'tls': 'list[V1beta1IngressTLS]' + } + + self.attribute_map = { + 'backend': 'backend', + 'rules': 'rules', + 'tls': 'tls' + } + + self._backend = backend + self._rules = rules + self._tls = tls + + + @property + def backend(self): + """ + Gets the backend of this V1beta1IngressSpec. + A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. + + :return: The backend of this V1beta1IngressSpec. + :rtype: V1beta1IngressBackend + """ + return self._backend + + @backend.setter + def backend(self, backend): + """ + Sets the backend of this V1beta1IngressSpec. + A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. + + :param backend: The backend of this V1beta1IngressSpec. + :type: V1beta1IngressBackend + """ + + self._backend = backend + + @property + def rules(self): + """ + Gets the rules of this V1beta1IngressSpec. + A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + + :return: The rules of this V1beta1IngressSpec. + :rtype: list[V1beta1IngressRule] + """ + return self._rules + + @rules.setter + def rules(self, rules): + """ + Sets the rules of this V1beta1IngressSpec. + A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + + :param rules: The rules of this V1beta1IngressSpec. + :type: list[V1beta1IngressRule] + """ + + self._rules = rules + + @property + def tls(self): + """ + Gets the tls of this V1beta1IngressSpec. + TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + + :return: The tls of this V1beta1IngressSpec. + :rtype: list[V1beta1IngressTLS] + """ + return self._tls + + @tls.setter + def tls(self, tls): + """ + Sets the tls of this V1beta1IngressSpec. + TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + + :param tls: The tls of this V1beta1IngressSpec. + :type: list[V1beta1IngressTLS] + """ + + self._tls = tls + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_ingress_status.py b/k8sclient/models/v1beta1_ingress_status.py new file mode 100644 index 000000000..808de3968 --- /dev/null +++ b/k8sclient/models/v1beta1_ingress_status.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1IngressStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, load_balancer=None): + """ + V1beta1IngressStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'load_balancer': 'V1LoadBalancerStatus' + } + + self.attribute_map = { + 'load_balancer': 'loadBalancer' + } + + self._load_balancer = load_balancer + + + @property + def load_balancer(self): + """ + Gets the load_balancer of this V1beta1IngressStatus. + LoadBalancer contains the current status of the load-balancer. + + :return: The load_balancer of this V1beta1IngressStatus. + :rtype: V1LoadBalancerStatus + """ + return self._load_balancer + + @load_balancer.setter + def load_balancer(self, load_balancer): + """ + Sets the load_balancer of this V1beta1IngressStatus. + LoadBalancer contains the current status of the load-balancer. + + :param load_balancer: The load_balancer of this V1beta1IngressStatus. + :type: V1LoadBalancerStatus + """ + + self._load_balancer = load_balancer + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_ingress_tls.py b/k8sclient/models/v1beta1_ingress_tls.py new file mode 100644 index 000000000..108d4f957 --- /dev/null +++ b/k8sclient/models/v1beta1_ingress_tls.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1IngressTLS(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, hosts=None, secret_name=None): + """ + V1beta1IngressTLS - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'hosts': 'list[str]', + 'secret_name': 'str' + } + + self.attribute_map = { + 'hosts': 'hosts', + 'secret_name': 'secretName' + } + + self._hosts = hosts + self._secret_name = secret_name + + + @property + def hosts(self): + """ + Gets the hosts of this V1beta1IngressTLS. + Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + + :return: The hosts of this V1beta1IngressTLS. + :rtype: list[str] + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """ + Sets the hosts of this V1beta1IngressTLS. + Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + + :param hosts: The hosts of this V1beta1IngressTLS. + :type: list[str] + """ + + self._hosts = hosts + + @property + def secret_name(self): + """ + Gets the secret_name of this V1beta1IngressTLS. + SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. + + :return: The secret_name of this V1beta1IngressTLS. + :rtype: str + """ + return self._secret_name + + @secret_name.setter + def secret_name(self, secret_name): + """ + Sets the secret_name of this V1beta1IngressTLS. + SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. + + :param secret_name: The secret_name of this V1beta1IngressTLS. + :type: str + """ + + self._secret_name = secret_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_job.py b/k8sclient/models/v1beta1_job.py new file mode 100644 index 000000000..a0f9869f7 --- /dev/null +++ b/k8sclient/models/v1beta1_job.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1Job(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1beta1Job - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1beta1JobSpec', + 'status': 'V1beta1JobStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1Job. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1beta1Job. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1Job. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1beta1Job. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1Job. + Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The spec of this V1beta1Job. + :rtype: V1beta1JobSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1Job. + Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param spec: The spec of this V1beta1Job. + :type: V1beta1JobSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1beta1Job. + Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The status of this V1beta1Job. + :rtype: V1beta1JobStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1Job. + Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param status: The status of this V1beta1Job. + :type: V1beta1JobStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_job_condition.py b/k8sclient/models/v1beta1_job_condition.py new file mode 100644 index 000000000..09a889406 --- /dev/null +++ b/k8sclient/models/v1beta1_job_condition.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1JobCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): + """ + V1beta1JobCondition - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'last_probe_time': 'UnversionedTime', + 'last_transition_time': 'UnversionedTime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'last_probe_time': 'lastProbeTime', + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + self._last_probe_time = last_probe_time + self._last_transition_time = last_transition_time + self._message = message + self._reason = reason + self._status = status + self._type = type + + + @property + def last_probe_time(self): + """ + Gets the last_probe_time of this V1beta1JobCondition. + Last time the condition was checked. + + :return: The last_probe_time of this V1beta1JobCondition. + :rtype: UnversionedTime + """ + return self._last_probe_time + + @last_probe_time.setter + def last_probe_time(self, last_probe_time): + """ + Sets the last_probe_time of this V1beta1JobCondition. + Last time the condition was checked. + + :param last_probe_time: The last_probe_time of this V1beta1JobCondition. + :type: UnversionedTime + """ + + self._last_probe_time = last_probe_time + + @property + def last_transition_time(self): + """ + Gets the last_transition_time of this V1beta1JobCondition. + Last time the condition transit from one status to another. + + :return: The last_transition_time of this V1beta1JobCondition. + :rtype: UnversionedTime + """ + return self._last_transition_time + + @last_transition_time.setter + def last_transition_time(self, last_transition_time): + """ + Sets the last_transition_time of this V1beta1JobCondition. + Last time the condition transit from one status to another. + + :param last_transition_time: The last_transition_time of this V1beta1JobCondition. + :type: UnversionedTime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """ + Gets the message of this V1beta1JobCondition. + Human readable message indicating details about last transition. + + :return: The message of this V1beta1JobCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1beta1JobCondition. + Human readable message indicating details about last transition. + + :param message: The message of this V1beta1JobCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1beta1JobCondition. + (brief) reason for the condition's last transition. + + :return: The reason of this V1beta1JobCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1beta1JobCondition. + (brief) reason for the condition's last transition. + + :param reason: The reason of this V1beta1JobCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1beta1JobCondition. + Status of the condition, one of True, False, Unknown. + + :return: The status of this V1beta1JobCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1JobCondition. + Status of the condition, one of True, False, Unknown. + + :param status: The status of this V1beta1JobCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1beta1JobCondition. + Type of job condition, Complete or Failed. + + :return: The type of this V1beta1JobCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1beta1JobCondition. + Type of job condition, Complete or Failed. + + :param type: The type of this V1beta1JobCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_job_list.py b/k8sclient/models/v1beta1_job_list.py new file mode 100644 index 000000000..7ec12722f --- /dev/null +++ b/k8sclient/models/v1beta1_job_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1JobList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1beta1JobList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1beta1Job]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1beta1JobList. + Items is the list of Job. + + :return: The items of this V1beta1JobList. + :rtype: list[V1beta1Job] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1JobList. + Items is the list of Job. + + :param items: The items of this V1beta1JobList. + :type: list[V1beta1Job] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1JobList. + Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1beta1JobList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1JobList. + Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1beta1JobList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_job_spec.py b/k8sclient/models/v1beta1_job_spec.py new file mode 100644 index 000000000..171c2dcd8 --- /dev/null +++ b/k8sclient/models/v1beta1_job_spec.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1JobSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, active_deadline_seconds=None, auto_selector=None, completions=None, parallelism=None, selector=None, template=None): + """ + V1beta1JobSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'active_deadline_seconds': 'int', + 'auto_selector': 'bool', + 'completions': 'int', + 'parallelism': 'int', + 'selector': 'UnversionedLabelSelector', + 'template': 'V1PodTemplateSpec' + } + + self.attribute_map = { + 'active_deadline_seconds': 'activeDeadlineSeconds', + 'auto_selector': 'autoSelector', + 'completions': 'completions', + 'parallelism': 'parallelism', + 'selector': 'selector', + 'template': 'template' + } + + self._active_deadline_seconds = active_deadline_seconds + self._auto_selector = auto_selector + self._completions = completions + self._parallelism = parallelism + self._selector = selector + self._template = template + + + @property + def active_deadline_seconds(self): + """ + Gets the active_deadline_seconds of this V1beta1JobSpec. + Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + + :return: The active_deadline_seconds of this V1beta1JobSpec. + :rtype: int + """ + return self._active_deadline_seconds + + @active_deadline_seconds.setter + def active_deadline_seconds(self, active_deadline_seconds): + """ + Sets the active_deadline_seconds of this V1beta1JobSpec. + Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + + :param active_deadline_seconds: The active_deadline_seconds of this V1beta1JobSpec. + :type: int + """ + + self._active_deadline_seconds = active_deadline_seconds + + @property + def auto_selector(self): + """ + Gets the auto_selector of this V1beta1JobSpec. + AutoSelector controls generation of pod labels and pod selectors. It was not present in the original extensions/v1beta1 Job definition, but exists to allow conversion from batch/v1 Jobs, where it corresponds to, but has the opposite meaning as, ManualSelector. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md + + :return: The auto_selector of this V1beta1JobSpec. + :rtype: bool + """ + return self._auto_selector + + @auto_selector.setter + def auto_selector(self, auto_selector): + """ + Sets the auto_selector of this V1beta1JobSpec. + AutoSelector controls generation of pod labels and pod selectors. It was not present in the original extensions/v1beta1 Job definition, but exists to allow conversion from batch/v1 Jobs, where it corresponds to, but has the opposite meaning as, ManualSelector. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md + + :param auto_selector: The auto_selector of this V1beta1JobSpec. + :type: bool + """ + + self._auto_selector = auto_selector + + @property + def completions(self): + """ + Gets the completions of this V1beta1JobSpec. + Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs + + :return: The completions of this V1beta1JobSpec. + :rtype: int + """ + return self._completions + + @completions.setter + def completions(self, completions): + """ + Sets the completions of this V1beta1JobSpec. + Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs + + :param completions: The completions of this V1beta1JobSpec. + :type: int + """ + + self._completions = completions + + @property + def parallelism(self): + """ + Gets the parallelism of this V1beta1JobSpec. + Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs + + :return: The parallelism of this V1beta1JobSpec. + :rtype: int + """ + return self._parallelism + + @parallelism.setter + def parallelism(self, parallelism): + """ + Sets the parallelism of this V1beta1JobSpec. + Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs + + :param parallelism: The parallelism of this V1beta1JobSpec. + :type: int + """ + + self._parallelism = parallelism + + @property + def selector(self): + """ + Gets the selector of this V1beta1JobSpec. + Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :return: The selector of this V1beta1JobSpec. + :rtype: UnversionedLabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1beta1JobSpec. + Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :param selector: The selector of this V1beta1JobSpec. + :type: UnversionedLabelSelector + """ + + self._selector = selector + + @property + def template(self): + """ + Gets the template of this V1beta1JobSpec. + Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs + + :return: The template of this V1beta1JobSpec. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1beta1JobSpec. + Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs + + :param template: The template of this V1beta1JobSpec. + :type: V1PodTemplateSpec + """ + if template is None: + raise ValueError("Invalid value for `template`, must not be `None`") + + self._template = template + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_job_status.py b/k8sclient/models/v1beta1_job_status.py new file mode 100644 index 000000000..f0e074b2a --- /dev/null +++ b/k8sclient/models/v1beta1_job_status.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1JobStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, active=None, completion_time=None, conditions=None, failed=None, start_time=None, succeeded=None): + """ + V1beta1JobStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'active': 'int', + 'completion_time': 'UnversionedTime', + 'conditions': 'list[V1beta1JobCondition]', + 'failed': 'int', + 'start_time': 'UnversionedTime', + 'succeeded': 'int' + } + + self.attribute_map = { + 'active': 'active', + 'completion_time': 'completionTime', + 'conditions': 'conditions', + 'failed': 'failed', + 'start_time': 'startTime', + 'succeeded': 'succeeded' + } + + self._active = active + self._completion_time = completion_time + self._conditions = conditions + self._failed = failed + self._start_time = start_time + self._succeeded = succeeded + + + @property + def active(self): + """ + Gets the active of this V1beta1JobStatus. + Active is the number of actively running pods. + + :return: The active of this V1beta1JobStatus. + :rtype: int + """ + return self._active + + @active.setter + def active(self, active): + """ + Sets the active of this V1beta1JobStatus. + Active is the number of actively running pods. + + :param active: The active of this V1beta1JobStatus. + :type: int + """ + + self._active = active + + @property + def completion_time(self): + """ + Gets the completion_time of this V1beta1JobStatus. + CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + + :return: The completion_time of this V1beta1JobStatus. + :rtype: UnversionedTime + """ + return self._completion_time + + @completion_time.setter + def completion_time(self, completion_time): + """ + Sets the completion_time of this V1beta1JobStatus. + CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + + :param completion_time: The completion_time of this V1beta1JobStatus. + :type: UnversionedTime + """ + + self._completion_time = completion_time + + @property + def conditions(self): + """ + Gets the conditions of this V1beta1JobStatus. + Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs + + :return: The conditions of this V1beta1JobStatus. + :rtype: list[V1beta1JobCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1beta1JobStatus. + Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs + + :param conditions: The conditions of this V1beta1JobStatus. + :type: list[V1beta1JobCondition] + """ + + self._conditions = conditions + + @property + def failed(self): + """ + Gets the failed of this V1beta1JobStatus. + Failed is the number of pods which reached Phase Failed. + + :return: The failed of this V1beta1JobStatus. + :rtype: int + """ + return self._failed + + @failed.setter + def failed(self, failed): + """ + Sets the failed of this V1beta1JobStatus. + Failed is the number of pods which reached Phase Failed. + + :param failed: The failed of this V1beta1JobStatus. + :type: int + """ + + self._failed = failed + + @property + def start_time(self): + """ + Gets the start_time of this V1beta1JobStatus. + StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + + :return: The start_time of this V1beta1JobStatus. + :rtype: UnversionedTime + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """ + Sets the start_time of this V1beta1JobStatus. + StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + + :param start_time: The start_time of this V1beta1JobStatus. + :type: UnversionedTime + """ + + self._start_time = start_time + + @property + def succeeded(self): + """ + Gets the succeeded of this V1beta1JobStatus. + Succeeded is the number of pods which reached Phase Succeeded. + + :return: The succeeded of this V1beta1JobStatus. + :rtype: int + """ + return self._succeeded + + @succeeded.setter + def succeeded(self, succeeded): + """ + Sets the succeeded of this V1beta1JobStatus. + Succeeded is the number of pods which reached Phase Succeeded. + + :param succeeded: The succeeded of this V1beta1JobStatus. + :type: int + """ + + self._succeeded = succeeded + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_local_subject_access_review.py b/k8sclient/models/v1beta1_local_subject_access_review.py new file mode 100644 index 000000000..43c873b4a --- /dev/null +++ b/k8sclient/models/v1beta1_local_subject_access_review.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1LocalSubjectAccessReview(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1beta1LocalSubjectAccessReview - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1beta1SubjectAccessReviewSpec', + 'status': 'V1beta1SubjectAccessReviewStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1LocalSubjectAccessReview. + + + :return: The metadata of this V1beta1LocalSubjectAccessReview. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1LocalSubjectAccessReview. + + + :param metadata: The metadata of this V1beta1LocalSubjectAccessReview. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1LocalSubjectAccessReview. + Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + + :return: The spec of this V1beta1LocalSubjectAccessReview. + :rtype: V1beta1SubjectAccessReviewSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1LocalSubjectAccessReview. + Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + + :param spec: The spec of this V1beta1LocalSubjectAccessReview. + :type: V1beta1SubjectAccessReviewSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1beta1LocalSubjectAccessReview. + Status is filled in by the server and indicates whether the request is allowed or not + + :return: The status of this V1beta1LocalSubjectAccessReview. + :rtype: V1beta1SubjectAccessReviewStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1LocalSubjectAccessReview. + Status is filled in by the server and indicates whether the request is allowed or not + + :param status: The status of this V1beta1LocalSubjectAccessReview. + :type: V1beta1SubjectAccessReviewStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_network_policy.py b/k8sclient/models/v1beta1_network_policy.py new file mode 100644 index 000000000..0c2120f64 --- /dev/null +++ b/k8sclient/models/v1beta1_network_policy.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1NetworkPolicy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None): + """ + V1beta1NetworkPolicy - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1beta1NetworkPolicySpec' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec' + } + + self._metadata = metadata + self._spec = spec + + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1NetworkPolicy. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1beta1NetworkPolicy. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1NetworkPolicy. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1beta1NetworkPolicy. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1NetworkPolicy. + Specification of the desired behavior for this NetworkPolicy. + + :return: The spec of this V1beta1NetworkPolicy. + :rtype: V1beta1NetworkPolicySpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1NetworkPolicy. + Specification of the desired behavior for this NetworkPolicy. + + :param spec: The spec of this V1beta1NetworkPolicy. + :type: V1beta1NetworkPolicySpec + """ + + self._spec = spec + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_network_policy_ingress_rule.py b/k8sclient/models/v1beta1_network_policy_ingress_rule.py new file mode 100644 index 000000000..c7355fc1e --- /dev/null +++ b/k8sclient/models/v1beta1_network_policy_ingress_rule.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1NetworkPolicyIngressRule(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, _from=None, ports=None): + """ + V1beta1NetworkPolicyIngressRule - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + '_from': 'list[V1beta1NetworkPolicyPeer]', + 'ports': 'list[V1beta1NetworkPolicyPort]' + } + + self.attribute_map = { + '_from': 'from', + 'ports': 'ports' + } + + self.__from = _from + self._ports = ports + + + @property + def _from(self): + """ + Gets the _from of this V1beta1NetworkPolicyIngressRule. + List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is not provided, this rule matches all sources (traffic not restricted by source). If this field is empty, this rule matches no sources (no traffic matches). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. + + :return: The _from of this V1beta1NetworkPolicyIngressRule. + :rtype: list[V1beta1NetworkPolicyPeer] + """ + return self.__from + + @_from.setter + def _from(self, _from): + """ + Sets the _from of this V1beta1NetworkPolicyIngressRule. + List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is not provided, this rule matches all sources (traffic not restricted by source). If this field is empty, this rule matches no sources (no traffic matches). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. + + :param _from: The _from of this V1beta1NetworkPolicyIngressRule. + :type: list[V1beta1NetworkPolicyPeer] + """ + + self.__from = _from + + @property + def ports(self): + """ + Gets the ports of this V1beta1NetworkPolicyIngressRule. + List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is not provided, this rule matches all ports (traffic not restricted by port). If this field is empty, this rule matches no ports (no traffic matches). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + + :return: The ports of this V1beta1NetworkPolicyIngressRule. + :rtype: list[V1beta1NetworkPolicyPort] + """ + return self._ports + + @ports.setter + def ports(self, ports): + """ + Sets the ports of this V1beta1NetworkPolicyIngressRule. + List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is not provided, this rule matches all ports (traffic not restricted by port). If this field is empty, this rule matches no ports (no traffic matches). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + + :param ports: The ports of this V1beta1NetworkPolicyIngressRule. + :type: list[V1beta1NetworkPolicyPort] + """ + + self._ports = ports + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_network_policy_list.py b/k8sclient/models/v1beta1_network_policy_list.py new file mode 100644 index 000000000..eb99781a6 --- /dev/null +++ b/k8sclient/models/v1beta1_network_policy_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1NetworkPolicyList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1beta1NetworkPolicyList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1beta1NetworkPolicy]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1beta1NetworkPolicyList. + Items is a list of schema objects. + + :return: The items of this V1beta1NetworkPolicyList. + :rtype: list[V1beta1NetworkPolicy] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1NetworkPolicyList. + Items is a list of schema objects. + + :param items: The items of this V1beta1NetworkPolicyList. + :type: list[V1beta1NetworkPolicy] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1NetworkPolicyList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1beta1NetworkPolicyList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1NetworkPolicyList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1beta1NetworkPolicyList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_network_policy_peer.py b/k8sclient/models/v1beta1_network_policy_peer.py new file mode 100644 index 000000000..ddb38ae38 --- /dev/null +++ b/k8sclient/models/v1beta1_network_policy_peer.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1NetworkPolicyPeer(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, namespace_selector=None, pod_selector=None): + """ + V1beta1NetworkPolicyPeer - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'namespace_selector': 'UnversionedLabelSelector', + 'pod_selector': 'UnversionedLabelSelector' + } + + self.attribute_map = { + 'namespace_selector': 'namespaceSelector', + 'pod_selector': 'podSelector' + } + + self._namespace_selector = namespace_selector + self._pod_selector = pod_selector + + + @property + def namespace_selector(self): + """ + Gets the namespace_selector of this V1beta1NetworkPolicyPeer. + Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If omitted, this selector selects no namespaces. If present but empty, this selector selects all namespaces. + + :return: The namespace_selector of this V1beta1NetworkPolicyPeer. + :rtype: UnversionedLabelSelector + """ + return self._namespace_selector + + @namespace_selector.setter + def namespace_selector(self, namespace_selector): + """ + Sets the namespace_selector of this V1beta1NetworkPolicyPeer. + Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If omitted, this selector selects no namespaces. If present but empty, this selector selects all namespaces. + + :param namespace_selector: The namespace_selector of this V1beta1NetworkPolicyPeer. + :type: UnversionedLabelSelector + """ + + self._namespace_selector = namespace_selector + + @property + def pod_selector(self): + """ + Gets the pod_selector of this V1beta1NetworkPolicyPeer. + This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If not provided, this selector selects no pods. If present but empty, this selector selects all pods in this namespace. + + :return: The pod_selector of this V1beta1NetworkPolicyPeer. + :rtype: UnversionedLabelSelector + """ + return self._pod_selector + + @pod_selector.setter + def pod_selector(self, pod_selector): + """ + Sets the pod_selector of this V1beta1NetworkPolicyPeer. + This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If not provided, this selector selects no pods. If present but empty, this selector selects all pods in this namespace. + + :param pod_selector: The pod_selector of this V1beta1NetworkPolicyPeer. + :type: UnversionedLabelSelector + """ + + self._pod_selector = pod_selector + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_network_policy_port.py b/k8sclient/models/v1beta1_network_policy_port.py new file mode 100644 index 000000000..f95a21c39 --- /dev/null +++ b/k8sclient/models/v1beta1_network_policy_port.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1NetworkPolicyPort(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, port=None, protocol=None): + """ + V1beta1NetworkPolicyPort - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'port': 'IntstrIntOrString', + 'protocol': 'str' + } + + self.attribute_map = { + 'port': 'port', + 'protocol': 'protocol' + } + + self._port = port + self._protocol = protocol + + + @property + def port(self): + """ + Gets the port of this V1beta1NetworkPolicyPort. + If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. + + :return: The port of this V1beta1NetworkPolicyPort. + :rtype: IntstrIntOrString + """ + return self._port + + @port.setter + def port(self, port): + """ + Sets the port of this V1beta1NetworkPolicyPort. + If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. + + :param port: The port of this V1beta1NetworkPolicyPort. + :type: IntstrIntOrString + """ + + self._port = port + + @property + def protocol(self): + """ + Gets the protocol of this V1beta1NetworkPolicyPort. + Optional. The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP. + + :return: The protocol of this V1beta1NetworkPolicyPort. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """ + Sets the protocol of this V1beta1NetworkPolicyPort. + Optional. The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP. + + :param protocol: The protocol of this V1beta1NetworkPolicyPort. + :type: str + """ + + self._protocol = protocol + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_network_policy_spec.py b/k8sclient/models/v1beta1_network_policy_spec.py new file mode 100644 index 000000000..32fa02f1c --- /dev/null +++ b/k8sclient/models/v1beta1_network_policy_spec.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1NetworkPolicySpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, ingress=None, pod_selector=None): + """ + V1beta1NetworkPolicySpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'ingress': 'list[V1beta1NetworkPolicyIngressRule]', + 'pod_selector': 'UnversionedLabelSelector' + } + + self.attribute_map = { + 'ingress': 'ingress', + 'pod_selector': 'podSelector' + } + + self._ingress = ingress + self._pod_selector = pod_selector + + + @property + def ingress(self): + """ + Gets the ingress of this V1beta1NetworkPolicySpec. + List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if namespace.networkPolicy.ingress.isolation is undefined and cluster policy allows it, OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not affect ingress isolation. If this field is present and contains at least one rule, this policy allows any traffic which matches at least one of the ingress rules in this list. + + :return: The ingress of this V1beta1NetworkPolicySpec. + :rtype: list[V1beta1NetworkPolicyIngressRule] + """ + return self._ingress + + @ingress.setter + def ingress(self, ingress): + """ + Sets the ingress of this V1beta1NetworkPolicySpec. + List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if namespace.networkPolicy.ingress.isolation is undefined and cluster policy allows it, OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not affect ingress isolation. If this field is present and contains at least one rule, this policy allows any traffic which matches at least one of the ingress rules in this list. + + :param ingress: The ingress of this V1beta1NetworkPolicySpec. + :type: list[V1beta1NetworkPolicyIngressRule] + """ + + self._ingress = ingress + + @property + def pod_selector(self): + """ + Gets the pod_selector of this V1beta1NetworkPolicySpec. + Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + + :return: The pod_selector of this V1beta1NetworkPolicySpec. + :rtype: UnversionedLabelSelector + """ + return self._pod_selector + + @pod_selector.setter + def pod_selector(self, pod_selector): + """ + Sets the pod_selector of this V1beta1NetworkPolicySpec. + Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + + :param pod_selector: The pod_selector of this V1beta1NetworkPolicySpec. + :type: UnversionedLabelSelector + """ + if pod_selector is None: + raise ValueError("Invalid value for `pod_selector`, must not be `None`") + + self._pod_selector = pod_selector + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_non_resource_attributes.py b/k8sclient/models/v1beta1_non_resource_attributes.py new file mode 100644 index 000000000..e71a80ff7 --- /dev/null +++ b/k8sclient/models/v1beta1_non_resource_attributes.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1NonResourceAttributes(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, path=None, verb=None): + """ + V1beta1NonResourceAttributes - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'path': 'str', + 'verb': 'str' + } + + self.attribute_map = { + 'path': 'path', + 'verb': 'verb' + } + + self._path = path + self._verb = verb + + + @property + def path(self): + """ + Gets the path of this V1beta1NonResourceAttributes. + Path is the URL path of the request + + :return: The path of this V1beta1NonResourceAttributes. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1beta1NonResourceAttributes. + Path is the URL path of the request + + :param path: The path of this V1beta1NonResourceAttributes. + :type: str + """ + + self._path = path + + @property + def verb(self): + """ + Gets the verb of this V1beta1NonResourceAttributes. + Verb is the standard HTTP verb + + :return: The verb of this V1beta1NonResourceAttributes. + :rtype: str + """ + return self._verb + + @verb.setter + def verb(self, verb): + """ + Sets the verb of this V1beta1NonResourceAttributes. + Verb is the standard HTTP verb + + :param verb: The verb of this V1beta1NonResourceAttributes. + :type: str + """ + + self._verb = verb + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_replica_set.py b/k8sclient/models/v1beta1_replica_set.py new file mode 100644 index 000000000..ea21f1a06 --- /dev/null +++ b/k8sclient/models/v1beta1_replica_set.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1ReplicaSet(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1beta1ReplicaSet - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1beta1ReplicaSetSpec', + 'status': 'V1beta1ReplicaSetStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1ReplicaSet. + If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1beta1ReplicaSet. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1ReplicaSet. + If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1beta1ReplicaSet. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1ReplicaSet. + Spec defines the specification of the desired behavior of the ReplicaSet. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The spec of this V1beta1ReplicaSet. + :rtype: V1beta1ReplicaSetSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1ReplicaSet. + Spec defines the specification of the desired behavior of the ReplicaSet. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param spec: The spec of this V1beta1ReplicaSet. + :type: V1beta1ReplicaSetSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1beta1ReplicaSet. + Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The status of this V1beta1ReplicaSet. + :rtype: V1beta1ReplicaSetStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1ReplicaSet. + Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param status: The status of this V1beta1ReplicaSet. + :type: V1beta1ReplicaSetStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_replica_set_condition.py b/k8sclient/models/v1beta1_replica_set_condition.py new file mode 100644 index 000000000..28de97125 --- /dev/null +++ b/k8sclient/models/v1beta1_replica_set_condition.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1ReplicaSetCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): + """ + V1beta1ReplicaSetCondition - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'last_transition_time': 'UnversionedTime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + self._last_transition_time = last_transition_time + self._message = message + self._reason = reason + self._status = status + self._type = type + + + @property + def last_transition_time(self): + """ + Gets the last_transition_time of this V1beta1ReplicaSetCondition. + The last time the condition transitioned from one status to another. + + :return: The last_transition_time of this V1beta1ReplicaSetCondition. + :rtype: UnversionedTime + """ + return self._last_transition_time + + @last_transition_time.setter + def last_transition_time(self, last_transition_time): + """ + Sets the last_transition_time of this V1beta1ReplicaSetCondition. + The last time the condition transitioned from one status to another. + + :param last_transition_time: The last_transition_time of this V1beta1ReplicaSetCondition. + :type: UnversionedTime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """ + Gets the message of this V1beta1ReplicaSetCondition. + A human readable message indicating details about the transition. + + :return: The message of this V1beta1ReplicaSetCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1beta1ReplicaSetCondition. + A human readable message indicating details about the transition. + + :param message: The message of this V1beta1ReplicaSetCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1beta1ReplicaSetCondition. + The reason for the condition's last transition. + + :return: The reason of this V1beta1ReplicaSetCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1beta1ReplicaSetCondition. + The reason for the condition's last transition. + + :param reason: The reason of this V1beta1ReplicaSetCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1beta1ReplicaSetCondition. + Status of the condition, one of True, False, Unknown. + + :return: The status of this V1beta1ReplicaSetCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1ReplicaSetCondition. + Status of the condition, one of True, False, Unknown. + + :param status: The status of this V1beta1ReplicaSetCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1beta1ReplicaSetCondition. + Type of replica set condition. + + :return: The type of this V1beta1ReplicaSetCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1beta1ReplicaSetCondition. + Type of replica set condition. + + :param type: The type of this V1beta1ReplicaSetCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_replica_set_list.py b/k8sclient/models/v1beta1_replica_set_list.py new file mode 100644 index 000000000..9c1cb6623 --- /dev/null +++ b/k8sclient/models/v1beta1_replica_set_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1ReplicaSetList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1beta1ReplicaSetList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1beta1ReplicaSet]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1beta1ReplicaSetList. + List of ReplicaSets. More info: http://kubernetes.io/docs/user-guide/replication-controller + + :return: The items of this V1beta1ReplicaSetList. + :rtype: list[V1beta1ReplicaSet] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1ReplicaSetList. + List of ReplicaSets. More info: http://kubernetes.io/docs/user-guide/replication-controller + + :param items: The items of this V1beta1ReplicaSetList. + :type: list[V1beta1ReplicaSet] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1ReplicaSetList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this V1beta1ReplicaSetList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1ReplicaSetList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1beta1ReplicaSetList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_replica_set_spec.py b/k8sclient/models/v1beta1_replica_set_spec.py new file mode 100644 index 000000000..6f067e773 --- /dev/null +++ b/k8sclient/models/v1beta1_replica_set_spec.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1ReplicaSetSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None): + """ + V1beta1ReplicaSetSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'min_ready_seconds': 'int', + 'replicas': 'int', + 'selector': 'UnversionedLabelSelector', + 'template': 'V1PodTemplateSpec' + } + + self.attribute_map = { + 'min_ready_seconds': 'minReadySeconds', + 'replicas': 'replicas', + 'selector': 'selector', + 'template': 'template' + } + + self._min_ready_seconds = min_ready_seconds + self._replicas = replicas + self._selector = selector + self._template = template + + + @property + def min_ready_seconds(self): + """ + Gets the min_ready_seconds of this V1beta1ReplicaSetSpec. + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + + :return: The min_ready_seconds of this V1beta1ReplicaSetSpec. + :rtype: int + """ + return self._min_ready_seconds + + @min_ready_seconds.setter + def min_ready_seconds(self, min_ready_seconds): + """ + Sets the min_ready_seconds of this V1beta1ReplicaSetSpec. + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + + :param min_ready_seconds: The min_ready_seconds of this V1beta1ReplicaSetSpec. + :type: int + """ + + self._min_ready_seconds = min_ready_seconds + + @property + def replicas(self): + """ + Gets the replicas of this V1beta1ReplicaSetSpec. + Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller + + :return: The replicas of this V1beta1ReplicaSetSpec. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1beta1ReplicaSetSpec. + Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller + + :param replicas: The replicas of this V1beta1ReplicaSetSpec. + :type: int + """ + + self._replicas = replicas + + @property + def selector(self): + """ + Gets the selector of this V1beta1ReplicaSetSpec. + Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :return: The selector of this V1beta1ReplicaSetSpec. + :rtype: UnversionedLabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1beta1ReplicaSetSpec. + Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :param selector: The selector of this V1beta1ReplicaSetSpec. + :type: UnversionedLabelSelector + """ + + self._selector = selector + + @property + def template(self): + """ + Gets the template of this V1beta1ReplicaSetSpec. + Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template + + :return: The template of this V1beta1ReplicaSetSpec. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1beta1ReplicaSetSpec. + Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template + + :param template: The template of this V1beta1ReplicaSetSpec. + :type: V1PodTemplateSpec + """ + + self._template = template + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_replica_set_status.py b/k8sclient/models/v1beta1_replica_set_status.py new file mode 100644 index 000000000..32143bd92 --- /dev/null +++ b/k8sclient/models/v1beta1_replica_set_status.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1ReplicaSetStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None): + """ + V1beta1ReplicaSetStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'available_replicas': 'int', + 'conditions': 'list[V1beta1ReplicaSetCondition]', + 'fully_labeled_replicas': 'int', + 'observed_generation': 'int', + 'ready_replicas': 'int', + 'replicas': 'int' + } + + self.attribute_map = { + 'available_replicas': 'availableReplicas', + 'conditions': 'conditions', + 'fully_labeled_replicas': 'fullyLabeledReplicas', + 'observed_generation': 'observedGeneration', + 'ready_replicas': 'readyReplicas', + 'replicas': 'replicas' + } + + self._available_replicas = available_replicas + self._conditions = conditions + self._fully_labeled_replicas = fully_labeled_replicas + self._observed_generation = observed_generation + self._ready_replicas = ready_replicas + self._replicas = replicas + + + @property + def available_replicas(self): + """ + Gets the available_replicas of this V1beta1ReplicaSetStatus. + The number of available replicas (ready for at least minReadySeconds) for this replica set. + + :return: The available_replicas of this V1beta1ReplicaSetStatus. + :rtype: int + """ + return self._available_replicas + + @available_replicas.setter + def available_replicas(self, available_replicas): + """ + Sets the available_replicas of this V1beta1ReplicaSetStatus. + The number of available replicas (ready for at least minReadySeconds) for this replica set. + + :param available_replicas: The available_replicas of this V1beta1ReplicaSetStatus. + :type: int + """ + + self._available_replicas = available_replicas + + @property + def conditions(self): + """ + Gets the conditions of this V1beta1ReplicaSetStatus. + Represents the latest available observations of a replica set's current state. + + :return: The conditions of this V1beta1ReplicaSetStatus. + :rtype: list[V1beta1ReplicaSetCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1beta1ReplicaSetStatus. + Represents the latest available observations of a replica set's current state. + + :param conditions: The conditions of this V1beta1ReplicaSetStatus. + :type: list[V1beta1ReplicaSetCondition] + """ + + self._conditions = conditions + + @property + def fully_labeled_replicas(self): + """ + Gets the fully_labeled_replicas of this V1beta1ReplicaSetStatus. + The number of pods that have labels matching the labels of the pod template of the replicaset. + + :return: The fully_labeled_replicas of this V1beta1ReplicaSetStatus. + :rtype: int + """ + return self._fully_labeled_replicas + + @fully_labeled_replicas.setter + def fully_labeled_replicas(self, fully_labeled_replicas): + """ + Sets the fully_labeled_replicas of this V1beta1ReplicaSetStatus. + The number of pods that have labels matching the labels of the pod template of the replicaset. + + :param fully_labeled_replicas: The fully_labeled_replicas of this V1beta1ReplicaSetStatus. + :type: int + """ + + self._fully_labeled_replicas = fully_labeled_replicas + + @property + def observed_generation(self): + """ + Gets the observed_generation of this V1beta1ReplicaSetStatus. + ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + + :return: The observed_generation of this V1beta1ReplicaSetStatus. + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """ + Sets the observed_generation of this V1beta1ReplicaSetStatus. + ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + + :param observed_generation: The observed_generation of this V1beta1ReplicaSetStatus. + :type: int + """ + + self._observed_generation = observed_generation + + @property + def ready_replicas(self): + """ + Gets the ready_replicas of this V1beta1ReplicaSetStatus. + The number of ready replicas for this replica set. + + :return: The ready_replicas of this V1beta1ReplicaSetStatus. + :rtype: int + """ + return self._ready_replicas + + @ready_replicas.setter + def ready_replicas(self, ready_replicas): + """ + Sets the ready_replicas of this V1beta1ReplicaSetStatus. + The number of ready replicas for this replica set. + + :param ready_replicas: The ready_replicas of this V1beta1ReplicaSetStatus. + :type: int + """ + + self._ready_replicas = ready_replicas + + @property + def replicas(self): + """ + Gets the replicas of this V1beta1ReplicaSetStatus. + Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller + + :return: The replicas of this V1beta1ReplicaSetStatus. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1beta1ReplicaSetStatus. + Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller + + :param replicas: The replicas of this V1beta1ReplicaSetStatus. + :type: int + """ + if replicas is None: + raise ValueError("Invalid value for `replicas`, must not be `None`") + + self._replicas = replicas + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_resource_attributes.py b/k8sclient/models/v1beta1_resource_attributes.py new file mode 100644 index 000000000..966d5b738 --- /dev/null +++ b/k8sclient/models/v1beta1_resource_attributes.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1ResourceAttributes(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, group=None, name=None, namespace=None, resource=None, subresource=None, verb=None, version=None): + """ + V1beta1ResourceAttributes - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'group': 'str', + 'name': 'str', + 'namespace': 'str', + 'resource': 'str', + 'subresource': 'str', + 'verb': 'str', + 'version': 'str' + } + + self.attribute_map = { + 'group': 'group', + 'name': 'name', + 'namespace': 'namespace', + 'resource': 'resource', + 'subresource': 'subresource', + 'verb': 'verb', + 'version': 'version' + } + + self._group = group + self._name = name + self._namespace = namespace + self._resource = resource + self._subresource = subresource + self._verb = verb + self._version = version + + + @property + def group(self): + """ + Gets the group of this V1beta1ResourceAttributes. + Group is the API Group of the Resource. \"*\" means all. + + :return: The group of this V1beta1ResourceAttributes. + :rtype: str + """ + return self._group + + @group.setter + def group(self, group): + """ + Sets the group of this V1beta1ResourceAttributes. + Group is the API Group of the Resource. \"*\" means all. + + :param group: The group of this V1beta1ResourceAttributes. + :type: str + """ + + self._group = group + + @property + def name(self): + """ + Gets the name of this V1beta1ResourceAttributes. + Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. + + :return: The name of this V1beta1ResourceAttributes. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1beta1ResourceAttributes. + Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. + + :param name: The name of this V1beta1ResourceAttributes. + :type: str + """ + + self._name = name + + @property + def namespace(self): + """ + Gets the namespace of this V1beta1ResourceAttributes. + Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + + :return: The namespace of this V1beta1ResourceAttributes. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1beta1ResourceAttributes. + Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + + :param namespace: The namespace of this V1beta1ResourceAttributes. + :type: str + """ + + self._namespace = namespace + + @property + def resource(self): + """ + Gets the resource of this V1beta1ResourceAttributes. + Resource is one of the existing resource types. \"*\" means all. + + :return: The resource of this V1beta1ResourceAttributes. + :rtype: str + """ + return self._resource + + @resource.setter + def resource(self, resource): + """ + Sets the resource of this V1beta1ResourceAttributes. + Resource is one of the existing resource types. \"*\" means all. + + :param resource: The resource of this V1beta1ResourceAttributes. + :type: str + """ + + self._resource = resource + + @property + def subresource(self): + """ + Gets the subresource of this V1beta1ResourceAttributes. + Subresource is one of the existing resource types. \"\" means none. + + :return: The subresource of this V1beta1ResourceAttributes. + :rtype: str + """ + return self._subresource + + @subresource.setter + def subresource(self, subresource): + """ + Sets the subresource of this V1beta1ResourceAttributes. + Subresource is one of the existing resource types. \"\" means none. + + :param subresource: The subresource of this V1beta1ResourceAttributes. + :type: str + """ + + self._subresource = subresource + + @property + def verb(self): + """ + Gets the verb of this V1beta1ResourceAttributes. + Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + + :return: The verb of this V1beta1ResourceAttributes. + :rtype: str + """ + return self._verb + + @verb.setter + def verb(self, verb): + """ + Sets the verb of this V1beta1ResourceAttributes. + Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + + :param verb: The verb of this V1beta1ResourceAttributes. + :type: str + """ + + self._verb = verb + + @property + def version(self): + """ + Gets the version of this V1beta1ResourceAttributes. + Version is the API Version of the Resource. \"*\" means all. + + :return: The version of this V1beta1ResourceAttributes. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this V1beta1ResourceAttributes. + Version is the API Version of the Resource. \"*\" means all. + + :param version: The version of this V1beta1ResourceAttributes. + :type: str + """ + + self._version = version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_rollback_config.py b/k8sclient/models/v1beta1_rollback_config.py new file mode 100644 index 000000000..36ac9966e --- /dev/null +++ b/k8sclient/models/v1beta1_rollback_config.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1RollbackConfig(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, revision=None): + """ + V1beta1RollbackConfig - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'revision': 'int' + } + + self.attribute_map = { + 'revision': 'revision' + } + + self._revision = revision + + + @property + def revision(self): + """ + Gets the revision of this V1beta1RollbackConfig. + The revision to rollback to. If set to 0, rollbck to the last revision. + + :return: The revision of this V1beta1RollbackConfig. + :rtype: int + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this V1beta1RollbackConfig. + The revision to rollback to. If set to 0, rollbck to the last revision. + + :param revision: The revision of this V1beta1RollbackConfig. + :type: int + """ + + self._revision = revision + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_rolling_update_deployment.py b/k8sclient/models/v1beta1_rolling_update_deployment.py new file mode 100644 index 000000000..bb90d0ac5 --- /dev/null +++ b/k8sclient/models/v1beta1_rolling_update_deployment.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1RollingUpdateDeployment(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, max_surge=None, max_unavailable=None): + """ + V1beta1RollingUpdateDeployment - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'max_surge': 'IntstrIntOrString', + 'max_unavailable': 'IntstrIntOrString' + } + + self.attribute_map = { + 'max_surge': 'maxSurge', + 'max_unavailable': 'maxUnavailable' + } + + self._max_surge = max_surge + self._max_unavailable = max_unavailable + + + @property + def max_surge(self): + """ + Gets the max_surge of this V1beta1RollingUpdateDeployment. + The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. + + :return: The max_surge of this V1beta1RollingUpdateDeployment. + :rtype: IntstrIntOrString + """ + return self._max_surge + + @max_surge.setter + def max_surge(self, max_surge): + """ + Sets the max_surge of this V1beta1RollingUpdateDeployment. + The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. + + :param max_surge: The max_surge of this V1beta1RollingUpdateDeployment. + :type: IntstrIntOrString + """ + + self._max_surge = max_surge + + @property + def max_unavailable(self): + """ + Gets the max_unavailable of this V1beta1RollingUpdateDeployment. + The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + :return: The max_unavailable of this V1beta1RollingUpdateDeployment. + :rtype: IntstrIntOrString + """ + return self._max_unavailable + + @max_unavailable.setter + def max_unavailable(self, max_unavailable): + """ + Sets the max_unavailable of this V1beta1RollingUpdateDeployment. + The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + :param max_unavailable: The max_unavailable of this V1beta1RollingUpdateDeployment. + :type: IntstrIntOrString + """ + + self._max_unavailable = max_unavailable + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_scale.py b/k8sclient/models/v1beta1_scale.py new file mode 100644 index 000000000..8c7a36471 --- /dev/null +++ b/k8sclient/models/v1beta1_scale.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1Scale(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1beta1Scale - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1beta1ScaleSpec', + 'status': 'V1beta1ScaleStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1Scale. + Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. + + :return: The metadata of this V1beta1Scale. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1Scale. + Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. + + :param metadata: The metadata of this V1beta1Scale. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1Scale. + defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + + :return: The spec of this V1beta1Scale. + :rtype: V1beta1ScaleSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1Scale. + defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + + :param spec: The spec of this V1beta1Scale. + :type: V1beta1ScaleSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1beta1Scale. + current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. + + :return: The status of this V1beta1Scale. + :rtype: V1beta1ScaleStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1Scale. + current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. + + :param status: The status of this V1beta1Scale. + :type: V1beta1ScaleStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_scale_spec.py b/k8sclient/models/v1beta1_scale_spec.py new file mode 100644 index 000000000..57cf26a08 --- /dev/null +++ b/k8sclient/models/v1beta1_scale_spec.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1ScaleSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, replicas=None): + """ + V1beta1ScaleSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'replicas': 'int' + } + + self.attribute_map = { + 'replicas': 'replicas' + } + + self._replicas = replicas + + + @property + def replicas(self): + """ + Gets the replicas of this V1beta1ScaleSpec. + desired number of instances for the scaled object. + + :return: The replicas of this V1beta1ScaleSpec. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1beta1ScaleSpec. + desired number of instances for the scaled object. + + :param replicas: The replicas of this V1beta1ScaleSpec. + :type: int + """ + + self._replicas = replicas + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_scale_status.py b/k8sclient/models/v1beta1_scale_status.py new file mode 100644 index 000000000..501a9317b --- /dev/null +++ b/k8sclient/models/v1beta1_scale_status.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1ScaleStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, replicas=None, selector=None, target_selector=None): + """ + V1beta1ScaleStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'replicas': 'int', + 'selector': 'dict(str, str)', + 'target_selector': 'str' + } + + self.attribute_map = { + 'replicas': 'replicas', + 'selector': 'selector', + 'target_selector': 'targetSelector' + } + + self._replicas = replicas + self._selector = selector + self._target_selector = target_selector + + + @property + def replicas(self): + """ + Gets the replicas of this V1beta1ScaleStatus. + actual number of observed instances of the scaled object. + + :return: The replicas of this V1beta1ScaleStatus. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1beta1ScaleStatus. + actual number of observed instances of the scaled object. + + :param replicas: The replicas of this V1beta1ScaleStatus. + :type: int + """ + if replicas is None: + raise ValueError("Invalid value for `replicas`, must not be `None`") + + self._replicas = replicas + + @property + def selector(self): + """ + Gets the selector of this V1beta1ScaleStatus. + label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :return: The selector of this V1beta1ScaleStatus. + :rtype: dict(str, str) + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1beta1ScaleStatus. + label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :param selector: The selector of this V1beta1ScaleStatus. + :type: dict(str, str) + """ + + self._selector = selector + + @property + def target_selector(self): + """ + Gets the target_selector of this V1beta1ScaleStatus. + label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :return: The target_selector of this V1beta1ScaleStatus. + :rtype: str + """ + return self._target_selector + + @target_selector.setter + def target_selector(self, target_selector): + """ + Sets the target_selector of this V1beta1ScaleStatus. + label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :param target_selector: The target_selector of this V1beta1ScaleStatus. + :type: str + """ + + self._target_selector = target_selector + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_self_subject_access_review.py b/k8sclient/models/v1beta1_self_subject_access_review.py new file mode 100644 index 000000000..420c7d181 --- /dev/null +++ b/k8sclient/models/v1beta1_self_subject_access_review.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1SelfSubjectAccessReview(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1beta1SelfSubjectAccessReview - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1beta1SelfSubjectAccessReviewSpec', + 'status': 'V1beta1SubjectAccessReviewStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1SelfSubjectAccessReview. + + + :return: The metadata of this V1beta1SelfSubjectAccessReview. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1SelfSubjectAccessReview. + + + :param metadata: The metadata of this V1beta1SelfSubjectAccessReview. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1SelfSubjectAccessReview. + Spec holds information about the request being evaluated. user and groups must be empty + + :return: The spec of this V1beta1SelfSubjectAccessReview. + :rtype: V1beta1SelfSubjectAccessReviewSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1SelfSubjectAccessReview. + Spec holds information about the request being evaluated. user and groups must be empty + + :param spec: The spec of this V1beta1SelfSubjectAccessReview. + :type: V1beta1SelfSubjectAccessReviewSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1beta1SelfSubjectAccessReview. + Status is filled in by the server and indicates whether the request is allowed or not + + :return: The status of this V1beta1SelfSubjectAccessReview. + :rtype: V1beta1SubjectAccessReviewStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1SelfSubjectAccessReview. + Status is filled in by the server and indicates whether the request is allowed or not + + :param status: The status of this V1beta1SelfSubjectAccessReview. + :type: V1beta1SubjectAccessReviewStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_self_subject_access_review_spec.py b/k8sclient/models/v1beta1_self_subject_access_review_spec.py new file mode 100644 index 000000000..67a5bbb22 --- /dev/null +++ b/k8sclient/models/v1beta1_self_subject_access_review_spec.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1SelfSubjectAccessReviewSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, non_resource_attributes=None, resource_attributes=None): + """ + V1beta1SelfSubjectAccessReviewSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'non_resource_attributes': 'V1beta1NonResourceAttributes', + 'resource_attributes': 'V1beta1ResourceAttributes' + } + + self.attribute_map = { + 'non_resource_attributes': 'nonResourceAttributes', + 'resource_attributes': 'resourceAttributes' + } + + self._non_resource_attributes = non_resource_attributes + self._resource_attributes = resource_attributes + + + @property + def non_resource_attributes(self): + """ + Gets the non_resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. + NonResourceAttributes describes information for a non-resource access request + + :return: The non_resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. + :rtype: V1beta1NonResourceAttributes + """ + return self._non_resource_attributes + + @non_resource_attributes.setter + def non_resource_attributes(self, non_resource_attributes): + """ + Sets the non_resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. + NonResourceAttributes describes information for a non-resource access request + + :param non_resource_attributes: The non_resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. + :type: V1beta1NonResourceAttributes + """ + + self._non_resource_attributes = non_resource_attributes + + @property + def resource_attributes(self): + """ + Gets the resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. + ResourceAuthorizationAttributes describes information for a resource access request + + :return: The resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. + :rtype: V1beta1ResourceAttributes + """ + return self._resource_attributes + + @resource_attributes.setter + def resource_attributes(self, resource_attributes): + """ + Sets the resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. + ResourceAuthorizationAttributes describes information for a resource access request + + :param resource_attributes: The resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. + :type: V1beta1ResourceAttributes + """ + + self._resource_attributes = resource_attributes + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_storage_class.py b/k8sclient/models/v1beta1_storage_class.py new file mode 100644 index 000000000..0f813dd0e --- /dev/null +++ b/k8sclient/models/v1beta1_storage_class.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1StorageClass(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, parameters=None, provisioner=None): + """ + V1beta1StorageClass - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'parameters': 'dict(str, str)', + 'provisioner': 'str' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'parameters': 'parameters', + 'provisioner': 'provisioner' + } + + self._metadata = metadata + self._parameters = parameters + self._provisioner = provisioner + + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1StorageClass. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1beta1StorageClass. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1StorageClass. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1beta1StorageClass. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def parameters(self): + """ + Gets the parameters of this V1beta1StorageClass. + Parameters holds the parameters for the provisioner that should create volumes of this storage class. + + :return: The parameters of this V1beta1StorageClass. + :rtype: dict(str, str) + """ + return self._parameters + + @parameters.setter + def parameters(self, parameters): + """ + Sets the parameters of this V1beta1StorageClass. + Parameters holds the parameters for the provisioner that should create volumes of this storage class. + + :param parameters: The parameters of this V1beta1StorageClass. + :type: dict(str, str) + """ + + self._parameters = parameters + + @property + def provisioner(self): + """ + Gets the provisioner of this V1beta1StorageClass. + Provisioner indicates the type of the provisioner. + + :return: The provisioner of this V1beta1StorageClass. + :rtype: str + """ + return self._provisioner + + @provisioner.setter + def provisioner(self, provisioner): + """ + Sets the provisioner of this V1beta1StorageClass. + Provisioner indicates the type of the provisioner. + + :param provisioner: The provisioner of this V1beta1StorageClass. + :type: str + """ + if provisioner is None: + raise ValueError("Invalid value for `provisioner`, must not be `None`") + + self._provisioner = provisioner + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_storage_class_list.py b/k8sclient/models/v1beta1_storage_class_list.py new file mode 100644 index 000000000..94b7a95e7 --- /dev/null +++ b/k8sclient/models/v1beta1_storage_class_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1StorageClassList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1beta1StorageClassList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1beta1StorageClass]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1beta1StorageClassList. + Items is the list of StorageClasses + + :return: The items of this V1beta1StorageClassList. + :rtype: list[V1beta1StorageClass] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1StorageClassList. + Items is the list of StorageClasses + + :param items: The items of this V1beta1StorageClassList. + :type: list[V1beta1StorageClass] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1StorageClassList. + Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1beta1StorageClassList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1StorageClassList. + Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1beta1StorageClassList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_subject_access_review.py b/k8sclient/models/v1beta1_subject_access_review.py new file mode 100644 index 000000000..355d72f5b --- /dev/null +++ b/k8sclient/models/v1beta1_subject_access_review.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1SubjectAccessReview(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1beta1SubjectAccessReview - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1beta1SubjectAccessReviewSpec', + 'status': 'V1beta1SubjectAccessReviewStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1SubjectAccessReview. + + + :return: The metadata of this V1beta1SubjectAccessReview. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1SubjectAccessReview. + + + :param metadata: The metadata of this V1beta1SubjectAccessReview. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1SubjectAccessReview. + Spec holds information about the request being evaluated + + :return: The spec of this V1beta1SubjectAccessReview. + :rtype: V1beta1SubjectAccessReviewSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1SubjectAccessReview. + Spec holds information about the request being evaluated + + :param spec: The spec of this V1beta1SubjectAccessReview. + :type: V1beta1SubjectAccessReviewSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1beta1SubjectAccessReview. + Status is filled in by the server and indicates whether the request is allowed or not + + :return: The status of this V1beta1SubjectAccessReview. + :rtype: V1beta1SubjectAccessReviewStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1SubjectAccessReview. + Status is filled in by the server and indicates whether the request is allowed or not + + :param status: The status of this V1beta1SubjectAccessReview. + :type: V1beta1SubjectAccessReviewStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_subject_access_review_spec.py b/k8sclient/models/v1beta1_subject_access_review_spec.py new file mode 100644 index 000000000..00833c3ce --- /dev/null +++ b/k8sclient/models/v1beta1_subject_access_review_spec.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1SubjectAccessReviewSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, extra=None, group=None, non_resource_attributes=None, resource_attributes=None, user=None): + """ + V1beta1SubjectAccessReviewSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'extra': 'dict(str, list[str])', + 'group': 'list[str]', + 'non_resource_attributes': 'V1beta1NonResourceAttributes', + 'resource_attributes': 'V1beta1ResourceAttributes', + 'user': 'str' + } + + self.attribute_map = { + 'extra': 'extra', + 'group': 'group', + 'non_resource_attributes': 'nonResourceAttributes', + 'resource_attributes': 'resourceAttributes', + 'user': 'user' + } + + self._extra = extra + self._group = group + self._non_resource_attributes = non_resource_attributes + self._resource_attributes = resource_attributes + self._user = user + + + @property + def extra(self): + """ + Gets the extra of this V1beta1SubjectAccessReviewSpec. + Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + + :return: The extra of this V1beta1SubjectAccessReviewSpec. + :rtype: dict(str, list[str]) + """ + return self._extra + + @extra.setter + def extra(self, extra): + """ + Sets the extra of this V1beta1SubjectAccessReviewSpec. + Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + + :param extra: The extra of this V1beta1SubjectAccessReviewSpec. + :type: dict(str, list[str]) + """ + + self._extra = extra + + @property + def group(self): + """ + Gets the group of this V1beta1SubjectAccessReviewSpec. + Groups is the groups you're testing for. + + :return: The group of this V1beta1SubjectAccessReviewSpec. + :rtype: list[str] + """ + return self._group + + @group.setter + def group(self, group): + """ + Sets the group of this V1beta1SubjectAccessReviewSpec. + Groups is the groups you're testing for. + + :param group: The group of this V1beta1SubjectAccessReviewSpec. + :type: list[str] + """ + + self._group = group + + @property + def non_resource_attributes(self): + """ + Gets the non_resource_attributes of this V1beta1SubjectAccessReviewSpec. + NonResourceAttributes describes information for a non-resource access request + + :return: The non_resource_attributes of this V1beta1SubjectAccessReviewSpec. + :rtype: V1beta1NonResourceAttributes + """ + return self._non_resource_attributes + + @non_resource_attributes.setter + def non_resource_attributes(self, non_resource_attributes): + """ + Sets the non_resource_attributes of this V1beta1SubjectAccessReviewSpec. + NonResourceAttributes describes information for a non-resource access request + + :param non_resource_attributes: The non_resource_attributes of this V1beta1SubjectAccessReviewSpec. + :type: V1beta1NonResourceAttributes + """ + + self._non_resource_attributes = non_resource_attributes + + @property + def resource_attributes(self): + """ + Gets the resource_attributes of this V1beta1SubjectAccessReviewSpec. + ResourceAuthorizationAttributes describes information for a resource access request + + :return: The resource_attributes of this V1beta1SubjectAccessReviewSpec. + :rtype: V1beta1ResourceAttributes + """ + return self._resource_attributes + + @resource_attributes.setter + def resource_attributes(self, resource_attributes): + """ + Sets the resource_attributes of this V1beta1SubjectAccessReviewSpec. + ResourceAuthorizationAttributes describes information for a resource access request + + :param resource_attributes: The resource_attributes of this V1beta1SubjectAccessReviewSpec. + :type: V1beta1ResourceAttributes + """ + + self._resource_attributes = resource_attributes + + @property + def user(self): + """ + Gets the user of this V1beta1SubjectAccessReviewSpec. + User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups + + :return: The user of this V1beta1SubjectAccessReviewSpec. + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """ + Sets the user of this V1beta1SubjectAccessReviewSpec. + User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups + + :param user: The user of this V1beta1SubjectAccessReviewSpec. + :type: str + """ + + self._user = user + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_subject_access_review_status.py b/k8sclient/models/v1beta1_subject_access_review_status.py new file mode 100644 index 000000000..9a4c7ce8c --- /dev/null +++ b/k8sclient/models/v1beta1_subject_access_review_status.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1SubjectAccessReviewStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, allowed=None, evaluation_error=None, reason=None): + """ + V1beta1SubjectAccessReviewStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'allowed': 'bool', + 'evaluation_error': 'str', + 'reason': 'str' + } + + self.attribute_map = { + 'allowed': 'allowed', + 'evaluation_error': 'evaluationError', + 'reason': 'reason' + } + + self._allowed = allowed + self._evaluation_error = evaluation_error + self._reason = reason + + + @property + def allowed(self): + """ + Gets the allowed of this V1beta1SubjectAccessReviewStatus. + Allowed is required. True if the action would be allowed, false otherwise. + + :return: The allowed of this V1beta1SubjectAccessReviewStatus. + :rtype: bool + """ + return self._allowed + + @allowed.setter + def allowed(self, allowed): + """ + Sets the allowed of this V1beta1SubjectAccessReviewStatus. + Allowed is required. True if the action would be allowed, false otherwise. + + :param allowed: The allowed of this V1beta1SubjectAccessReviewStatus. + :type: bool + """ + if allowed is None: + raise ValueError("Invalid value for `allowed`, must not be `None`") + + self._allowed = allowed + + @property + def evaluation_error(self): + """ + Gets the evaluation_error of this V1beta1SubjectAccessReviewStatus. + EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + + :return: The evaluation_error of this V1beta1SubjectAccessReviewStatus. + :rtype: str + """ + return self._evaluation_error + + @evaluation_error.setter + def evaluation_error(self, evaluation_error): + """ + Sets the evaluation_error of this V1beta1SubjectAccessReviewStatus. + EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + + :param evaluation_error: The evaluation_error of this V1beta1SubjectAccessReviewStatus. + :type: str + """ + + self._evaluation_error = evaluation_error + + @property + def reason(self): + """ + Gets the reason of this V1beta1SubjectAccessReviewStatus. + Reason is optional. It indicates why a request was allowed or denied. + + :return: The reason of this V1beta1SubjectAccessReviewStatus. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1beta1SubjectAccessReviewStatus. + Reason is optional. It indicates why a request was allowed or denied. + + :param reason: The reason of this V1beta1SubjectAccessReviewStatus. + :type: str + """ + + self._reason = reason + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_subresource_reference.py b/k8sclient/models/v1beta1_subresource_reference.py new file mode 100644 index 000000000..d153ae7ef --- /dev/null +++ b/k8sclient/models/v1beta1_subresource_reference.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1SubresourceReference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, name=None, subresource=None): + """ + V1beta1SubresourceReference - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'name': 'str', + 'subresource': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'name': 'name', + 'subresource': 'subresource' + } + + self._api_version = api_version + self._kind = kind + self._name = name + self._subresource = subresource + + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1SubresourceReference. + API version of the referent + + :return: The api_version of this V1beta1SubresourceReference. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1SubresourceReference. + API version of the referent + + :param api_version: The api_version of this V1beta1SubresourceReference. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1beta1SubresourceReference. + Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1SubresourceReference. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1SubresourceReference. + Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1SubresourceReference. + :type: str + """ + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this V1beta1SubresourceReference. + Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :return: The name of this V1beta1SubresourceReference. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1beta1SubresourceReference. + Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :param name: The name of this V1beta1SubresourceReference. + :type: str + """ + + self._name = name + + @property + def subresource(self): + """ + Gets the subresource of this V1beta1SubresourceReference. + Subresource name of the referent + + :return: The subresource of this V1beta1SubresourceReference. + :rtype: str + """ + return self._subresource + + @subresource.setter + def subresource(self, subresource): + """ + Sets the subresource of this V1beta1SubresourceReference. + Subresource name of the referent + + :param subresource: The subresource of this V1beta1SubresourceReference. + :type: str + """ + + self._subresource = subresource + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_third_party_resource.py b/k8sclient/models/v1beta1_third_party_resource.py new file mode 100644 index 000000000..7c87fa954 --- /dev/null +++ b/k8sclient/models/v1beta1_third_party_resource.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1ThirdPartyResource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, description=None, metadata=None, versions=None): + """ + V1beta1ThirdPartyResource - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'description': 'str', + 'metadata': 'V1ObjectMeta', + 'versions': 'list[V1beta1APIVersion]' + } + + self.attribute_map = { + 'description': 'description', + 'metadata': 'metadata', + 'versions': 'versions' + } + + self._description = description + self._metadata = metadata + self._versions = versions + + + @property + def description(self): + """ + Gets the description of this V1beta1ThirdPartyResource. + Description is the description of this object. + + :return: The description of this V1beta1ThirdPartyResource. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this V1beta1ThirdPartyResource. + Description is the description of this object. + + :param description: The description of this V1beta1ThirdPartyResource. + :type: str + """ + + self._description = description + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1ThirdPartyResource. + Standard object metadata + + :return: The metadata of this V1beta1ThirdPartyResource. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1ThirdPartyResource. + Standard object metadata + + :param metadata: The metadata of this V1beta1ThirdPartyResource. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def versions(self): + """ + Gets the versions of this V1beta1ThirdPartyResource. + Versions are versions for this third party object + + :return: The versions of this V1beta1ThirdPartyResource. + :rtype: list[V1beta1APIVersion] + """ + return self._versions + + @versions.setter + def versions(self, versions): + """ + Sets the versions of this V1beta1ThirdPartyResource. + Versions are versions for this third party object + + :param versions: The versions of this V1beta1ThirdPartyResource. + :type: list[V1beta1APIVersion] + """ + + self._versions = versions + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_third_party_resource_list.py b/k8sclient/models/v1beta1_third_party_resource_list.py new file mode 100644 index 000000000..298e296a6 --- /dev/null +++ b/k8sclient/models/v1beta1_third_party_resource_list.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1ThirdPartyResourceList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, metadata=None): + """ + V1beta1ThirdPartyResourceList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1beta1ThirdPartyResource]', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'items': 'items', + 'metadata': 'metadata' + } + + self._items = items + self._metadata = metadata + + + @property + def items(self): + """ + Gets the items of this V1beta1ThirdPartyResourceList. + Items is the list of ThirdPartyResources. + + :return: The items of this V1beta1ThirdPartyResourceList. + :rtype: list[V1beta1ThirdPartyResource] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1ThirdPartyResourceList. + Items is the list of ThirdPartyResources. + + :param items: The items of this V1beta1ThirdPartyResourceList. + :type: list[V1beta1ThirdPartyResource] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1ThirdPartyResourceList. + Standard list metadata. + + :return: The metadata of this V1beta1ThirdPartyResourceList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1ThirdPartyResourceList. + Standard list metadata. + + :param metadata: The metadata of this V1beta1ThirdPartyResourceList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_token_review.py b/k8sclient/models/v1beta1_token_review.py new file mode 100644 index 000000000..67e6f5d97 --- /dev/null +++ b/k8sclient/models/v1beta1_token_review.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1TokenReview(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metadata=None, spec=None, status=None): + """ + V1beta1TokenReview - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1beta1TokenReviewSpec', + 'status': 'V1beta1TokenReviewStatus' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._metadata = metadata + self._spec = spec + self._status = status + + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1TokenReview. + + + :return: The metadata of this V1beta1TokenReview. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1TokenReview. + + + :param metadata: The metadata of this V1beta1TokenReview. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1TokenReview. + Spec holds information about the request being evaluated + + :return: The spec of this V1beta1TokenReview. + :rtype: V1beta1TokenReviewSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1TokenReview. + Spec holds information about the request being evaluated + + :param spec: The spec of this V1beta1TokenReview. + :type: V1beta1TokenReviewSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1beta1TokenReview. + Status is filled in by the server and indicates whether the request can be authenticated. + + :return: The status of this V1beta1TokenReview. + :rtype: V1beta1TokenReviewStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1TokenReview. + Status is filled in by the server and indicates whether the request can be authenticated. + + :param status: The status of this V1beta1TokenReview. + :type: V1beta1TokenReviewStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_token_review_spec.py b/k8sclient/models/v1beta1_token_review_spec.py new file mode 100644 index 000000000..0d41b52d5 --- /dev/null +++ b/k8sclient/models/v1beta1_token_review_spec.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1TokenReviewSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, token=None): + """ + V1beta1TokenReviewSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'token': 'str' + } + + self.attribute_map = { + 'token': 'token' + } + + self._token = token + + + @property + def token(self): + """ + Gets the token of this V1beta1TokenReviewSpec. + Token is the opaque bearer token. + + :return: The token of this V1beta1TokenReviewSpec. + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """ + Sets the token of this V1beta1TokenReviewSpec. + Token is the opaque bearer token. + + :param token: The token of this V1beta1TokenReviewSpec. + :type: str + """ + + self._token = token + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_token_review_status.py b/k8sclient/models/v1beta1_token_review_status.py new file mode 100644 index 000000000..75f415513 --- /dev/null +++ b/k8sclient/models/v1beta1_token_review_status.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1TokenReviewStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, authenticated=None, error=None, user=None): + """ + V1beta1TokenReviewStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'authenticated': 'bool', + 'error': 'str', + 'user': 'V1beta1UserInfo' + } + + self.attribute_map = { + 'authenticated': 'authenticated', + 'error': 'error', + 'user': 'user' + } + + self._authenticated = authenticated + self._error = error + self._user = user + + + @property + def authenticated(self): + """ + Gets the authenticated of this V1beta1TokenReviewStatus. + Authenticated indicates that the token was associated with a known user. + + :return: The authenticated of this V1beta1TokenReviewStatus. + :rtype: bool + """ + return self._authenticated + + @authenticated.setter + def authenticated(self, authenticated): + """ + Sets the authenticated of this V1beta1TokenReviewStatus. + Authenticated indicates that the token was associated with a known user. + + :param authenticated: The authenticated of this V1beta1TokenReviewStatus. + :type: bool + """ + + self._authenticated = authenticated + + @property + def error(self): + """ + Gets the error of this V1beta1TokenReviewStatus. + Error indicates that the token couldn't be checked + + :return: The error of this V1beta1TokenReviewStatus. + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """ + Sets the error of this V1beta1TokenReviewStatus. + Error indicates that the token couldn't be checked + + :param error: The error of this V1beta1TokenReviewStatus. + :type: str + """ + + self._error = error + + @property + def user(self): + """ + Gets the user of this V1beta1TokenReviewStatus. + User is the UserInfo associated with the provided token. + + :return: The user of this V1beta1TokenReviewStatus. + :rtype: V1beta1UserInfo + """ + return self._user + + @user.setter + def user(self, user): + """ + Sets the user of this V1beta1TokenReviewStatus. + User is the UserInfo associated with the provided token. + + :param user: The user of this V1beta1TokenReviewStatus. + :type: V1beta1UserInfo + """ + + self._user = user + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/v1beta1_user_info.py b/k8sclient/models/v1beta1_user_info.py new file mode 100644 index 000000000..16939b550 --- /dev/null +++ b/k8sclient/models/v1beta1_user_info.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1UserInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, extra=None, groups=None, uid=None, username=None): + """ + V1beta1UserInfo - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'extra': 'dict(str, list[str])', + 'groups': 'list[str]', + 'uid': 'str', + 'username': 'str' + } + + self.attribute_map = { + 'extra': 'extra', + 'groups': 'groups', + 'uid': 'uid', + 'username': 'username' + } + + self._extra = extra + self._groups = groups + self._uid = uid + self._username = username + + + @property + def extra(self): + """ + Gets the extra of this V1beta1UserInfo. + Any additional information provided by the authenticator. + + :return: The extra of this V1beta1UserInfo. + :rtype: dict(str, list[str]) + """ + return self._extra + + @extra.setter + def extra(self, extra): + """ + Sets the extra of this V1beta1UserInfo. + Any additional information provided by the authenticator. + + :param extra: The extra of this V1beta1UserInfo. + :type: dict(str, list[str]) + """ + + self._extra = extra + + @property + def groups(self): + """ + Gets the groups of this V1beta1UserInfo. + The names of groups this user is a part of. + + :return: The groups of this V1beta1UserInfo. + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """ + Sets the groups of this V1beta1UserInfo. + The names of groups this user is a part of. + + :param groups: The groups of this V1beta1UserInfo. + :type: list[str] + """ + + self._groups = groups + + @property + def uid(self): + """ + Gets the uid of this V1beta1UserInfo. + A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. + + :return: The uid of this V1beta1UserInfo. + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """ + Sets the uid of this V1beta1UserInfo. + A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. + + :param uid: The uid of this V1beta1UserInfo. + :type: str + """ + + self._uid = uid + + @property + def username(self): + """ + Gets the username of this V1beta1UserInfo. + The name that uniquely identifies this user among all active users. + + :return: The username of this V1beta1UserInfo. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """ + Sets the username of this V1beta1UserInfo. + The name that uniquely identifies this user among all active users. + + :param username: The username of this V1beta1UserInfo. + :type: str + """ + + self._username = username + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/version_info.py b/k8sclient/models/version_info.py new file mode 100644 index 000000000..c6f5d7963 --- /dev/null +++ b/k8sclient/models/version_info.py @@ -0,0 +1,352 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class VersionInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, build_date=None, compiler=None, git_commit=None, git_tree_state=None, git_version=None, go_version=None, major=None, minor=None, platform=None): + """ + VersionInfo - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'build_date': 'str', + 'compiler': 'str', + 'git_commit': 'str', + 'git_tree_state': 'str', + 'git_version': 'str', + 'go_version': 'str', + 'major': 'str', + 'minor': 'str', + 'platform': 'str' + } + + self.attribute_map = { + 'build_date': 'buildDate', + 'compiler': 'compiler', + 'git_commit': 'gitCommit', + 'git_tree_state': 'gitTreeState', + 'git_version': 'gitVersion', + 'go_version': 'goVersion', + 'major': 'major', + 'minor': 'minor', + 'platform': 'platform' + } + + self._build_date = build_date + self._compiler = compiler + self._git_commit = git_commit + self._git_tree_state = git_tree_state + self._git_version = git_version + self._go_version = go_version + self._major = major + self._minor = minor + self._platform = platform + + + @property + def build_date(self): + """ + Gets the build_date of this VersionInfo. + + + :return: The build_date of this VersionInfo. + :rtype: str + """ + return self._build_date + + @build_date.setter + def build_date(self, build_date): + """ + Sets the build_date of this VersionInfo. + + + :param build_date: The build_date of this VersionInfo. + :type: str + """ + if build_date is None: + raise ValueError("Invalid value for `build_date`, must not be `None`") + + self._build_date = build_date + + @property + def compiler(self): + """ + Gets the compiler of this VersionInfo. + + + :return: The compiler of this VersionInfo. + :rtype: str + """ + return self._compiler + + @compiler.setter + def compiler(self, compiler): + """ + Sets the compiler of this VersionInfo. + + + :param compiler: The compiler of this VersionInfo. + :type: str + """ + if compiler is None: + raise ValueError("Invalid value for `compiler`, must not be `None`") + + self._compiler = compiler + + @property + def git_commit(self): + """ + Gets the git_commit of this VersionInfo. + + + :return: The git_commit of this VersionInfo. + :rtype: str + """ + return self._git_commit + + @git_commit.setter + def git_commit(self, git_commit): + """ + Sets the git_commit of this VersionInfo. + + + :param git_commit: The git_commit of this VersionInfo. + :type: str + """ + if git_commit is None: + raise ValueError("Invalid value for `git_commit`, must not be `None`") + + self._git_commit = git_commit + + @property + def git_tree_state(self): + """ + Gets the git_tree_state of this VersionInfo. + + + :return: The git_tree_state of this VersionInfo. + :rtype: str + """ + return self._git_tree_state + + @git_tree_state.setter + def git_tree_state(self, git_tree_state): + """ + Sets the git_tree_state of this VersionInfo. + + + :param git_tree_state: The git_tree_state of this VersionInfo. + :type: str + """ + if git_tree_state is None: + raise ValueError("Invalid value for `git_tree_state`, must not be `None`") + + self._git_tree_state = git_tree_state + + @property + def git_version(self): + """ + Gets the git_version of this VersionInfo. + + + :return: The git_version of this VersionInfo. + :rtype: str + """ + return self._git_version + + @git_version.setter + def git_version(self, git_version): + """ + Sets the git_version of this VersionInfo. + + + :param git_version: The git_version of this VersionInfo. + :type: str + """ + if git_version is None: + raise ValueError("Invalid value for `git_version`, must not be `None`") + + self._git_version = git_version + + @property + def go_version(self): + """ + Gets the go_version of this VersionInfo. + + + :return: The go_version of this VersionInfo. + :rtype: str + """ + return self._go_version + + @go_version.setter + def go_version(self, go_version): + """ + Sets the go_version of this VersionInfo. + + + :param go_version: The go_version of this VersionInfo. + :type: str + """ + if go_version is None: + raise ValueError("Invalid value for `go_version`, must not be `None`") + + self._go_version = go_version + + @property + def major(self): + """ + Gets the major of this VersionInfo. + + + :return: The major of this VersionInfo. + :rtype: str + """ + return self._major + + @major.setter + def major(self, major): + """ + Sets the major of this VersionInfo. + + + :param major: The major of this VersionInfo. + :type: str + """ + if major is None: + raise ValueError("Invalid value for `major`, must not be `None`") + + self._major = major + + @property + def minor(self): + """ + Gets the minor of this VersionInfo. + + + :return: The minor of this VersionInfo. + :rtype: str + """ + return self._minor + + @minor.setter + def minor(self, minor): + """ + Sets the minor of this VersionInfo. + + + :param minor: The minor of this VersionInfo. + :type: str + """ + if minor is None: + raise ValueError("Invalid value for `minor`, must not be `None`") + + self._minor = minor + + @property + def platform(self): + """ + Gets the platform of this VersionInfo. + + + :return: The platform of this VersionInfo. + :rtype: str + """ + return self._platform + + @platform.setter + def platform(self, platform): + """ + Sets the platform of this VersionInfo. + + + :param platform: The platform of this VersionInfo. + :type: str + """ + if platform is None: + raise ValueError("Invalid value for `platform`, must not be `None`") + + self._platform = platform + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/models/versioned_event.py b/k8sclient/models/versioned_event.py new file mode 100644 index 000000000..fb6aac404 --- /dev/null +++ b/k8sclient/models/versioned_event.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems +import re + + +class VersionedEvent(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, object=None, type=None): + """ + VersionedEvent - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'object': 'RuntimeRawExtension', + 'type': 'str' + } + + self.attribute_map = { + 'object': 'object', + 'type': 'type' + } + + self._object = object + self._type = type + + + @property + def object(self): + """ + Gets the object of this VersionedEvent. + Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *api.Status is recommended; other types may make sense depending on context. + + :return: The object of this VersionedEvent. + :rtype: RuntimeRawExtension + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this VersionedEvent. + Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *api.Status is recommended; other types may make sense depending on context. + + :param object: The object of this VersionedEvent. + :type: RuntimeRawExtension + """ + if object is None: + raise ValueError("Invalid value for `object`, must not be `None`") + + self._object = object + + @property + def type(self): + """ + Gets the type of this VersionedEvent. + + + :return: The type of this VersionedEvent. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this VersionedEvent. + + + :param type: The type of this VersionedEvent. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/k8sclient/rest.py b/k8sclient/rest.py new file mode 100644 index 000000000..d02780806 --- /dev/null +++ b/k8sclient/rest.py @@ -0,0 +1,266 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import io +import json +import ssl +import certifi +import logging +import re + +# python 2 and python 3 compatibility library +from six import PY3 +from six.moves.urllib.parse import urlencode + +from .configuration import Configuration + +try: + import urllib3 +except ImportError: + raise ImportError('Swagger python client requires urllib3.') + + +logger = logging.getLogger(__name__) + + +class RESTResponse(io.IOBase): + + def __init__(self, resp): + self.urllib3_response = resp + self.status = resp.status + self.reason = resp.reason + self.data = resp.data + + def getheaders(self): + """ + Returns a dictionary of the response headers. + """ + return self.urllib3_response.getheaders() + + def getheader(self, name, default=None): + """ + Returns a given response header. + """ + return self.urllib3_response.getheader(name, default) + + +class RESTClientObject(object): + + def __init__(self, pools_size=4): + # urllib3.PoolManager will pass all kw parameters to connectionpool + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 + # ca_certs vs cert_file vs key_file + # http://stackoverflow.com/a/23957365/2985775 + + # cert_reqs + if Configuration().verify_ssl: + cert_reqs = ssl.CERT_REQUIRED + else: + cert_reqs = ssl.CERT_NONE + + # ca_certs + if Configuration().ssl_ca_cert: + ca_certs = Configuration().ssl_ca_cert + else: + # if not set certificate file, use Mozilla's root certificates. + ca_certs = certifi.where() + + # cert_file + cert_file = Configuration().cert_file + + # key file + key_file = Configuration().key_file + + # https pool manager + self.pool_manager = urllib3.PoolManager( + num_pools=pools_size, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=cert_file, + key_file=key_file + ) + + def request(self, method, url, query_params=None, headers=None, + body=None, post_params=None): + """ + :param method: http request method + :param url: http request url + :param query_params: query parameters in the url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + """ + method = method.upper() + assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', 'PATCH', 'OPTIONS'] + + if post_params and body: + raise ValueError( + "body parameter cannot be used with post_params parameter." + ) + + post_params = post_params or {} + headers = headers or {} + + if 'Content-Type' not in headers: + headers['Content-Type'] = 'application/json' + + try: + # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + if query_params: + url += '?' + urlencode(query_params) + if re.search('json', headers['Content-Type'], re.IGNORECASE): + request_body = None + if body: + request_body = json.dumps(body) + r = self.pool_manager.request(method, url, + body=request_body, + headers=headers) + elif headers['Content-Type'] == 'application/x-www-form-urlencoded': + r = self.pool_manager.request(method, url, + fields=post_params, + encode_multipart=False, + headers=headers) + elif headers['Content-Type'] == 'multipart/form-data': + # must del headers['Content-Type'], or the correct Content-Type + # which generated by urllib3 will be overwritten. + del headers['Content-Type'] + r = self.pool_manager.request(method, url, + fields=post_params, + encode_multipart=True, + headers=headers) + # Pass a `string` parameter directly in the body to support + # other content types than Json when `body` argument is provided + # in serialized form + elif isinstance(body, str): + request_body = body + r = self.pool_manager.request(method, url, + body=request_body, + headers=headers) + else: + # Cannot generate the request from given parameters + msg = """Cannot prepare a request message for provided arguments. + Please check that your arguments match declared content type.""" + raise ApiException(status=0, reason=msg) + # For `GET`, `HEAD` + else: + r = self.pool_manager.request(method, url, + fields=query_params, + headers=headers) + except urllib3.exceptions.SSLError as e: + msg = "{0}\n{1}".format(type(e).__name__, str(e)) + raise ApiException(status=0, reason=msg) + + r = RESTResponse(r) + + # In the python 3, the response.data is bytes. + # we need to decode it to string. + if PY3: + r.data = r.data.decode('utf8') + + # log response body + logger.debug("response body: %s", r.data) + + if r.status not in range(200, 206): + raise ApiException(http_resp=r) + + return r + + def GET(self, url, headers=None, query_params=None): + return self.request("GET", url, + headers=headers, + query_params=query_params) + + def HEAD(self, url, headers=None, query_params=None): + return self.request("HEAD", url, + headers=headers, + query_params=query_params) + + def OPTIONS(self, url, headers=None, query_params=None, post_params=None, body=None): + return self.request("OPTIONS", url, + headers=headers, + query_params=query_params, + post_params=post_params, + body=body) + + def DELETE(self, url, headers=None, query_params=None, body=None): + return self.request("DELETE", url, + headers=headers, + query_params=query_params, + body=body) + + def POST(self, url, headers=None, query_params=None, post_params=None, body=None): + return self.request("POST", url, + headers=headers, + query_params=query_params, + post_params=post_params, + body=body) + + def PUT(self, url, headers=None, query_params=None, post_params=None, body=None): + return self.request("PUT", url, + headers=headers, + query_params=query_params, + post_params=post_params, + body=body) + + def PATCH(self, url, headers=None, query_params=None, post_params=None, body=None): + return self.request("PATCH", url, + headers=headers, + query_params=query_params, + post_params=post_params, + body=body) + + +class ApiException(Exception): + + def __init__(self, status=None, reason=None, http_resp=None): + if http_resp: + self.status = http_resp.status + self.reason = http_resp.reason + self.body = http_resp.data + self.headers = http_resp.getheaders() + else: + self.status = status + self.reason = reason + self.body = None + self.headers = None + + def __str__(self): + """ + Custom error messages for exception + """ + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format(self.headers) + + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + return error_message diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..f00e08fa3 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +certifi >= 14.05.14 +six == 1.8.0 +python_dateutil >= 2.5.3 +setuptools >= 21.0.0 +urllib3 >= 1.15.1 diff --git a/scripts/LICENSE b/scripts/LICENSE new file mode 100644 index 000000000..00b240110 --- /dev/null +++ b/scripts/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2014 The Kubernetes Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/scripts/ROOT_README.md b/scripts/ROOT_README.md new file mode 100644 index 000000000..480992027 --- /dev/null +++ b/scripts/ROOT_README.md @@ -0,0 +1,23 @@ +# Kubernetes Python Client + +Python clients for talking to a [kubernetes](http://kubernetes.io/) cluster. + +## Example + +```python +from __future__ import absolute_import + +import k8sclient +import os + +v1=k8sclient.CoreV1Api() +print "Listing pods with their IPs:" +ret = v1.list_pod_for_all_namespaces(watch=False) +for i in ret.items: + print "%s\t%s\t%s" % (i.status.pod_ip, i.metadata.namespace, i.metadata.name) +``` + +# Generated client README + +for generated client documentation, refer to [generated README](GEN_README.md). + diff --git a/scripts/generate.sh b/scripts/generate.sh new file mode 100755 index 000000000..d0684e298 --- /dev/null +++ b/scripts/generate.sh @@ -0,0 +1,63 @@ +#!/bin/bash + +# Copyright 2015 The Kubernetes Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Script to fetch latest swagger spec. +# Puts the updated spec at api/swagger-spec/ + +set -o errexit +set -o nounset +set -o pipefail + +if ! which mvn > /dev/null 2>&1; then + echo "Maven is not installed." + exit +fi + +SCRIPT_ROOT=$(dirname "${BASH_SOURCE}") +CLIENT_ROOT="${SCRIPT_ROOT}/.." + +pushd "${SCRIPT_ROOT}" > /dev/null +SCRIPT_ROOT=`pwd` +popd > /dev/null + +pushd "${CLIENT_ROOT}" > /dev/null +CLIENT_ROOT=`pwd` +popd > /dev/null + +PACKAGE_NAME=${PACKAGE_NAME:-k8sclient} + +if [[ ! -n ${SWAGGER_FILE-} ]]; then + if [[ ! -n ${KUBE_ROOT-} ]]; then + echo "\${KUBE_ROOT} variable is not set" + exit + fi + SWAGGER_FILE="${KUBE_ROOT}/api/openapi-spec/swagger.json" +fi + +echo "--- Cleaning up previously generated folders" +rm -rf "${CLIENT_ROOT}/${PACKAGE_NAME}" +rm -rf "${CLIENT_ROOT}/docs" +rm -rf "${CLIENT_ROOT}/test" + +echo "--- Generating client ..." +mvn -f "${SCRIPT_ROOT}/pom.xml" clean generate-sources -Dgenerator.spec.path="${SWAGGER_FILE}" -Dgenerator.output.path="${CLIENT_ROOT}" -Dgenerator.package.name=${PACKAGE_NAME} + +echo "--- Patching generated code..." +cp "${CLIENT_ROOT}/README.md" "${CLIENT_ROOT}/GEN_README.md" +cp "${SCRIPT_ROOT}/ROOT_README.md" "${CLIENT_ROOT}/README.md" +cp "${SCRIPT_ROOT}/LICENSE" "${CLIENT_ROOT}" + +echo "---Done." diff --git a/scripts/pom.xml b/scripts/pom.xml new file mode 100644 index 000000000..30f377017 --- /dev/null +++ b/scripts/pom.xml @@ -0,0 +1,50 @@ + + 4.0.0 + io.kubernetes + client-python + 1.0-SNAPSHOT + client-python + http://kubernetes.io + + + + io.swagger + swagger-codegen-maven-plugin + 2.2.2-SNAPSHOT + + + + generate + + + ${generator.spec.path} + python + + ${generator.package.name} + true + + ${generator.output.path} + + + + + + + + + + io.swagger + swagger-annotations + ${swagger-annotations-version} + + + + 1.5.0 + 1.0.0 + + + . + swagger.json + swagger_client + + diff --git a/setup.py b/setup.py new file mode 100644 index 000000000..f8b7d4531 --- /dev/null +++ b/setup.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +import sys +from setuptools import setup, find_packages + +NAME = "k8sclient" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +setup( + name=NAME, + version=VERSION, + description="Kubernetes", + author_email="", + url="", + keywords=["Swagger", "Kubernetes"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + """ +) diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 000000000..2702246c0 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,5 @@ +coverage>=4.0.3 +nose>=1.3.7 +pluggy>=0.3.1 +py>=1.4.31 +randomize>=0.13 diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/test/test_apis_api.py b/test/test_apis_api.py new file mode 100644 index 000000000..775396132 --- /dev/null +++ b/test/test_apis_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.apis_api import ApisApi + + +class TestApisApi(unittest.TestCase): + """ ApisApi unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.apis_api.ApisApi() + + def tearDown(self): + pass + + def test_get_api_versions(self): + """ + Test case for get_api_versions + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apps_api.py b/test/test_apps_api.py new file mode 100644 index 000000000..c82d403e8 --- /dev/null +++ b/test/test_apps_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.apps_api import AppsApi + + +class TestAppsApi(unittest.TestCase): + """ AppsApi unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.apps_api.AppsApi() + + def tearDown(self): + pass + + def test_get_apps_api_group(self): + """ + Test case for get_apps_api_group + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apps_v1alpha1_api.py b/test/test_apps_v1alpha1_api.py new file mode 100644 index 000000000..0ce1a3b4b --- /dev/null +++ b/test/test_apps_v1alpha1_api.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.apps_v1alpha1_api import AppsV1alpha1Api + + +class TestAppsV1alpha1Api(unittest.TestCase): + """ AppsV1alpha1Api unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.apps_v1alpha1_api.AppsV1alpha1Api() + + def tearDown(self): + pass + + def test_create_apps_v1alpha1_namespaced_stateful_set(self): + """ + Test case for create_apps_v1alpha1_namespaced_stateful_set + + + """ + pass + + def test_delete_apps_v1alpha1_collection_namespaced_stateful_set(self): + """ + Test case for delete_apps_v1alpha1_collection_namespaced_stateful_set + + + """ + pass + + def test_delete_apps_v1alpha1_namespaced_stateful_set(self): + """ + Test case for delete_apps_v1alpha1_namespaced_stateful_set + + + """ + pass + + def test_get_apps_v1alpha1_api_resources(self): + """ + Test case for get_apps_v1alpha1_api_resources + + + """ + pass + + def test_list_apps_v1alpha1_namespaced_stateful_set(self): + """ + Test case for list_apps_v1alpha1_namespaced_stateful_set + + + """ + pass + + def test_list_apps_v1alpha1_stateful_set_for_all_namespaces(self): + """ + Test case for list_apps_v1alpha1_stateful_set_for_all_namespaces + + + """ + pass + + def test_patch_apps_v1alpha1_namespaced_stateful_set(self): + """ + Test case for patch_apps_v1alpha1_namespaced_stateful_set + + + """ + pass + + def test_patch_apps_v1alpha1_namespaced_stateful_set_status(self): + """ + Test case for patch_apps_v1alpha1_namespaced_stateful_set_status + + + """ + pass + + def test_read_apps_v1alpha1_namespaced_stateful_set(self): + """ + Test case for read_apps_v1alpha1_namespaced_stateful_set + + + """ + pass + + def test_read_apps_v1alpha1_namespaced_stateful_set_status(self): + """ + Test case for read_apps_v1alpha1_namespaced_stateful_set_status + + + """ + pass + + def test_replace_apps_v1alpha1_namespaced_stateful_set(self): + """ + Test case for replace_apps_v1alpha1_namespaced_stateful_set + + + """ + pass + + def test_replace_apps_v1alpha1_namespaced_stateful_set_status(self): + """ + Test case for replace_apps_v1alpha1_namespaced_stateful_set_status + + + """ + pass + + def test_watch_apps_v1alpha1_namespaced_stateful_set(self): + """ + Test case for watch_apps_v1alpha1_namespaced_stateful_set + + + """ + pass + + def test_watch_apps_v1alpha1_namespaced_stateful_set_list(self): + """ + Test case for watch_apps_v1alpha1_namespaced_stateful_set_list + + + """ + pass + + def test_watch_apps_v1alpha1_stateful_set_list_for_all_namespaces(self): + """ + Test case for watch_apps_v1alpha1_stateful_set_list_for_all_namespaces + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_authentication_api.py b/test/test_authentication_api.py new file mode 100644 index 000000000..34fa7ebb9 --- /dev/null +++ b/test/test_authentication_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.authentication_api import AuthenticationApi + + +class TestAuthenticationApi(unittest.TestCase): + """ AuthenticationApi unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.authentication_api.AuthenticationApi() + + def tearDown(self): + pass + + def test_get_authentication_api_group(self): + """ + Test case for get_authentication_api_group + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_authentication_v1beta1_api.py b/test/test_authentication_v1beta1_api.py new file mode 100644 index 000000000..27af23c43 --- /dev/null +++ b/test/test_authentication_v1beta1_api.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.authentication_v1beta1_api import AuthenticationV1beta1Api + + +class TestAuthenticationV1beta1Api(unittest.TestCase): + """ AuthenticationV1beta1Api unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.authentication_v1beta1_api.AuthenticationV1beta1Api() + + def tearDown(self): + pass + + def test_create_authentication_v1beta1_token_review(self): + """ + Test case for create_authentication_v1beta1_token_review + + + """ + pass + + def test_get_authentication_v1beta1_api_resources(self): + """ + Test case for get_authentication_v1beta1_api_resources + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_authorization_api.py b/test/test_authorization_api.py new file mode 100644 index 000000000..607cba403 --- /dev/null +++ b/test/test_authorization_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.authorization_api import AuthorizationApi + + +class TestAuthorizationApi(unittest.TestCase): + """ AuthorizationApi unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.authorization_api.AuthorizationApi() + + def tearDown(self): + pass + + def test_get_authorization_api_group(self): + """ + Test case for get_authorization_api_group + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_authorization_v1beta1_api.py b/test/test_authorization_v1beta1_api.py new file mode 100644 index 000000000..3792baf26 --- /dev/null +++ b/test/test_authorization_v1beta1_api.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.authorization_v1beta1_api import AuthorizationV1beta1Api + + +class TestAuthorizationV1beta1Api(unittest.TestCase): + """ AuthorizationV1beta1Api unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.authorization_v1beta1_api.AuthorizationV1beta1Api() + + def tearDown(self): + pass + + def test_create_authorization_v1beta1_namespaced_local_subject_access_review(self): + """ + Test case for create_authorization_v1beta1_namespaced_local_subject_access_review + + + """ + pass + + def test_create_authorization_v1beta1_self_subject_access_review(self): + """ + Test case for create_authorization_v1beta1_self_subject_access_review + + + """ + pass + + def test_create_authorization_v1beta1_subject_access_review(self): + """ + Test case for create_authorization_v1beta1_subject_access_review + + + """ + pass + + def test_get_authorization_v1beta1_api_resources(self): + """ + Test case for get_authorization_v1beta1_api_resources + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_autoscaling_api.py b/test/test_autoscaling_api.py new file mode 100644 index 000000000..a6e8937b7 --- /dev/null +++ b/test/test_autoscaling_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.autoscaling_api import AutoscalingApi + + +class TestAutoscalingApi(unittest.TestCase): + """ AutoscalingApi unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.autoscaling_api.AutoscalingApi() + + def tearDown(self): + pass + + def test_get_autoscaling_api_group(self): + """ + Test case for get_autoscaling_api_group + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_autoscaling_v1_api.py b/test/test_autoscaling_v1_api.py new file mode 100644 index 000000000..3edcef283 --- /dev/null +++ b/test/test_autoscaling_v1_api.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.autoscaling_v1_api import AutoscalingV1Api + + +class TestAutoscalingV1Api(unittest.TestCase): + """ AutoscalingV1Api unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.autoscaling_v1_api.AutoscalingV1Api() + + def tearDown(self): + pass + + def test_create_autoscaling_v1_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for create_autoscaling_v1_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_delete_autoscaling_v1_collection_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for delete_autoscaling_v1_collection_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for delete_autoscaling_v1_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_get_autoscaling_v1_api_resources(self): + """ + Test case for get_autoscaling_v1_api_resources + + + """ + pass + + def test_list_autoscaling_v1_horizontal_pod_autoscaler_for_all_namespaces(self): + """ + Test case for list_autoscaling_v1_horizontal_pod_autoscaler_for_all_namespaces + + + """ + pass + + def test_list_autoscaling_v1_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for list_autoscaling_v1_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status(self): + """ + Test case for patch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status + + + """ + pass + + def test_read_autoscaling_v1_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for read_autoscaling_v1_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status(self): + """ + Test case for read_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status + + + """ + pass + + def test_replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status(self): + """ + Test case for replace_autoscaling_v1_namespaced_horizontal_pod_autoscaler_status + + + """ + pass + + def test_watch_autoscaling_v1_horizontal_pod_autoscaler_list_for_all_namespaces(self): + """ + Test case for watch_autoscaling_v1_horizontal_pod_autoscaler_list_for_all_namespaces + + + """ + pass + + def test_watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_list(self): + """ + Test case for watch_autoscaling_v1_namespaced_horizontal_pod_autoscaler_list + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_api.py b/test/test_batch_api.py new file mode 100644 index 000000000..825bb2b19 --- /dev/null +++ b/test/test_batch_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.batch_api import BatchApi + + +class TestBatchApi(unittest.TestCase): + """ BatchApi unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.batch_api.BatchApi() + + def tearDown(self): + pass + + def test_get_batch_api_group(self): + """ + Test case for get_batch_api_group + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_v1_api.py b/test/test_batch_v1_api.py new file mode 100644 index 000000000..45880d0ad --- /dev/null +++ b/test/test_batch_v1_api.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.batch_v1_api import BatchV1Api + + +class TestBatchV1Api(unittest.TestCase): + """ BatchV1Api unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.batch_v1_api.BatchV1Api() + + def tearDown(self): + pass + + def test_create_batch_v1_namespaced_job(self): + """ + Test case for create_batch_v1_namespaced_job + + + """ + pass + + def test_delete_batch_v1_collection_namespaced_job(self): + """ + Test case for delete_batch_v1_collection_namespaced_job + + + """ + pass + + def test_delete_batch_v1_namespaced_job(self): + """ + Test case for delete_batch_v1_namespaced_job + + + """ + pass + + def test_get_batch_v1_api_resources(self): + """ + Test case for get_batch_v1_api_resources + + + """ + pass + + def test_list_batch_v1_job_for_all_namespaces(self): + """ + Test case for list_batch_v1_job_for_all_namespaces + + + """ + pass + + def test_list_batch_v1_namespaced_job(self): + """ + Test case for list_batch_v1_namespaced_job + + + """ + pass + + def test_patch_batch_v1_namespaced_job(self): + """ + Test case for patch_batch_v1_namespaced_job + + + """ + pass + + def test_patch_batch_v1_namespaced_job_status(self): + """ + Test case for patch_batch_v1_namespaced_job_status + + + """ + pass + + def test_read_batch_v1_namespaced_job(self): + """ + Test case for read_batch_v1_namespaced_job + + + """ + pass + + def test_read_batch_v1_namespaced_job_status(self): + """ + Test case for read_batch_v1_namespaced_job_status + + + """ + pass + + def test_replace_batch_v1_namespaced_job(self): + """ + Test case for replace_batch_v1_namespaced_job + + + """ + pass + + def test_replace_batch_v1_namespaced_job_status(self): + """ + Test case for replace_batch_v1_namespaced_job_status + + + """ + pass + + def test_watch_batch_v1_job_list_for_all_namespaces(self): + """ + Test case for watch_batch_v1_job_list_for_all_namespaces + + + """ + pass + + def test_watch_batch_v1_namespaced_job(self): + """ + Test case for watch_batch_v1_namespaced_job + + + """ + pass + + def test_watch_batch_v1_namespaced_job_list(self): + """ + Test case for watch_batch_v1_namespaced_job_list + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_v2alpha1_api.py b/test/test_batch_v2alpha1_api.py new file mode 100644 index 000000000..953f3f4dd --- /dev/null +++ b/test/test_batch_v2alpha1_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.batch_v2alpha1_api import BatchV2alpha1Api + + +class TestBatchV2alpha1Api(unittest.TestCase): + """ BatchV2alpha1Api unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.batch_v2alpha1_api.BatchV2alpha1Api() + + def tearDown(self): + pass + + def test_get_batch_v2alpha1_api_resources(self): + """ + Test case for get_batch_v2alpha1_api_resources + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_certificates_api.py b/test/test_certificates_api.py new file mode 100644 index 000000000..90fa86970 --- /dev/null +++ b/test/test_certificates_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.certificates_api import CertificatesApi + + +class TestCertificatesApi(unittest.TestCase): + """ CertificatesApi unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.certificates_api.CertificatesApi() + + def tearDown(self): + pass + + def test_get_certificates_api_group(self): + """ + Test case for get_certificates_api_group + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_certificates_v1alpha1_api.py b/test/test_certificates_v1alpha1_api.py new file mode 100644 index 000000000..54190c44d --- /dev/null +++ b/test/test_certificates_v1alpha1_api.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.certificates_v1alpha1_api import CertificatesV1alpha1Api + + +class TestCertificatesV1alpha1Api(unittest.TestCase): + """ CertificatesV1alpha1Api unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.certificates_v1alpha1_api.CertificatesV1alpha1Api() + + def tearDown(self): + pass + + def test_create_certificates_v1alpha1_certificate_signing_request(self): + """ + Test case for create_certificates_v1alpha1_certificate_signing_request + + + """ + pass + + def test_delete_certificates_v1alpha1_certificate_signing_request(self): + """ + Test case for delete_certificates_v1alpha1_certificate_signing_request + + + """ + pass + + def test_delete_certificates_v1alpha1_collection_certificate_signing_request(self): + """ + Test case for delete_certificates_v1alpha1_collection_certificate_signing_request + + + """ + pass + + def test_get_certificates_v1alpha1_api_resources(self): + """ + Test case for get_certificates_v1alpha1_api_resources + + + """ + pass + + def test_list_certificates_v1alpha1_certificate_signing_request(self): + """ + Test case for list_certificates_v1alpha1_certificate_signing_request + + + """ + pass + + def test_patch_certificates_v1alpha1_certificate_signing_request(self): + """ + Test case for patch_certificates_v1alpha1_certificate_signing_request + + + """ + pass + + def test_read_certificates_v1alpha1_certificate_signing_request(self): + """ + Test case for read_certificates_v1alpha1_certificate_signing_request + + + """ + pass + + def test_replace_certificates_v1alpha1_certificate_signing_request(self): + """ + Test case for replace_certificates_v1alpha1_certificate_signing_request + + + """ + pass + + def test_replace_certificates_v1alpha1_certificate_signing_request_approval(self): + """ + Test case for replace_certificates_v1alpha1_certificate_signing_request_approval + + + """ + pass + + def test_replace_certificates_v1alpha1_certificate_signing_request_status(self): + """ + Test case for replace_certificates_v1alpha1_certificate_signing_request_status + + + """ + pass + + def test_watch_certificates_v1alpha1_certificate_signing_request(self): + """ + Test case for watch_certificates_v1alpha1_certificate_signing_request + + + """ + pass + + def test_watch_certificates_v1alpha1_certificate_signing_request_list(self): + """ + Test case for watch_certificates_v1alpha1_certificate_signing_request_list + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_core_api.py b/test/test_core_api.py new file mode 100644 index 000000000..8e69bcb22 --- /dev/null +++ b/test/test_core_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.core_api import CoreApi + + +class TestCoreApi(unittest.TestCase): + """ CoreApi unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.core_api.CoreApi() + + def tearDown(self): + pass + + def test_get_core_api_versions(self): + """ + Test case for get_core_api_versions + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_core_v1_api.py b/test/test_core_v1_api.py new file mode 100644 index 000000000..b1f6743f8 --- /dev/null +++ b/test/test_core_v1_api.py @@ -0,0 +1,2215 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.core_v1_api import CoreV1Api + + +class TestCoreV1Api(unittest.TestCase): + """ CoreV1Api unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.core_v1_api.CoreV1Api() + + def tearDown(self): + pass + + def test_connect_core_v1_delete_namespaced_pod_proxy(self): + """ + Test case for connect_core_v1_delete_namespaced_pod_proxy + + + """ + pass + + def test_connect_core_v1_delete_namespaced_pod_proxy_with_path(self): + """ + Test case for connect_core_v1_delete_namespaced_pod_proxy_with_path + + + """ + pass + + def test_connect_core_v1_delete_namespaced_service_proxy(self): + """ + Test case for connect_core_v1_delete_namespaced_service_proxy + + + """ + pass + + def test_connect_core_v1_delete_namespaced_service_proxy_with_path(self): + """ + Test case for connect_core_v1_delete_namespaced_service_proxy_with_path + + + """ + pass + + def test_connect_core_v1_delete_node_proxy(self): + """ + Test case for connect_core_v1_delete_node_proxy + + + """ + pass + + def test_connect_core_v1_delete_node_proxy_with_path(self): + """ + Test case for connect_core_v1_delete_node_proxy_with_path + + + """ + pass + + def test_connect_core_v1_get_namespaced_pod_attach(self): + """ + Test case for connect_core_v1_get_namespaced_pod_attach + + + """ + pass + + def test_connect_core_v1_get_namespaced_pod_exec(self): + """ + Test case for connect_core_v1_get_namespaced_pod_exec + + + """ + pass + + def test_connect_core_v1_get_namespaced_pod_portforward(self): + """ + Test case for connect_core_v1_get_namespaced_pod_portforward + + + """ + pass + + def test_connect_core_v1_get_namespaced_pod_proxy(self): + """ + Test case for connect_core_v1_get_namespaced_pod_proxy + + + """ + pass + + def test_connect_core_v1_get_namespaced_pod_proxy_with_path(self): + """ + Test case for connect_core_v1_get_namespaced_pod_proxy_with_path + + + """ + pass + + def test_connect_core_v1_get_namespaced_service_proxy(self): + """ + Test case for connect_core_v1_get_namespaced_service_proxy + + + """ + pass + + def test_connect_core_v1_get_namespaced_service_proxy_with_path(self): + """ + Test case for connect_core_v1_get_namespaced_service_proxy_with_path + + + """ + pass + + def test_connect_core_v1_get_node_proxy(self): + """ + Test case for connect_core_v1_get_node_proxy + + + """ + pass + + def test_connect_core_v1_get_node_proxy_with_path(self): + """ + Test case for connect_core_v1_get_node_proxy_with_path + + + """ + pass + + def test_connect_core_v1_head_namespaced_pod_proxy(self): + """ + Test case for connect_core_v1_head_namespaced_pod_proxy + + + """ + pass + + def test_connect_core_v1_head_namespaced_pod_proxy_with_path(self): + """ + Test case for connect_core_v1_head_namespaced_pod_proxy_with_path + + + """ + pass + + def test_connect_core_v1_head_namespaced_service_proxy(self): + """ + Test case for connect_core_v1_head_namespaced_service_proxy + + + """ + pass + + def test_connect_core_v1_head_namespaced_service_proxy_with_path(self): + """ + Test case for connect_core_v1_head_namespaced_service_proxy_with_path + + + """ + pass + + def test_connect_core_v1_head_node_proxy(self): + """ + Test case for connect_core_v1_head_node_proxy + + + """ + pass + + def test_connect_core_v1_head_node_proxy_with_path(self): + """ + Test case for connect_core_v1_head_node_proxy_with_path + + + """ + pass + + def test_connect_core_v1_options_namespaced_pod_proxy(self): + """ + Test case for connect_core_v1_options_namespaced_pod_proxy + + + """ + pass + + def test_connect_core_v1_options_namespaced_pod_proxy_with_path(self): + """ + Test case for connect_core_v1_options_namespaced_pod_proxy_with_path + + + """ + pass + + def test_connect_core_v1_options_namespaced_service_proxy(self): + """ + Test case for connect_core_v1_options_namespaced_service_proxy + + + """ + pass + + def test_connect_core_v1_options_namespaced_service_proxy_with_path(self): + """ + Test case for connect_core_v1_options_namespaced_service_proxy_with_path + + + """ + pass + + def test_connect_core_v1_options_node_proxy(self): + """ + Test case for connect_core_v1_options_node_proxy + + + """ + pass + + def test_connect_core_v1_options_node_proxy_with_path(self): + """ + Test case for connect_core_v1_options_node_proxy_with_path + + + """ + pass + + def test_connect_core_v1_post_namespaced_pod_attach(self): + """ + Test case for connect_core_v1_post_namespaced_pod_attach + + + """ + pass + + def test_connect_core_v1_post_namespaced_pod_exec(self): + """ + Test case for connect_core_v1_post_namespaced_pod_exec + + + """ + pass + + def test_connect_core_v1_post_namespaced_pod_portforward(self): + """ + Test case for connect_core_v1_post_namespaced_pod_portforward + + + """ + pass + + def test_connect_core_v1_post_namespaced_pod_proxy(self): + """ + Test case for connect_core_v1_post_namespaced_pod_proxy + + + """ + pass + + def test_connect_core_v1_post_namespaced_pod_proxy_with_path(self): + """ + Test case for connect_core_v1_post_namespaced_pod_proxy_with_path + + + """ + pass + + def test_connect_core_v1_post_namespaced_service_proxy(self): + """ + Test case for connect_core_v1_post_namespaced_service_proxy + + + """ + pass + + def test_connect_core_v1_post_namespaced_service_proxy_with_path(self): + """ + Test case for connect_core_v1_post_namespaced_service_proxy_with_path + + + """ + pass + + def test_connect_core_v1_post_node_proxy(self): + """ + Test case for connect_core_v1_post_node_proxy + + + """ + pass + + def test_connect_core_v1_post_node_proxy_with_path(self): + """ + Test case for connect_core_v1_post_node_proxy_with_path + + + """ + pass + + def test_connect_core_v1_put_namespaced_pod_proxy(self): + """ + Test case for connect_core_v1_put_namespaced_pod_proxy + + + """ + pass + + def test_connect_core_v1_put_namespaced_pod_proxy_with_path(self): + """ + Test case for connect_core_v1_put_namespaced_pod_proxy_with_path + + + """ + pass + + def test_connect_core_v1_put_namespaced_service_proxy(self): + """ + Test case for connect_core_v1_put_namespaced_service_proxy + + + """ + pass + + def test_connect_core_v1_put_namespaced_service_proxy_with_path(self): + """ + Test case for connect_core_v1_put_namespaced_service_proxy_with_path + + + """ + pass + + def test_connect_core_v1_put_node_proxy(self): + """ + Test case for connect_core_v1_put_node_proxy + + + """ + pass + + def test_connect_core_v1_put_node_proxy_with_path(self): + """ + Test case for connect_core_v1_put_node_proxy_with_path + + + """ + pass + + def test_create_core_v1_namespace(self): + """ + Test case for create_core_v1_namespace + + + """ + pass + + def test_create_core_v1_namespaced_binding(self): + """ + Test case for create_core_v1_namespaced_binding + + + """ + pass + + def test_create_core_v1_namespaced_binding_binding(self): + """ + Test case for create_core_v1_namespaced_binding_binding + + + """ + pass + + def test_create_core_v1_namespaced_config_map(self): + """ + Test case for create_core_v1_namespaced_config_map + + + """ + pass + + def test_create_core_v1_namespaced_endpoints(self): + """ + Test case for create_core_v1_namespaced_endpoints + + + """ + pass + + def test_create_core_v1_namespaced_event(self): + """ + Test case for create_core_v1_namespaced_event + + + """ + pass + + def test_create_core_v1_namespaced_eviction_eviction(self): + """ + Test case for create_core_v1_namespaced_eviction_eviction + + + """ + pass + + def test_create_core_v1_namespaced_limit_range(self): + """ + Test case for create_core_v1_namespaced_limit_range + + + """ + pass + + def test_create_core_v1_namespaced_persistent_volume_claim(self): + """ + Test case for create_core_v1_namespaced_persistent_volume_claim + + + """ + pass + + def test_create_core_v1_namespaced_pod(self): + """ + Test case for create_core_v1_namespaced_pod + + + """ + pass + + def test_create_core_v1_namespaced_pod_template(self): + """ + Test case for create_core_v1_namespaced_pod_template + + + """ + pass + + def test_create_core_v1_namespaced_replication_controller(self): + """ + Test case for create_core_v1_namespaced_replication_controller + + + """ + pass + + def test_create_core_v1_namespaced_resource_quota(self): + """ + Test case for create_core_v1_namespaced_resource_quota + + + """ + pass + + def test_create_core_v1_namespaced_secret(self): + """ + Test case for create_core_v1_namespaced_secret + + + """ + pass + + def test_create_core_v1_namespaced_service(self): + """ + Test case for create_core_v1_namespaced_service + + + """ + pass + + def test_create_core_v1_namespaced_service_account(self): + """ + Test case for create_core_v1_namespaced_service_account + + + """ + pass + + def test_create_core_v1_node(self): + """ + Test case for create_core_v1_node + + + """ + pass + + def test_create_core_v1_persistent_volume(self): + """ + Test case for create_core_v1_persistent_volume + + + """ + pass + + def test_delete_core_v1_collection_namespace(self): + """ + Test case for delete_core_v1_collection_namespace + + + """ + pass + + def test_delete_core_v1_collection_namespaced_config_map(self): + """ + Test case for delete_core_v1_collection_namespaced_config_map + + + """ + pass + + def test_delete_core_v1_collection_namespaced_endpoints(self): + """ + Test case for delete_core_v1_collection_namespaced_endpoints + + + """ + pass + + def test_delete_core_v1_collection_namespaced_event(self): + """ + Test case for delete_core_v1_collection_namespaced_event + + + """ + pass + + def test_delete_core_v1_collection_namespaced_limit_range(self): + """ + Test case for delete_core_v1_collection_namespaced_limit_range + + + """ + pass + + def test_delete_core_v1_collection_namespaced_persistent_volume_claim(self): + """ + Test case for delete_core_v1_collection_namespaced_persistent_volume_claim + + + """ + pass + + def test_delete_core_v1_collection_namespaced_pod(self): + """ + Test case for delete_core_v1_collection_namespaced_pod + + + """ + pass + + def test_delete_core_v1_collection_namespaced_pod_template(self): + """ + Test case for delete_core_v1_collection_namespaced_pod_template + + + """ + pass + + def test_delete_core_v1_collection_namespaced_replication_controller(self): + """ + Test case for delete_core_v1_collection_namespaced_replication_controller + + + """ + pass + + def test_delete_core_v1_collection_namespaced_resource_quota(self): + """ + Test case for delete_core_v1_collection_namespaced_resource_quota + + + """ + pass + + def test_delete_core_v1_collection_namespaced_secret(self): + """ + Test case for delete_core_v1_collection_namespaced_secret + + + """ + pass + + def test_delete_core_v1_collection_namespaced_service_account(self): + """ + Test case for delete_core_v1_collection_namespaced_service_account + + + """ + pass + + def test_delete_core_v1_collection_node(self): + """ + Test case for delete_core_v1_collection_node + + + """ + pass + + def test_delete_core_v1_collection_persistent_volume(self): + """ + Test case for delete_core_v1_collection_persistent_volume + + + """ + pass + + def test_delete_core_v1_namespace(self): + """ + Test case for delete_core_v1_namespace + + + """ + pass + + def test_delete_core_v1_namespaced_config_map(self): + """ + Test case for delete_core_v1_namespaced_config_map + + + """ + pass + + def test_delete_core_v1_namespaced_endpoints(self): + """ + Test case for delete_core_v1_namespaced_endpoints + + + """ + pass + + def test_delete_core_v1_namespaced_event(self): + """ + Test case for delete_core_v1_namespaced_event + + + """ + pass + + def test_delete_core_v1_namespaced_limit_range(self): + """ + Test case for delete_core_v1_namespaced_limit_range + + + """ + pass + + def test_delete_core_v1_namespaced_persistent_volume_claim(self): + """ + Test case for delete_core_v1_namespaced_persistent_volume_claim + + + """ + pass + + def test_delete_core_v1_namespaced_pod(self): + """ + Test case for delete_core_v1_namespaced_pod + + + """ + pass + + def test_delete_core_v1_namespaced_pod_template(self): + """ + Test case for delete_core_v1_namespaced_pod_template + + + """ + pass + + def test_delete_core_v1_namespaced_replication_controller(self): + """ + Test case for delete_core_v1_namespaced_replication_controller + + + """ + pass + + def test_delete_core_v1_namespaced_resource_quota(self): + """ + Test case for delete_core_v1_namespaced_resource_quota + + + """ + pass + + def test_delete_core_v1_namespaced_secret(self): + """ + Test case for delete_core_v1_namespaced_secret + + + """ + pass + + def test_delete_core_v1_namespaced_service(self): + """ + Test case for delete_core_v1_namespaced_service + + + """ + pass + + def test_delete_core_v1_namespaced_service_account(self): + """ + Test case for delete_core_v1_namespaced_service_account + + + """ + pass + + def test_delete_core_v1_node(self): + """ + Test case for delete_core_v1_node + + + """ + pass + + def test_delete_core_v1_persistent_volume(self): + """ + Test case for delete_core_v1_persistent_volume + + + """ + pass + + def test_get_core_v1_api_resources(self): + """ + Test case for get_core_v1_api_resources + + + """ + pass + + def test_list_core_v1_component_status(self): + """ + Test case for list_core_v1_component_status + + + """ + pass + + def test_list_core_v1_config_map_for_all_namespaces(self): + """ + Test case for list_core_v1_config_map_for_all_namespaces + + + """ + pass + + def test_list_core_v1_endpoints_for_all_namespaces(self): + """ + Test case for list_core_v1_endpoints_for_all_namespaces + + + """ + pass + + def test_list_core_v1_event_for_all_namespaces(self): + """ + Test case for list_core_v1_event_for_all_namespaces + + + """ + pass + + def test_list_core_v1_limit_range_for_all_namespaces(self): + """ + Test case for list_core_v1_limit_range_for_all_namespaces + + + """ + pass + + def test_list_core_v1_namespace(self): + """ + Test case for list_core_v1_namespace + + + """ + pass + + def test_list_core_v1_namespaced_config_map(self): + """ + Test case for list_core_v1_namespaced_config_map + + + """ + pass + + def test_list_core_v1_namespaced_endpoints(self): + """ + Test case for list_core_v1_namespaced_endpoints + + + """ + pass + + def test_list_core_v1_namespaced_event(self): + """ + Test case for list_core_v1_namespaced_event + + + """ + pass + + def test_list_core_v1_namespaced_limit_range(self): + """ + Test case for list_core_v1_namespaced_limit_range + + + """ + pass + + def test_list_core_v1_namespaced_persistent_volume_claim(self): + """ + Test case for list_core_v1_namespaced_persistent_volume_claim + + + """ + pass + + def test_list_core_v1_namespaced_pod(self): + """ + Test case for list_core_v1_namespaced_pod + + + """ + pass + + def test_list_core_v1_namespaced_pod_template(self): + """ + Test case for list_core_v1_namespaced_pod_template + + + """ + pass + + def test_list_core_v1_namespaced_replication_controller(self): + """ + Test case for list_core_v1_namespaced_replication_controller + + + """ + pass + + def test_list_core_v1_namespaced_resource_quota(self): + """ + Test case for list_core_v1_namespaced_resource_quota + + + """ + pass + + def test_list_core_v1_namespaced_secret(self): + """ + Test case for list_core_v1_namespaced_secret + + + """ + pass + + def test_list_core_v1_namespaced_service(self): + """ + Test case for list_core_v1_namespaced_service + + + """ + pass + + def test_list_core_v1_namespaced_service_account(self): + """ + Test case for list_core_v1_namespaced_service_account + + + """ + pass + + def test_list_core_v1_node(self): + """ + Test case for list_core_v1_node + + + """ + pass + + def test_list_core_v1_persistent_volume(self): + """ + Test case for list_core_v1_persistent_volume + + + """ + pass + + def test_list_core_v1_persistent_volume_claim_for_all_namespaces(self): + """ + Test case for list_core_v1_persistent_volume_claim_for_all_namespaces + + + """ + pass + + def test_list_core_v1_pod_for_all_namespaces(self): + """ + Test case for list_core_v1_pod_for_all_namespaces + + + """ + pass + + def test_list_core_v1_pod_template_for_all_namespaces(self): + """ + Test case for list_core_v1_pod_template_for_all_namespaces + + + """ + pass + + def test_list_core_v1_replication_controller_for_all_namespaces(self): + """ + Test case for list_core_v1_replication_controller_for_all_namespaces + + + """ + pass + + def test_list_core_v1_resource_quota_for_all_namespaces(self): + """ + Test case for list_core_v1_resource_quota_for_all_namespaces + + + """ + pass + + def test_list_core_v1_secret_for_all_namespaces(self): + """ + Test case for list_core_v1_secret_for_all_namespaces + + + """ + pass + + def test_list_core_v1_service_account_for_all_namespaces(self): + """ + Test case for list_core_v1_service_account_for_all_namespaces + + + """ + pass + + def test_list_core_v1_service_for_all_namespaces(self): + """ + Test case for list_core_v1_service_for_all_namespaces + + + """ + pass + + def test_patch_core_v1_namespace(self): + """ + Test case for patch_core_v1_namespace + + + """ + pass + + def test_patch_core_v1_namespace_status(self): + """ + Test case for patch_core_v1_namespace_status + + + """ + pass + + def test_patch_core_v1_namespaced_config_map(self): + """ + Test case for patch_core_v1_namespaced_config_map + + + """ + pass + + def test_patch_core_v1_namespaced_endpoints(self): + """ + Test case for patch_core_v1_namespaced_endpoints + + + """ + pass + + def test_patch_core_v1_namespaced_event(self): + """ + Test case for patch_core_v1_namespaced_event + + + """ + pass + + def test_patch_core_v1_namespaced_limit_range(self): + """ + Test case for patch_core_v1_namespaced_limit_range + + + """ + pass + + def test_patch_core_v1_namespaced_persistent_volume_claim(self): + """ + Test case for patch_core_v1_namespaced_persistent_volume_claim + + + """ + pass + + def test_patch_core_v1_namespaced_persistent_volume_claim_status(self): + """ + Test case for patch_core_v1_namespaced_persistent_volume_claim_status + + + """ + pass + + def test_patch_core_v1_namespaced_pod(self): + """ + Test case for patch_core_v1_namespaced_pod + + + """ + pass + + def test_patch_core_v1_namespaced_pod_status(self): + """ + Test case for patch_core_v1_namespaced_pod_status + + + """ + pass + + def test_patch_core_v1_namespaced_pod_template(self): + """ + Test case for patch_core_v1_namespaced_pod_template + + + """ + pass + + def test_patch_core_v1_namespaced_replication_controller(self): + """ + Test case for patch_core_v1_namespaced_replication_controller + + + """ + pass + + def test_patch_core_v1_namespaced_replication_controller_status(self): + """ + Test case for patch_core_v1_namespaced_replication_controller_status + + + """ + pass + + def test_patch_core_v1_namespaced_resource_quota(self): + """ + Test case for patch_core_v1_namespaced_resource_quota + + + """ + pass + + def test_patch_core_v1_namespaced_resource_quota_status(self): + """ + Test case for patch_core_v1_namespaced_resource_quota_status + + + """ + pass + + def test_patch_core_v1_namespaced_scale_scale(self): + """ + Test case for patch_core_v1_namespaced_scale_scale + + + """ + pass + + def test_patch_core_v1_namespaced_secret(self): + """ + Test case for patch_core_v1_namespaced_secret + + + """ + pass + + def test_patch_core_v1_namespaced_service(self): + """ + Test case for patch_core_v1_namespaced_service + + + """ + pass + + def test_patch_core_v1_namespaced_service_account(self): + """ + Test case for patch_core_v1_namespaced_service_account + + + """ + pass + + def test_patch_core_v1_namespaced_service_status(self): + """ + Test case for patch_core_v1_namespaced_service_status + + + """ + pass + + def test_patch_core_v1_node(self): + """ + Test case for patch_core_v1_node + + + """ + pass + + def test_patch_core_v1_node_status(self): + """ + Test case for patch_core_v1_node_status + + + """ + pass + + def test_patch_core_v1_persistent_volume(self): + """ + Test case for patch_core_v1_persistent_volume + + + """ + pass + + def test_patch_core_v1_persistent_volume_status(self): + """ + Test case for patch_core_v1_persistent_volume_status + + + """ + pass + + def test_proxy_core_v1_delete_namespaced_pod(self): + """ + Test case for proxy_core_v1_delete_namespaced_pod + + + """ + pass + + def test_proxy_core_v1_delete_namespaced_pod_with_path(self): + """ + Test case for proxy_core_v1_delete_namespaced_pod_with_path + + + """ + pass + + def test_proxy_core_v1_delete_namespaced_service(self): + """ + Test case for proxy_core_v1_delete_namespaced_service + + + """ + pass + + def test_proxy_core_v1_delete_namespaced_service_with_path(self): + """ + Test case for proxy_core_v1_delete_namespaced_service_with_path + + + """ + pass + + def test_proxy_core_v1_delete_node(self): + """ + Test case for proxy_core_v1_delete_node + + + """ + pass + + def test_proxy_core_v1_delete_node_with_path(self): + """ + Test case for proxy_core_v1_delete_node_with_path + + + """ + pass + + def test_proxy_core_v1_get_namespaced_pod(self): + """ + Test case for proxy_core_v1_get_namespaced_pod + + + """ + pass + + def test_proxy_core_v1_get_namespaced_pod_with_path(self): + """ + Test case for proxy_core_v1_get_namespaced_pod_with_path + + + """ + pass + + def test_proxy_core_v1_get_namespaced_service(self): + """ + Test case for proxy_core_v1_get_namespaced_service + + + """ + pass + + def test_proxy_core_v1_get_namespaced_service_with_path(self): + """ + Test case for proxy_core_v1_get_namespaced_service_with_path + + + """ + pass + + def test_proxy_core_v1_get_node(self): + """ + Test case for proxy_core_v1_get_node + + + """ + pass + + def test_proxy_core_v1_get_node_with_path(self): + """ + Test case for proxy_core_v1_get_node_with_path + + + """ + pass + + def test_proxy_core_v1_head_namespaced_pod(self): + """ + Test case for proxy_core_v1_head_namespaced_pod + + + """ + pass + + def test_proxy_core_v1_head_namespaced_pod_with_path(self): + """ + Test case for proxy_core_v1_head_namespaced_pod_with_path + + + """ + pass + + def test_proxy_core_v1_head_namespaced_service(self): + """ + Test case for proxy_core_v1_head_namespaced_service + + + """ + pass + + def test_proxy_core_v1_head_namespaced_service_with_path(self): + """ + Test case for proxy_core_v1_head_namespaced_service_with_path + + + """ + pass + + def test_proxy_core_v1_head_node(self): + """ + Test case for proxy_core_v1_head_node + + + """ + pass + + def test_proxy_core_v1_head_node_with_path(self): + """ + Test case for proxy_core_v1_head_node_with_path + + + """ + pass + + def test_proxy_core_v1_options_namespaced_pod(self): + """ + Test case for proxy_core_v1_options_namespaced_pod + + + """ + pass + + def test_proxy_core_v1_options_namespaced_pod_with_path(self): + """ + Test case for proxy_core_v1_options_namespaced_pod_with_path + + + """ + pass + + def test_proxy_core_v1_options_namespaced_service(self): + """ + Test case for proxy_core_v1_options_namespaced_service + + + """ + pass + + def test_proxy_core_v1_options_namespaced_service_with_path(self): + """ + Test case for proxy_core_v1_options_namespaced_service_with_path + + + """ + pass + + def test_proxy_core_v1_options_node(self): + """ + Test case for proxy_core_v1_options_node + + + """ + pass + + def test_proxy_core_v1_options_node_with_path(self): + """ + Test case for proxy_core_v1_options_node_with_path + + + """ + pass + + def test_proxy_core_v1_post_namespaced_pod(self): + """ + Test case for proxy_core_v1_post_namespaced_pod + + + """ + pass + + def test_proxy_core_v1_post_namespaced_pod_with_path(self): + """ + Test case for proxy_core_v1_post_namespaced_pod_with_path + + + """ + pass + + def test_proxy_core_v1_post_namespaced_service(self): + """ + Test case for proxy_core_v1_post_namespaced_service + + + """ + pass + + def test_proxy_core_v1_post_namespaced_service_with_path(self): + """ + Test case for proxy_core_v1_post_namespaced_service_with_path + + + """ + pass + + def test_proxy_core_v1_post_node(self): + """ + Test case for proxy_core_v1_post_node + + + """ + pass + + def test_proxy_core_v1_post_node_with_path(self): + """ + Test case for proxy_core_v1_post_node_with_path + + + """ + pass + + def test_proxy_core_v1_put_namespaced_pod(self): + """ + Test case for proxy_core_v1_put_namespaced_pod + + + """ + pass + + def test_proxy_core_v1_put_namespaced_pod_with_path(self): + """ + Test case for proxy_core_v1_put_namespaced_pod_with_path + + + """ + pass + + def test_proxy_core_v1_put_namespaced_service(self): + """ + Test case for proxy_core_v1_put_namespaced_service + + + """ + pass + + def test_proxy_core_v1_put_namespaced_service_with_path(self): + """ + Test case for proxy_core_v1_put_namespaced_service_with_path + + + """ + pass + + def test_proxy_core_v1_put_node(self): + """ + Test case for proxy_core_v1_put_node + + + """ + pass + + def test_proxy_core_v1_put_node_with_path(self): + """ + Test case for proxy_core_v1_put_node_with_path + + + """ + pass + + def test_read_core_v1_component_status(self): + """ + Test case for read_core_v1_component_status + + + """ + pass + + def test_read_core_v1_namespace(self): + """ + Test case for read_core_v1_namespace + + + """ + pass + + def test_read_core_v1_namespace_status(self): + """ + Test case for read_core_v1_namespace_status + + + """ + pass + + def test_read_core_v1_namespaced_config_map(self): + """ + Test case for read_core_v1_namespaced_config_map + + + """ + pass + + def test_read_core_v1_namespaced_endpoints(self): + """ + Test case for read_core_v1_namespaced_endpoints + + + """ + pass + + def test_read_core_v1_namespaced_event(self): + """ + Test case for read_core_v1_namespaced_event + + + """ + pass + + def test_read_core_v1_namespaced_limit_range(self): + """ + Test case for read_core_v1_namespaced_limit_range + + + """ + pass + + def test_read_core_v1_namespaced_persistent_volume_claim(self): + """ + Test case for read_core_v1_namespaced_persistent_volume_claim + + + """ + pass + + def test_read_core_v1_namespaced_persistent_volume_claim_status(self): + """ + Test case for read_core_v1_namespaced_persistent_volume_claim_status + + + """ + pass + + def test_read_core_v1_namespaced_pod(self): + """ + Test case for read_core_v1_namespaced_pod + + + """ + pass + + def test_read_core_v1_namespaced_pod_log(self): + """ + Test case for read_core_v1_namespaced_pod_log + + + """ + pass + + def test_read_core_v1_namespaced_pod_status(self): + """ + Test case for read_core_v1_namespaced_pod_status + + + """ + pass + + def test_read_core_v1_namespaced_pod_template(self): + """ + Test case for read_core_v1_namespaced_pod_template + + + """ + pass + + def test_read_core_v1_namespaced_replication_controller(self): + """ + Test case for read_core_v1_namespaced_replication_controller + + + """ + pass + + def test_read_core_v1_namespaced_replication_controller_status(self): + """ + Test case for read_core_v1_namespaced_replication_controller_status + + + """ + pass + + def test_read_core_v1_namespaced_resource_quota(self): + """ + Test case for read_core_v1_namespaced_resource_quota + + + """ + pass + + def test_read_core_v1_namespaced_resource_quota_status(self): + """ + Test case for read_core_v1_namespaced_resource_quota_status + + + """ + pass + + def test_read_core_v1_namespaced_scale_scale(self): + """ + Test case for read_core_v1_namespaced_scale_scale + + + """ + pass + + def test_read_core_v1_namespaced_secret(self): + """ + Test case for read_core_v1_namespaced_secret + + + """ + pass + + def test_read_core_v1_namespaced_service(self): + """ + Test case for read_core_v1_namespaced_service + + + """ + pass + + def test_read_core_v1_namespaced_service_account(self): + """ + Test case for read_core_v1_namespaced_service_account + + + """ + pass + + def test_read_core_v1_namespaced_service_status(self): + """ + Test case for read_core_v1_namespaced_service_status + + + """ + pass + + def test_read_core_v1_node(self): + """ + Test case for read_core_v1_node + + + """ + pass + + def test_read_core_v1_node_status(self): + """ + Test case for read_core_v1_node_status + + + """ + pass + + def test_read_core_v1_persistent_volume(self): + """ + Test case for read_core_v1_persistent_volume + + + """ + pass + + def test_read_core_v1_persistent_volume_status(self): + """ + Test case for read_core_v1_persistent_volume_status + + + """ + pass + + def test_replace_core_v1_namespace(self): + """ + Test case for replace_core_v1_namespace + + + """ + pass + + def test_replace_core_v1_namespace_finalize(self): + """ + Test case for replace_core_v1_namespace_finalize + + + """ + pass + + def test_replace_core_v1_namespace_status(self): + """ + Test case for replace_core_v1_namespace_status + + + """ + pass + + def test_replace_core_v1_namespaced_config_map(self): + """ + Test case for replace_core_v1_namespaced_config_map + + + """ + pass + + def test_replace_core_v1_namespaced_endpoints(self): + """ + Test case for replace_core_v1_namespaced_endpoints + + + """ + pass + + def test_replace_core_v1_namespaced_event(self): + """ + Test case for replace_core_v1_namespaced_event + + + """ + pass + + def test_replace_core_v1_namespaced_limit_range(self): + """ + Test case for replace_core_v1_namespaced_limit_range + + + """ + pass + + def test_replace_core_v1_namespaced_persistent_volume_claim(self): + """ + Test case for replace_core_v1_namespaced_persistent_volume_claim + + + """ + pass + + def test_replace_core_v1_namespaced_persistent_volume_claim_status(self): + """ + Test case for replace_core_v1_namespaced_persistent_volume_claim_status + + + """ + pass + + def test_replace_core_v1_namespaced_pod(self): + """ + Test case for replace_core_v1_namespaced_pod + + + """ + pass + + def test_replace_core_v1_namespaced_pod_status(self): + """ + Test case for replace_core_v1_namespaced_pod_status + + + """ + pass + + def test_replace_core_v1_namespaced_pod_template(self): + """ + Test case for replace_core_v1_namespaced_pod_template + + + """ + pass + + def test_replace_core_v1_namespaced_replication_controller(self): + """ + Test case for replace_core_v1_namespaced_replication_controller + + + """ + pass + + def test_replace_core_v1_namespaced_replication_controller_status(self): + """ + Test case for replace_core_v1_namespaced_replication_controller_status + + + """ + pass + + def test_replace_core_v1_namespaced_resource_quota(self): + """ + Test case for replace_core_v1_namespaced_resource_quota + + + """ + pass + + def test_replace_core_v1_namespaced_resource_quota_status(self): + """ + Test case for replace_core_v1_namespaced_resource_quota_status + + + """ + pass + + def test_replace_core_v1_namespaced_scale_scale(self): + """ + Test case for replace_core_v1_namespaced_scale_scale + + + """ + pass + + def test_replace_core_v1_namespaced_secret(self): + """ + Test case for replace_core_v1_namespaced_secret + + + """ + pass + + def test_replace_core_v1_namespaced_service(self): + """ + Test case for replace_core_v1_namespaced_service + + + """ + pass + + def test_replace_core_v1_namespaced_service_account(self): + """ + Test case for replace_core_v1_namespaced_service_account + + + """ + pass + + def test_replace_core_v1_namespaced_service_status(self): + """ + Test case for replace_core_v1_namespaced_service_status + + + """ + pass + + def test_replace_core_v1_node(self): + """ + Test case for replace_core_v1_node + + + """ + pass + + def test_replace_core_v1_node_status(self): + """ + Test case for replace_core_v1_node_status + + + """ + pass + + def test_replace_core_v1_persistent_volume(self): + """ + Test case for replace_core_v1_persistent_volume + + + """ + pass + + def test_replace_core_v1_persistent_volume_status(self): + """ + Test case for replace_core_v1_persistent_volume_status + + + """ + pass + + def test_watch_core_v1_config_map_list_for_all_namespaces(self): + """ + Test case for watch_core_v1_config_map_list_for_all_namespaces + + + """ + pass + + def test_watch_core_v1_endpoints_list_for_all_namespaces(self): + """ + Test case for watch_core_v1_endpoints_list_for_all_namespaces + + + """ + pass + + def test_watch_core_v1_event_list_for_all_namespaces(self): + """ + Test case for watch_core_v1_event_list_for_all_namespaces + + + """ + pass + + def test_watch_core_v1_limit_range_list_for_all_namespaces(self): + """ + Test case for watch_core_v1_limit_range_list_for_all_namespaces + + + """ + pass + + def test_watch_core_v1_namespace(self): + """ + Test case for watch_core_v1_namespace + + + """ + pass + + def test_watch_core_v1_namespace_list(self): + """ + Test case for watch_core_v1_namespace_list + + + """ + pass + + def test_watch_core_v1_namespaced_config_map(self): + """ + Test case for watch_core_v1_namespaced_config_map + + + """ + pass + + def test_watch_core_v1_namespaced_config_map_list(self): + """ + Test case for watch_core_v1_namespaced_config_map_list + + + """ + pass + + def test_watch_core_v1_namespaced_endpoints(self): + """ + Test case for watch_core_v1_namespaced_endpoints + + + """ + pass + + def test_watch_core_v1_namespaced_endpoints_list(self): + """ + Test case for watch_core_v1_namespaced_endpoints_list + + + """ + pass + + def test_watch_core_v1_namespaced_event(self): + """ + Test case for watch_core_v1_namespaced_event + + + """ + pass + + def test_watch_core_v1_namespaced_event_list(self): + """ + Test case for watch_core_v1_namespaced_event_list + + + """ + pass + + def test_watch_core_v1_namespaced_limit_range(self): + """ + Test case for watch_core_v1_namespaced_limit_range + + + """ + pass + + def test_watch_core_v1_namespaced_limit_range_list(self): + """ + Test case for watch_core_v1_namespaced_limit_range_list + + + """ + pass + + def test_watch_core_v1_namespaced_persistent_volume_claim(self): + """ + Test case for watch_core_v1_namespaced_persistent_volume_claim + + + """ + pass + + def test_watch_core_v1_namespaced_persistent_volume_claim_list(self): + """ + Test case for watch_core_v1_namespaced_persistent_volume_claim_list + + + """ + pass + + def test_watch_core_v1_namespaced_pod(self): + """ + Test case for watch_core_v1_namespaced_pod + + + """ + pass + + def test_watch_core_v1_namespaced_pod_list(self): + """ + Test case for watch_core_v1_namespaced_pod_list + + + """ + pass + + def test_watch_core_v1_namespaced_pod_template(self): + """ + Test case for watch_core_v1_namespaced_pod_template + + + """ + pass + + def test_watch_core_v1_namespaced_pod_template_list(self): + """ + Test case for watch_core_v1_namespaced_pod_template_list + + + """ + pass + + def test_watch_core_v1_namespaced_replication_controller(self): + """ + Test case for watch_core_v1_namespaced_replication_controller + + + """ + pass + + def test_watch_core_v1_namespaced_replication_controller_list(self): + """ + Test case for watch_core_v1_namespaced_replication_controller_list + + + """ + pass + + def test_watch_core_v1_namespaced_resource_quota(self): + """ + Test case for watch_core_v1_namespaced_resource_quota + + + """ + pass + + def test_watch_core_v1_namespaced_resource_quota_list(self): + """ + Test case for watch_core_v1_namespaced_resource_quota_list + + + """ + pass + + def test_watch_core_v1_namespaced_secret(self): + """ + Test case for watch_core_v1_namespaced_secret + + + """ + pass + + def test_watch_core_v1_namespaced_secret_list(self): + """ + Test case for watch_core_v1_namespaced_secret_list + + + """ + pass + + def test_watch_core_v1_namespaced_service(self): + """ + Test case for watch_core_v1_namespaced_service + + + """ + pass + + def test_watch_core_v1_namespaced_service_account(self): + """ + Test case for watch_core_v1_namespaced_service_account + + + """ + pass + + def test_watch_core_v1_namespaced_service_account_list(self): + """ + Test case for watch_core_v1_namespaced_service_account_list + + + """ + pass + + def test_watch_core_v1_namespaced_service_list(self): + """ + Test case for watch_core_v1_namespaced_service_list + + + """ + pass + + def test_watch_core_v1_node(self): + """ + Test case for watch_core_v1_node + + + """ + pass + + def test_watch_core_v1_node_list(self): + """ + Test case for watch_core_v1_node_list + + + """ + pass + + def test_watch_core_v1_persistent_volume(self): + """ + Test case for watch_core_v1_persistent_volume + + + """ + pass + + def test_watch_core_v1_persistent_volume_claim_list_for_all_namespaces(self): + """ + Test case for watch_core_v1_persistent_volume_claim_list_for_all_namespaces + + + """ + pass + + def test_watch_core_v1_persistent_volume_list(self): + """ + Test case for watch_core_v1_persistent_volume_list + + + """ + pass + + def test_watch_core_v1_pod_list_for_all_namespaces(self): + """ + Test case for watch_core_v1_pod_list_for_all_namespaces + + + """ + pass + + def test_watch_core_v1_pod_template_list_for_all_namespaces(self): + """ + Test case for watch_core_v1_pod_template_list_for_all_namespaces + + + """ + pass + + def test_watch_core_v1_replication_controller_list_for_all_namespaces(self): + """ + Test case for watch_core_v1_replication_controller_list_for_all_namespaces + + + """ + pass + + def test_watch_core_v1_resource_quota_list_for_all_namespaces(self): + """ + Test case for watch_core_v1_resource_quota_list_for_all_namespaces + + + """ + pass + + def test_watch_core_v1_secret_list_for_all_namespaces(self): + """ + Test case for watch_core_v1_secret_list_for_all_namespaces + + + """ + pass + + def test_watch_core_v1_service_account_list_for_all_namespaces(self): + """ + Test case for watch_core_v1_service_account_list_for_all_namespaces + + + """ + pass + + def test_watch_core_v1_service_list_for_all_namespaces(self): + """ + Test case for watch_core_v1_service_list_for_all_namespaces + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_extensions_api.py b/test/test_extensions_api.py new file mode 100644 index 000000000..fcb8898c8 --- /dev/null +++ b/test/test_extensions_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.extensions_api import ExtensionsApi + + +class TestExtensionsApi(unittest.TestCase): + """ ExtensionsApi unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.extensions_api.ExtensionsApi() + + def tearDown(self): + pass + + def test_get_extensions_api_group(self): + """ + Test case for get_extensions_api_group + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_extensions_v1beta1_api.py b/test/test_extensions_v1beta1_api.py new file mode 100644 index 000000000..54efee32e --- /dev/null +++ b/test/test_extensions_v1beta1_api.py @@ -0,0 +1,967 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.extensions_v1beta1_api import ExtensionsV1beta1Api + + +class TestExtensionsV1beta1Api(unittest.TestCase): + """ ExtensionsV1beta1Api unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.extensions_v1beta1_api.ExtensionsV1beta1Api() + + def tearDown(self): + pass + + def test_create_extensions_v1beta1_namespaced_daemon_set(self): + """ + Test case for create_extensions_v1beta1_namespaced_daemon_set + + + """ + pass + + def test_create_extensions_v1beta1_namespaced_deployment(self): + """ + Test case for create_extensions_v1beta1_namespaced_deployment + + + """ + pass + + def test_create_extensions_v1beta1_namespaced_deployment_rollback_rollback(self): + """ + Test case for create_extensions_v1beta1_namespaced_deployment_rollback_rollback + + + """ + pass + + def test_create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for create_extensions_v1beta1_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_create_extensions_v1beta1_namespaced_ingress(self): + """ + Test case for create_extensions_v1beta1_namespaced_ingress + + + """ + pass + + def test_create_extensions_v1beta1_namespaced_job(self): + """ + Test case for create_extensions_v1beta1_namespaced_job + + + """ + pass + + def test_create_extensions_v1beta1_namespaced_network_policy(self): + """ + Test case for create_extensions_v1beta1_namespaced_network_policy + + + """ + pass + + def test_create_extensions_v1beta1_namespaced_replica_set(self): + """ + Test case for create_extensions_v1beta1_namespaced_replica_set + + + """ + pass + + def test_create_extensions_v1beta1_third_party_resource(self): + """ + Test case for create_extensions_v1beta1_third_party_resource + + + """ + pass + + def test_delete_extensions_v1beta1_collection_namespaced_daemon_set(self): + """ + Test case for delete_extensions_v1beta1_collection_namespaced_daemon_set + + + """ + pass + + def test_delete_extensions_v1beta1_collection_namespaced_deployment(self): + """ + Test case for delete_extensions_v1beta1_collection_namespaced_deployment + + + """ + pass + + def test_delete_extensions_v1beta1_collection_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for delete_extensions_v1beta1_collection_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_delete_extensions_v1beta1_collection_namespaced_ingress(self): + """ + Test case for delete_extensions_v1beta1_collection_namespaced_ingress + + + """ + pass + + def test_delete_extensions_v1beta1_collection_namespaced_job(self): + """ + Test case for delete_extensions_v1beta1_collection_namespaced_job + + + """ + pass + + def test_delete_extensions_v1beta1_collection_namespaced_network_policy(self): + """ + Test case for delete_extensions_v1beta1_collection_namespaced_network_policy + + + """ + pass + + def test_delete_extensions_v1beta1_collection_namespaced_replica_set(self): + """ + Test case for delete_extensions_v1beta1_collection_namespaced_replica_set + + + """ + pass + + def test_delete_extensions_v1beta1_collection_third_party_resource(self): + """ + Test case for delete_extensions_v1beta1_collection_third_party_resource + + + """ + pass + + def test_delete_extensions_v1beta1_namespaced_daemon_set(self): + """ + Test case for delete_extensions_v1beta1_namespaced_daemon_set + + + """ + pass + + def test_delete_extensions_v1beta1_namespaced_deployment(self): + """ + Test case for delete_extensions_v1beta1_namespaced_deployment + + + """ + pass + + def test_delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for delete_extensions_v1beta1_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_delete_extensions_v1beta1_namespaced_ingress(self): + """ + Test case for delete_extensions_v1beta1_namespaced_ingress + + + """ + pass + + def test_delete_extensions_v1beta1_namespaced_job(self): + """ + Test case for delete_extensions_v1beta1_namespaced_job + + + """ + pass + + def test_delete_extensions_v1beta1_namespaced_network_policy(self): + """ + Test case for delete_extensions_v1beta1_namespaced_network_policy + + + """ + pass + + def test_delete_extensions_v1beta1_namespaced_replica_set(self): + """ + Test case for delete_extensions_v1beta1_namespaced_replica_set + + + """ + pass + + def test_delete_extensions_v1beta1_third_party_resource(self): + """ + Test case for delete_extensions_v1beta1_third_party_resource + + + """ + pass + + def test_get_extensions_v1beta1_api_resources(self): + """ + Test case for get_extensions_v1beta1_api_resources + + + """ + pass + + def test_list_extensions_v1beta1_daemon_set_for_all_namespaces(self): + """ + Test case for list_extensions_v1beta1_daemon_set_for_all_namespaces + + + """ + pass + + def test_list_extensions_v1beta1_deployment_for_all_namespaces(self): + """ + Test case for list_extensions_v1beta1_deployment_for_all_namespaces + + + """ + pass + + def test_list_extensions_v1beta1_horizontal_pod_autoscaler_for_all_namespaces(self): + """ + Test case for list_extensions_v1beta1_horizontal_pod_autoscaler_for_all_namespaces + + + """ + pass + + def test_list_extensions_v1beta1_ingress_for_all_namespaces(self): + """ + Test case for list_extensions_v1beta1_ingress_for_all_namespaces + + + """ + pass + + def test_list_extensions_v1beta1_job_for_all_namespaces(self): + """ + Test case for list_extensions_v1beta1_job_for_all_namespaces + + + """ + pass + + def test_list_extensions_v1beta1_namespaced_daemon_set(self): + """ + Test case for list_extensions_v1beta1_namespaced_daemon_set + + + """ + pass + + def test_list_extensions_v1beta1_namespaced_deployment(self): + """ + Test case for list_extensions_v1beta1_namespaced_deployment + + + """ + pass + + def test_list_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for list_extensions_v1beta1_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_list_extensions_v1beta1_namespaced_ingress(self): + """ + Test case for list_extensions_v1beta1_namespaced_ingress + + + """ + pass + + def test_list_extensions_v1beta1_namespaced_job(self): + """ + Test case for list_extensions_v1beta1_namespaced_job + + + """ + pass + + def test_list_extensions_v1beta1_namespaced_network_policy(self): + """ + Test case for list_extensions_v1beta1_namespaced_network_policy + + + """ + pass + + def test_list_extensions_v1beta1_namespaced_replica_set(self): + """ + Test case for list_extensions_v1beta1_namespaced_replica_set + + + """ + pass + + def test_list_extensions_v1beta1_network_policy_for_all_namespaces(self): + """ + Test case for list_extensions_v1beta1_network_policy_for_all_namespaces + + + """ + pass + + def test_list_extensions_v1beta1_replica_set_for_all_namespaces(self): + """ + Test case for list_extensions_v1beta1_replica_set_for_all_namespaces + + + """ + pass + + def test_list_extensions_v1beta1_third_party_resource(self): + """ + Test case for list_extensions_v1beta1_third_party_resource + + + """ + pass + + def test_patch_extensions_v1beta1_namespaced_daemon_set(self): + """ + Test case for patch_extensions_v1beta1_namespaced_daemon_set + + + """ + pass + + def test_patch_extensions_v1beta1_namespaced_daemon_set_status(self): + """ + Test case for patch_extensions_v1beta1_namespaced_daemon_set_status + + + """ + pass + + def test_patch_extensions_v1beta1_namespaced_deployment(self): + """ + Test case for patch_extensions_v1beta1_namespaced_deployment + + + """ + pass + + def test_patch_extensions_v1beta1_namespaced_deployment_status(self): + """ + Test case for patch_extensions_v1beta1_namespaced_deployment_status + + + """ + pass + + def test_patch_extensions_v1beta1_namespaced_deployments_scale(self): + """ + Test case for patch_extensions_v1beta1_namespaced_deployments_scale + + + """ + pass + + def test_patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status(self): + """ + Test case for patch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status + + + """ + pass + + def test_patch_extensions_v1beta1_namespaced_ingress(self): + """ + Test case for patch_extensions_v1beta1_namespaced_ingress + + + """ + pass + + def test_patch_extensions_v1beta1_namespaced_ingress_status(self): + """ + Test case for patch_extensions_v1beta1_namespaced_ingress_status + + + """ + pass + + def test_patch_extensions_v1beta1_namespaced_job(self): + """ + Test case for patch_extensions_v1beta1_namespaced_job + + + """ + pass + + def test_patch_extensions_v1beta1_namespaced_job_status(self): + """ + Test case for patch_extensions_v1beta1_namespaced_job_status + + + """ + pass + + def test_patch_extensions_v1beta1_namespaced_network_policy(self): + """ + Test case for patch_extensions_v1beta1_namespaced_network_policy + + + """ + pass + + def test_patch_extensions_v1beta1_namespaced_replica_set(self): + """ + Test case for patch_extensions_v1beta1_namespaced_replica_set + + + """ + pass + + def test_patch_extensions_v1beta1_namespaced_replica_set_status(self): + """ + Test case for patch_extensions_v1beta1_namespaced_replica_set_status + + + """ + pass + + def test_patch_extensions_v1beta1_namespaced_replicasets_scale(self): + """ + Test case for patch_extensions_v1beta1_namespaced_replicasets_scale + + + """ + pass + + def test_patch_extensions_v1beta1_namespaced_replicationcontrollers_scale(self): + """ + Test case for patch_extensions_v1beta1_namespaced_replicationcontrollers_scale + + + """ + pass + + def test_patch_extensions_v1beta1_third_party_resource(self): + """ + Test case for patch_extensions_v1beta1_third_party_resource + + + """ + pass + + def test_read_extensions_v1beta1_namespaced_daemon_set(self): + """ + Test case for read_extensions_v1beta1_namespaced_daemon_set + + + """ + pass + + def test_read_extensions_v1beta1_namespaced_daemon_set_status(self): + """ + Test case for read_extensions_v1beta1_namespaced_daemon_set_status + + + """ + pass + + def test_read_extensions_v1beta1_namespaced_deployment(self): + """ + Test case for read_extensions_v1beta1_namespaced_deployment + + + """ + pass + + def test_read_extensions_v1beta1_namespaced_deployment_status(self): + """ + Test case for read_extensions_v1beta1_namespaced_deployment_status + + + """ + pass + + def test_read_extensions_v1beta1_namespaced_deployments_scale(self): + """ + Test case for read_extensions_v1beta1_namespaced_deployments_scale + + + """ + pass + + def test_read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status(self): + """ + Test case for read_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status + + + """ + pass + + def test_read_extensions_v1beta1_namespaced_ingress(self): + """ + Test case for read_extensions_v1beta1_namespaced_ingress + + + """ + pass + + def test_read_extensions_v1beta1_namespaced_ingress_status(self): + """ + Test case for read_extensions_v1beta1_namespaced_ingress_status + + + """ + pass + + def test_read_extensions_v1beta1_namespaced_job(self): + """ + Test case for read_extensions_v1beta1_namespaced_job + + + """ + pass + + def test_read_extensions_v1beta1_namespaced_job_status(self): + """ + Test case for read_extensions_v1beta1_namespaced_job_status + + + """ + pass + + def test_read_extensions_v1beta1_namespaced_network_policy(self): + """ + Test case for read_extensions_v1beta1_namespaced_network_policy + + + """ + pass + + def test_read_extensions_v1beta1_namespaced_replica_set(self): + """ + Test case for read_extensions_v1beta1_namespaced_replica_set + + + """ + pass + + def test_read_extensions_v1beta1_namespaced_replica_set_status(self): + """ + Test case for read_extensions_v1beta1_namespaced_replica_set_status + + + """ + pass + + def test_read_extensions_v1beta1_namespaced_replicasets_scale(self): + """ + Test case for read_extensions_v1beta1_namespaced_replicasets_scale + + + """ + pass + + def test_read_extensions_v1beta1_namespaced_replicationcontrollers_scale(self): + """ + Test case for read_extensions_v1beta1_namespaced_replicationcontrollers_scale + + + """ + pass + + def test_read_extensions_v1beta1_third_party_resource(self): + """ + Test case for read_extensions_v1beta1_third_party_resource + + + """ + pass + + def test_replace_extensions_v1beta1_namespaced_daemon_set(self): + """ + Test case for replace_extensions_v1beta1_namespaced_daemon_set + + + """ + pass + + def test_replace_extensions_v1beta1_namespaced_daemon_set_status(self): + """ + Test case for replace_extensions_v1beta1_namespaced_daemon_set_status + + + """ + pass + + def test_replace_extensions_v1beta1_namespaced_deployment(self): + """ + Test case for replace_extensions_v1beta1_namespaced_deployment + + + """ + pass + + def test_replace_extensions_v1beta1_namespaced_deployment_status(self): + """ + Test case for replace_extensions_v1beta1_namespaced_deployment_status + + + """ + pass + + def test_replace_extensions_v1beta1_namespaced_deployments_scale(self): + """ + Test case for replace_extensions_v1beta1_namespaced_deployments_scale + + + """ + pass + + def test_replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status(self): + """ + Test case for replace_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_status + + + """ + pass + + def test_replace_extensions_v1beta1_namespaced_ingress(self): + """ + Test case for replace_extensions_v1beta1_namespaced_ingress + + + """ + pass + + def test_replace_extensions_v1beta1_namespaced_ingress_status(self): + """ + Test case for replace_extensions_v1beta1_namespaced_ingress_status + + + """ + pass + + def test_replace_extensions_v1beta1_namespaced_job(self): + """ + Test case for replace_extensions_v1beta1_namespaced_job + + + """ + pass + + def test_replace_extensions_v1beta1_namespaced_job_status(self): + """ + Test case for replace_extensions_v1beta1_namespaced_job_status + + + """ + pass + + def test_replace_extensions_v1beta1_namespaced_network_policy(self): + """ + Test case for replace_extensions_v1beta1_namespaced_network_policy + + + """ + pass + + def test_replace_extensions_v1beta1_namespaced_replica_set(self): + """ + Test case for replace_extensions_v1beta1_namespaced_replica_set + + + """ + pass + + def test_replace_extensions_v1beta1_namespaced_replica_set_status(self): + """ + Test case for replace_extensions_v1beta1_namespaced_replica_set_status + + + """ + pass + + def test_replace_extensions_v1beta1_namespaced_replicasets_scale(self): + """ + Test case for replace_extensions_v1beta1_namespaced_replicasets_scale + + + """ + pass + + def test_replace_extensions_v1beta1_namespaced_replicationcontrollers_scale(self): + """ + Test case for replace_extensions_v1beta1_namespaced_replicationcontrollers_scale + + + """ + pass + + def test_replace_extensions_v1beta1_third_party_resource(self): + """ + Test case for replace_extensions_v1beta1_third_party_resource + + + """ + pass + + def test_watch_extensions_v1beta1_daemon_set_list_for_all_namespaces(self): + """ + Test case for watch_extensions_v1beta1_daemon_set_list_for_all_namespaces + + + """ + pass + + def test_watch_extensions_v1beta1_deployment_list_for_all_namespaces(self): + """ + Test case for watch_extensions_v1beta1_deployment_list_for_all_namespaces + + + """ + pass + + def test_watch_extensions_v1beta1_horizontal_pod_autoscaler_list_for_all_namespaces(self): + """ + Test case for watch_extensions_v1beta1_horizontal_pod_autoscaler_list_for_all_namespaces + + + """ + pass + + def test_watch_extensions_v1beta1_ingress_list_for_all_namespaces(self): + """ + Test case for watch_extensions_v1beta1_ingress_list_for_all_namespaces + + + """ + pass + + def test_watch_extensions_v1beta1_job_list_for_all_namespaces(self): + """ + Test case for watch_extensions_v1beta1_job_list_for_all_namespaces + + + """ + pass + + def test_watch_extensions_v1beta1_namespaced_daemon_set(self): + """ + Test case for watch_extensions_v1beta1_namespaced_daemon_set + + + """ + pass + + def test_watch_extensions_v1beta1_namespaced_daemon_set_list(self): + """ + Test case for watch_extensions_v1beta1_namespaced_daemon_set_list + + + """ + pass + + def test_watch_extensions_v1beta1_namespaced_deployment(self): + """ + Test case for watch_extensions_v1beta1_namespaced_deployment + + + """ + pass + + def test_watch_extensions_v1beta1_namespaced_deployment_list(self): + """ + Test case for watch_extensions_v1beta1_namespaced_deployment_list + + + """ + pass + + def test_watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_list(self): + """ + Test case for watch_extensions_v1beta1_namespaced_horizontal_pod_autoscaler_list + + + """ + pass + + def test_watch_extensions_v1beta1_namespaced_ingress(self): + """ + Test case for watch_extensions_v1beta1_namespaced_ingress + + + """ + pass + + def test_watch_extensions_v1beta1_namespaced_ingress_list(self): + """ + Test case for watch_extensions_v1beta1_namespaced_ingress_list + + + """ + pass + + def test_watch_extensions_v1beta1_namespaced_job(self): + """ + Test case for watch_extensions_v1beta1_namespaced_job + + + """ + pass + + def test_watch_extensions_v1beta1_namespaced_job_list(self): + """ + Test case for watch_extensions_v1beta1_namespaced_job_list + + + """ + pass + + def test_watch_extensions_v1beta1_namespaced_network_policy(self): + """ + Test case for watch_extensions_v1beta1_namespaced_network_policy + + + """ + pass + + def test_watch_extensions_v1beta1_namespaced_network_policy_list(self): + """ + Test case for watch_extensions_v1beta1_namespaced_network_policy_list + + + """ + pass + + def test_watch_extensions_v1beta1_namespaced_replica_set(self): + """ + Test case for watch_extensions_v1beta1_namespaced_replica_set + + + """ + pass + + def test_watch_extensions_v1beta1_namespaced_replica_set_list(self): + """ + Test case for watch_extensions_v1beta1_namespaced_replica_set_list + + + """ + pass + + def test_watch_extensions_v1beta1_network_policy_list_for_all_namespaces(self): + """ + Test case for watch_extensions_v1beta1_network_policy_list_for_all_namespaces + + + """ + pass + + def test_watch_extensions_v1beta1_replica_set_list_for_all_namespaces(self): + """ + Test case for watch_extensions_v1beta1_replica_set_list_for_all_namespaces + + + """ + pass + + def test_watch_extensions_v1beta1_third_party_resource(self): + """ + Test case for watch_extensions_v1beta1_third_party_resource + + + """ + pass + + def test_watch_extensions_v1beta1_third_party_resource_list(self): + """ + Test case for watch_extensions_v1beta1_third_party_resource_list + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_intstr_int_or_string.py b/test/test_intstr_int_or_string.py new file mode 100644 index 000000000..b2011d41f --- /dev/null +++ b/test/test_intstr_int_or_string.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.intstr_int_or_string import IntstrIntOrString + + +class TestIntstrIntOrString(unittest.TestCase): + """ IntstrIntOrString unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIntstrIntOrString(self): + """ + Test IntstrIntOrString + """ + model = k8sclient.models.intstr_int_or_string.IntstrIntOrString() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_logs_api.py b/test/test_logs_api.py new file mode 100644 index 000000000..bb3da75a5 --- /dev/null +++ b/test/test_logs_api.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.logs_api import LogsApi + + +class TestLogsApi(unittest.TestCase): + """ LogsApi unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.logs_api.LogsApi() + + def tearDown(self): + pass + + def test_log_file_handler(self): + """ + Test case for log_file_handler + + + """ + pass + + def test_log_file_list_handler(self): + """ + Test case for log_file_list_handler + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policy_api.py b/test/test_policy_api.py new file mode 100644 index 000000000..a9338fced --- /dev/null +++ b/test/test_policy_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.policy_api import PolicyApi + + +class TestPolicyApi(unittest.TestCase): + """ PolicyApi unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.policy_api.PolicyApi() + + def tearDown(self): + pass + + def test_get_policy_api_group(self): + """ + Test case for get_policy_api_group + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policy_v1alpha1_api.py b/test/test_policy_v1alpha1_api.py new file mode 100644 index 000000000..9342abb70 --- /dev/null +++ b/test/test_policy_v1alpha1_api.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.policy_v1alpha1_api import PolicyV1alpha1Api + + +class TestPolicyV1alpha1Api(unittest.TestCase): + """ PolicyV1alpha1Api unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.policy_v1alpha1_api.PolicyV1alpha1Api() + + def tearDown(self): + pass + + def test_create_policy_v1alpha1_namespaced_pod_disruption_budget(self): + """ + Test case for create_policy_v1alpha1_namespaced_pod_disruption_budget + + + """ + pass + + def test_delete_policy_v1alpha1_collection_namespaced_pod_disruption_budget(self): + """ + Test case for delete_policy_v1alpha1_collection_namespaced_pod_disruption_budget + + + """ + pass + + def test_delete_policy_v1alpha1_namespaced_pod_disruption_budget(self): + """ + Test case for delete_policy_v1alpha1_namespaced_pod_disruption_budget + + + """ + pass + + def test_get_policy_v1alpha1_api_resources(self): + """ + Test case for get_policy_v1alpha1_api_resources + + + """ + pass + + def test_list_policy_v1alpha1_namespaced_pod_disruption_budget(self): + """ + Test case for list_policy_v1alpha1_namespaced_pod_disruption_budget + + + """ + pass + + def test_list_policy_v1alpha1_pod_disruption_budget_for_all_namespaces(self): + """ + Test case for list_policy_v1alpha1_pod_disruption_budget_for_all_namespaces + + + """ + pass + + def test_patch_policy_v1alpha1_namespaced_pod_disruption_budget(self): + """ + Test case for patch_policy_v1alpha1_namespaced_pod_disruption_budget + + + """ + pass + + def test_patch_policy_v1alpha1_namespaced_pod_disruption_budget_status(self): + """ + Test case for patch_policy_v1alpha1_namespaced_pod_disruption_budget_status + + + """ + pass + + def test_read_policy_v1alpha1_namespaced_pod_disruption_budget(self): + """ + Test case for read_policy_v1alpha1_namespaced_pod_disruption_budget + + + """ + pass + + def test_read_policy_v1alpha1_namespaced_pod_disruption_budget_status(self): + """ + Test case for read_policy_v1alpha1_namespaced_pod_disruption_budget_status + + + """ + pass + + def test_replace_policy_v1alpha1_namespaced_pod_disruption_budget(self): + """ + Test case for replace_policy_v1alpha1_namespaced_pod_disruption_budget + + + """ + pass + + def test_replace_policy_v1alpha1_namespaced_pod_disruption_budget_status(self): + """ + Test case for replace_policy_v1alpha1_namespaced_pod_disruption_budget_status + + + """ + pass + + def test_watch_policy_v1alpha1_namespaced_pod_disruption_budget(self): + """ + Test case for watch_policy_v1alpha1_namespaced_pod_disruption_budget + + + """ + pass + + def test_watch_policy_v1alpha1_namespaced_pod_disruption_budget_list(self): + """ + Test case for watch_policy_v1alpha1_namespaced_pod_disruption_budget_list + + + """ + pass + + def test_watch_policy_v1alpha1_pod_disruption_budget_list_for_all_namespaces(self): + """ + Test case for watch_policy_v1alpha1_pod_disruption_budget_list_for_all_namespaces + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_rbac_authorization_api.py b/test/test_rbac_authorization_api.py new file mode 100644 index 000000000..648da8a9e --- /dev/null +++ b/test/test_rbac_authorization_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.rbac_authorization_api import RbacAuthorizationApi + + +class TestRbacAuthorizationApi(unittest.TestCase): + """ RbacAuthorizationApi unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.rbac_authorization_api.RbacAuthorizationApi() + + def tearDown(self): + pass + + def test_get_rbac_authorization_api_group(self): + """ + Test case for get_rbac_authorization_api_group + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_rbac_authorization_v1alpha1_api.py b/test/test_rbac_authorization_v1alpha1_api.py new file mode 100644 index 000000000..c3f40a937 --- /dev/null +++ b/test/test_rbac_authorization_v1alpha1_api.py @@ -0,0 +1,375 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.rbac_authorization_v1alpha1_api import RbacAuthorizationV1alpha1Api + + +class TestRbacAuthorizationV1alpha1Api(unittest.TestCase): + """ RbacAuthorizationV1alpha1Api unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.rbac_authorization_v1alpha1_api.RbacAuthorizationV1alpha1Api() + + def tearDown(self): + pass + + def test_create_rbac_authorization_v1alpha1_cluster_role(self): + """ + Test case for create_rbac_authorization_v1alpha1_cluster_role + + + """ + pass + + def test_create_rbac_authorization_v1alpha1_cluster_role_binding(self): + """ + Test case for create_rbac_authorization_v1alpha1_cluster_role_binding + + + """ + pass + + def test_create_rbac_authorization_v1alpha1_namespaced_role(self): + """ + Test case for create_rbac_authorization_v1alpha1_namespaced_role + + + """ + pass + + def test_create_rbac_authorization_v1alpha1_namespaced_role_binding(self): + """ + Test case for create_rbac_authorization_v1alpha1_namespaced_role_binding + + + """ + pass + + def test_delete_rbac_authorization_v1alpha1_cluster_role(self): + """ + Test case for delete_rbac_authorization_v1alpha1_cluster_role + + + """ + pass + + def test_delete_rbac_authorization_v1alpha1_cluster_role_binding(self): + """ + Test case for delete_rbac_authorization_v1alpha1_cluster_role_binding + + + """ + pass + + def test_delete_rbac_authorization_v1alpha1_collection_cluster_role(self): + """ + Test case for delete_rbac_authorization_v1alpha1_collection_cluster_role + + + """ + pass + + def test_delete_rbac_authorization_v1alpha1_collection_cluster_role_binding(self): + """ + Test case for delete_rbac_authorization_v1alpha1_collection_cluster_role_binding + + + """ + pass + + def test_delete_rbac_authorization_v1alpha1_collection_namespaced_role(self): + """ + Test case for delete_rbac_authorization_v1alpha1_collection_namespaced_role + + + """ + pass + + def test_delete_rbac_authorization_v1alpha1_collection_namespaced_role_binding(self): + """ + Test case for delete_rbac_authorization_v1alpha1_collection_namespaced_role_binding + + + """ + pass + + def test_delete_rbac_authorization_v1alpha1_namespaced_role(self): + """ + Test case for delete_rbac_authorization_v1alpha1_namespaced_role + + + """ + pass + + def test_delete_rbac_authorization_v1alpha1_namespaced_role_binding(self): + """ + Test case for delete_rbac_authorization_v1alpha1_namespaced_role_binding + + + """ + pass + + def test_get_rbac_authorization_v1alpha1_api_resources(self): + """ + Test case for get_rbac_authorization_v1alpha1_api_resources + + + """ + pass + + def test_list_rbac_authorization_v1alpha1_cluster_role(self): + """ + Test case for list_rbac_authorization_v1alpha1_cluster_role + + + """ + pass + + def test_list_rbac_authorization_v1alpha1_cluster_role_binding(self): + """ + Test case for list_rbac_authorization_v1alpha1_cluster_role_binding + + + """ + pass + + def test_list_rbac_authorization_v1alpha1_namespaced_role(self): + """ + Test case for list_rbac_authorization_v1alpha1_namespaced_role + + + """ + pass + + def test_list_rbac_authorization_v1alpha1_namespaced_role_binding(self): + """ + Test case for list_rbac_authorization_v1alpha1_namespaced_role_binding + + + """ + pass + + def test_list_rbac_authorization_v1alpha1_role_binding_for_all_namespaces(self): + """ + Test case for list_rbac_authorization_v1alpha1_role_binding_for_all_namespaces + + + """ + pass + + def test_list_rbac_authorization_v1alpha1_role_for_all_namespaces(self): + """ + Test case for list_rbac_authorization_v1alpha1_role_for_all_namespaces + + + """ + pass + + def test_patch_rbac_authorization_v1alpha1_cluster_role(self): + """ + Test case for patch_rbac_authorization_v1alpha1_cluster_role + + + """ + pass + + def test_patch_rbac_authorization_v1alpha1_cluster_role_binding(self): + """ + Test case for patch_rbac_authorization_v1alpha1_cluster_role_binding + + + """ + pass + + def test_patch_rbac_authorization_v1alpha1_namespaced_role(self): + """ + Test case for patch_rbac_authorization_v1alpha1_namespaced_role + + + """ + pass + + def test_patch_rbac_authorization_v1alpha1_namespaced_role_binding(self): + """ + Test case for patch_rbac_authorization_v1alpha1_namespaced_role_binding + + + """ + pass + + def test_read_rbac_authorization_v1alpha1_cluster_role(self): + """ + Test case for read_rbac_authorization_v1alpha1_cluster_role + + + """ + pass + + def test_read_rbac_authorization_v1alpha1_cluster_role_binding(self): + """ + Test case for read_rbac_authorization_v1alpha1_cluster_role_binding + + + """ + pass + + def test_read_rbac_authorization_v1alpha1_namespaced_role(self): + """ + Test case for read_rbac_authorization_v1alpha1_namespaced_role + + + """ + pass + + def test_read_rbac_authorization_v1alpha1_namespaced_role_binding(self): + """ + Test case for read_rbac_authorization_v1alpha1_namespaced_role_binding + + + """ + pass + + def test_replace_rbac_authorization_v1alpha1_cluster_role(self): + """ + Test case for replace_rbac_authorization_v1alpha1_cluster_role + + + """ + pass + + def test_replace_rbac_authorization_v1alpha1_cluster_role_binding(self): + """ + Test case for replace_rbac_authorization_v1alpha1_cluster_role_binding + + + """ + pass + + def test_replace_rbac_authorization_v1alpha1_namespaced_role(self): + """ + Test case for replace_rbac_authorization_v1alpha1_namespaced_role + + + """ + pass + + def test_replace_rbac_authorization_v1alpha1_namespaced_role_binding(self): + """ + Test case for replace_rbac_authorization_v1alpha1_namespaced_role_binding + + + """ + pass + + def test_watch_rbac_authorization_v1alpha1_cluster_role(self): + """ + Test case for watch_rbac_authorization_v1alpha1_cluster_role + + + """ + pass + + def test_watch_rbac_authorization_v1alpha1_cluster_role_binding(self): + """ + Test case for watch_rbac_authorization_v1alpha1_cluster_role_binding + + + """ + pass + + def test_watch_rbac_authorization_v1alpha1_cluster_role_binding_list(self): + """ + Test case for watch_rbac_authorization_v1alpha1_cluster_role_binding_list + + + """ + pass + + def test_watch_rbac_authorization_v1alpha1_cluster_role_list(self): + """ + Test case for watch_rbac_authorization_v1alpha1_cluster_role_list + + + """ + pass + + def test_watch_rbac_authorization_v1alpha1_namespaced_role(self): + """ + Test case for watch_rbac_authorization_v1alpha1_namespaced_role + + + """ + pass + + def test_watch_rbac_authorization_v1alpha1_namespaced_role_binding(self): + """ + Test case for watch_rbac_authorization_v1alpha1_namespaced_role_binding + + + """ + pass + + def test_watch_rbac_authorization_v1alpha1_namespaced_role_binding_list(self): + """ + Test case for watch_rbac_authorization_v1alpha1_namespaced_role_binding_list + + + """ + pass + + def test_watch_rbac_authorization_v1alpha1_namespaced_role_list(self): + """ + Test case for watch_rbac_authorization_v1alpha1_namespaced_role_list + + + """ + pass + + def test_watch_rbac_authorization_v1alpha1_role_binding_list_for_all_namespaces(self): + """ + Test case for watch_rbac_authorization_v1alpha1_role_binding_list_for_all_namespaces + + + """ + pass + + def test_watch_rbac_authorization_v1alpha1_role_list_for_all_namespaces(self): + """ + Test case for watch_rbac_authorization_v1alpha1_role_list_for_all_namespaces + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_resource_quantity.py b/test/test_resource_quantity.py new file mode 100644 index 000000000..7b026ea19 --- /dev/null +++ b/test/test_resource_quantity.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.resource_quantity import ResourceQuantity + + +class TestResourceQuantity(unittest.TestCase): + """ ResourceQuantity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResourceQuantity(self): + """ + Test ResourceQuantity + """ + model = k8sclient.models.resource_quantity.ResourceQuantity() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_runtime_raw_extension.py b/test/test_runtime_raw_extension.py new file mode 100644 index 000000000..df0bd8e1f --- /dev/null +++ b/test/test_runtime_raw_extension.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.runtime_raw_extension import RuntimeRawExtension + + +class TestRuntimeRawExtension(unittest.TestCase): + """ RuntimeRawExtension unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRuntimeRawExtension(self): + """ + Test RuntimeRawExtension + """ + model = k8sclient.models.runtime_raw_extension.RuntimeRawExtension() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_storage_api.py b/test/test_storage_api.py new file mode 100644 index 000000000..d6b1788b2 --- /dev/null +++ b/test/test_storage_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.storage_api import StorageApi + + +class TestStorageApi(unittest.TestCase): + """ StorageApi unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.storage_api.StorageApi() + + def tearDown(self): + pass + + def test_get_storage_api_group(self): + """ + Test case for get_storage_api_group + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_storage_v1beta1_api.py b/test/test_storage_v1beta1_api.py new file mode 100644 index 000000000..412522218 --- /dev/null +++ b/test/test_storage_v1beta1_api.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.storage_v1beta1_api import StorageV1beta1Api + + +class TestStorageV1beta1Api(unittest.TestCase): + """ StorageV1beta1Api unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.storage_v1beta1_api.StorageV1beta1Api() + + def tearDown(self): + pass + + def test_create_storage_v1beta1_storage_class(self): + """ + Test case for create_storage_v1beta1_storage_class + + + """ + pass + + def test_delete_storage_v1beta1_collection_storage_class(self): + """ + Test case for delete_storage_v1beta1_collection_storage_class + + + """ + pass + + def test_delete_storage_v1beta1_storage_class(self): + """ + Test case for delete_storage_v1beta1_storage_class + + + """ + pass + + def test_get_storage_v1beta1_api_resources(self): + """ + Test case for get_storage_v1beta1_api_resources + + + """ + pass + + def test_list_storage_v1beta1_storage_class(self): + """ + Test case for list_storage_v1beta1_storage_class + + + """ + pass + + def test_patch_storage_v1beta1_storage_class(self): + """ + Test case for patch_storage_v1beta1_storage_class + + + """ + pass + + def test_read_storage_v1beta1_storage_class(self): + """ + Test case for read_storage_v1beta1_storage_class + + + """ + pass + + def test_replace_storage_v1beta1_storage_class(self): + """ + Test case for replace_storage_v1beta1_storage_class + + + """ + pass + + def test_watch_storage_v1beta1_storage_class(self): + """ + Test case for watch_storage_v1beta1_storage_class + + + """ + pass + + def test_watch_storage_v1beta1_storage_class_list(self): + """ + Test case for watch_storage_v1beta1_storage_class_list + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_unversioned_api_group.py b/test/test_unversioned_api_group.py new file mode 100644 index 000000000..e7f7323b6 --- /dev/null +++ b/test/test_unversioned_api_group.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.unversioned_api_group import UnversionedAPIGroup + + +class TestUnversionedAPIGroup(unittest.TestCase): + """ UnversionedAPIGroup unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedAPIGroup(self): + """ + Test UnversionedAPIGroup + """ + model = k8sclient.models.unversioned_api_group.UnversionedAPIGroup() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_unversioned_api_group_list.py b/test/test_unversioned_api_group_list.py new file mode 100644 index 000000000..dbab2fd82 --- /dev/null +++ b/test/test_unversioned_api_group_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.unversioned_api_group_list import UnversionedAPIGroupList + + +class TestUnversionedAPIGroupList(unittest.TestCase): + """ UnversionedAPIGroupList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedAPIGroupList(self): + """ + Test UnversionedAPIGroupList + """ + model = k8sclient.models.unversioned_api_group_list.UnversionedAPIGroupList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_unversioned_api_resource.py b/test/test_unversioned_api_resource.py new file mode 100644 index 000000000..f28580cbf --- /dev/null +++ b/test/test_unversioned_api_resource.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.unversioned_api_resource import UnversionedAPIResource + + +class TestUnversionedAPIResource(unittest.TestCase): + """ UnversionedAPIResource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedAPIResource(self): + """ + Test UnversionedAPIResource + """ + model = k8sclient.models.unversioned_api_resource.UnversionedAPIResource() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_unversioned_api_resource_list.py b/test/test_unversioned_api_resource_list.py new file mode 100644 index 000000000..31fbfb9c5 --- /dev/null +++ b/test/test_unversioned_api_resource_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.unversioned_api_resource_list import UnversionedAPIResourceList + + +class TestUnversionedAPIResourceList(unittest.TestCase): + """ UnversionedAPIResourceList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedAPIResourceList(self): + """ + Test UnversionedAPIResourceList + """ + model = k8sclient.models.unversioned_api_resource_list.UnversionedAPIResourceList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_unversioned_api_versions.py b/test/test_unversioned_api_versions.py new file mode 100644 index 000000000..84b9bc082 --- /dev/null +++ b/test/test_unversioned_api_versions.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.unversioned_api_versions import UnversionedAPIVersions + + +class TestUnversionedAPIVersions(unittest.TestCase): + """ UnversionedAPIVersions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedAPIVersions(self): + """ + Test UnversionedAPIVersions + """ + model = k8sclient.models.unversioned_api_versions.UnversionedAPIVersions() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_unversioned_group_version_for_discovery.py b/test/test_unversioned_group_version_for_discovery.py new file mode 100644 index 000000000..4be91385d --- /dev/null +++ b/test/test_unversioned_group_version_for_discovery.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.unversioned_group_version_for_discovery import UnversionedGroupVersionForDiscovery + + +class TestUnversionedGroupVersionForDiscovery(unittest.TestCase): + """ UnversionedGroupVersionForDiscovery unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedGroupVersionForDiscovery(self): + """ + Test UnversionedGroupVersionForDiscovery + """ + model = k8sclient.models.unversioned_group_version_for_discovery.UnversionedGroupVersionForDiscovery() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_unversioned_label_selector.py b/test/test_unversioned_label_selector.py new file mode 100644 index 000000000..3483ebbc5 --- /dev/null +++ b/test/test_unversioned_label_selector.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.unversioned_label_selector import UnversionedLabelSelector + + +class TestUnversionedLabelSelector(unittest.TestCase): + """ UnversionedLabelSelector unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedLabelSelector(self): + """ + Test UnversionedLabelSelector + """ + model = k8sclient.models.unversioned_label_selector.UnversionedLabelSelector() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_unversioned_label_selector_requirement.py b/test/test_unversioned_label_selector_requirement.py new file mode 100644 index 000000000..2fc624ab1 --- /dev/null +++ b/test/test_unversioned_label_selector_requirement.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.unversioned_label_selector_requirement import UnversionedLabelSelectorRequirement + + +class TestUnversionedLabelSelectorRequirement(unittest.TestCase): + """ UnversionedLabelSelectorRequirement unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedLabelSelectorRequirement(self): + """ + Test UnversionedLabelSelectorRequirement + """ + model = k8sclient.models.unversioned_label_selector_requirement.UnversionedLabelSelectorRequirement() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_unversioned_list_meta.py b/test/test_unversioned_list_meta.py new file mode 100644 index 000000000..d8513b64c --- /dev/null +++ b/test/test_unversioned_list_meta.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.unversioned_list_meta import UnversionedListMeta + + +class TestUnversionedListMeta(unittest.TestCase): + """ UnversionedListMeta unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedListMeta(self): + """ + Test UnversionedListMeta + """ + model = k8sclient.models.unversioned_list_meta.UnversionedListMeta() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_unversioned_server_address_by_client_cidr.py b/test/test_unversioned_server_address_by_client_cidr.py new file mode 100644 index 000000000..6f0764a92 --- /dev/null +++ b/test/test_unversioned_server_address_by_client_cidr.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.unversioned_server_address_by_client_cidr import UnversionedServerAddressByClientCIDR + + +class TestUnversionedServerAddressByClientCIDR(unittest.TestCase): + """ UnversionedServerAddressByClientCIDR unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedServerAddressByClientCIDR(self): + """ + Test UnversionedServerAddressByClientCIDR + """ + model = k8sclient.models.unversioned_server_address_by_client_cidr.UnversionedServerAddressByClientCIDR() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_unversioned_status.py b/test/test_unversioned_status.py new file mode 100644 index 000000000..cb75f8fe6 --- /dev/null +++ b/test/test_unversioned_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.unversioned_status import UnversionedStatus + + +class TestUnversionedStatus(unittest.TestCase): + """ UnversionedStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedStatus(self): + """ + Test UnversionedStatus + """ + model = k8sclient.models.unversioned_status.UnversionedStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_unversioned_status_cause.py b/test/test_unversioned_status_cause.py new file mode 100644 index 000000000..5ba022565 --- /dev/null +++ b/test/test_unversioned_status_cause.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.unversioned_status_cause import UnversionedStatusCause + + +class TestUnversionedStatusCause(unittest.TestCase): + """ UnversionedStatusCause unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedStatusCause(self): + """ + Test UnversionedStatusCause + """ + model = k8sclient.models.unversioned_status_cause.UnversionedStatusCause() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_unversioned_status_details.py b/test/test_unversioned_status_details.py new file mode 100644 index 000000000..30714627c --- /dev/null +++ b/test/test_unversioned_status_details.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.unversioned_status_details import UnversionedStatusDetails + + +class TestUnversionedStatusDetails(unittest.TestCase): + """ UnversionedStatusDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedStatusDetails(self): + """ + Test UnversionedStatusDetails + """ + model = k8sclient.models.unversioned_status_details.UnversionedStatusDetails() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_unversioned_time.py b/test/test_unversioned_time.py new file mode 100644 index 000000000..830975614 --- /dev/null +++ b/test/test_unversioned_time.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.unversioned_time import UnversionedTime + + +class TestUnversionedTime(unittest.TestCase): + """ UnversionedTime unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedTime(self): + """ + Test UnversionedTime + """ + model = k8sclient.models.unversioned_time.UnversionedTime() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_attached_volume.py b/test/test_v1_attached_volume.py new file mode 100644 index 000000000..3dfe54502 --- /dev/null +++ b/test/test_v1_attached_volume.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_attached_volume import V1AttachedVolume + + +class TestV1AttachedVolume(unittest.TestCase): + """ V1AttachedVolume unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1AttachedVolume(self): + """ + Test V1AttachedVolume + """ + model = k8sclient.models.v1_attached_volume.V1AttachedVolume() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_binding.py b/test/test_v1_binding.py new file mode 100644 index 000000000..654ab658d --- /dev/null +++ b/test/test_v1_binding.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_binding import V1Binding + + +class TestV1Binding(unittest.TestCase): + """ V1Binding unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Binding(self): + """ + Test V1Binding + """ + model = k8sclient.models.v1_binding.V1Binding() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_capabilities.py b/test/test_v1_capabilities.py new file mode 100644 index 000000000..c01e7e2d6 --- /dev/null +++ b/test/test_v1_capabilities.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_capabilities import V1Capabilities + + +class TestV1Capabilities(unittest.TestCase): + """ V1Capabilities unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Capabilities(self): + """ + Test V1Capabilities + """ + model = k8sclient.models.v1_capabilities.V1Capabilities() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_component_condition.py b/test/test_v1_component_condition.py new file mode 100644 index 000000000..d1a768bf5 --- /dev/null +++ b/test/test_v1_component_condition.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_component_condition import V1ComponentCondition + + +class TestV1ComponentCondition(unittest.TestCase): + """ V1ComponentCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ComponentCondition(self): + """ + Test V1ComponentCondition + """ + model = k8sclient.models.v1_component_condition.V1ComponentCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_component_status.py b/test/test_v1_component_status.py new file mode 100644 index 000000000..7b9a14f01 --- /dev/null +++ b/test/test_v1_component_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_component_status import V1ComponentStatus + + +class TestV1ComponentStatus(unittest.TestCase): + """ V1ComponentStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ComponentStatus(self): + """ + Test V1ComponentStatus + """ + model = k8sclient.models.v1_component_status.V1ComponentStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_component_status_list.py b/test/test_v1_component_status_list.py new file mode 100644 index 000000000..6ef153517 --- /dev/null +++ b/test/test_v1_component_status_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_component_status_list import V1ComponentStatusList + + +class TestV1ComponentStatusList(unittest.TestCase): + """ V1ComponentStatusList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ComponentStatusList(self): + """ + Test V1ComponentStatusList + """ + model = k8sclient.models.v1_component_status_list.V1ComponentStatusList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_config_map.py b/test/test_v1_config_map.py new file mode 100644 index 000000000..b2f7611f2 --- /dev/null +++ b/test/test_v1_config_map.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_config_map import V1ConfigMap + + +class TestV1ConfigMap(unittest.TestCase): + """ V1ConfigMap unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ConfigMap(self): + """ + Test V1ConfigMap + """ + model = k8sclient.models.v1_config_map.V1ConfigMap() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_config_map_key_selector.py b/test/test_v1_config_map_key_selector.py new file mode 100644 index 000000000..620a3d865 --- /dev/null +++ b/test/test_v1_config_map_key_selector.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_config_map_key_selector import V1ConfigMapKeySelector + + +class TestV1ConfigMapKeySelector(unittest.TestCase): + """ V1ConfigMapKeySelector unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ConfigMapKeySelector(self): + """ + Test V1ConfigMapKeySelector + """ + model = k8sclient.models.v1_config_map_key_selector.V1ConfigMapKeySelector() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_config_map_list.py b/test/test_v1_config_map_list.py new file mode 100644 index 000000000..e768d657c --- /dev/null +++ b/test/test_v1_config_map_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_config_map_list import V1ConfigMapList + + +class TestV1ConfigMapList(unittest.TestCase): + """ V1ConfigMapList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ConfigMapList(self): + """ + Test V1ConfigMapList + """ + model = k8sclient.models.v1_config_map_list.V1ConfigMapList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_container.py b/test/test_v1_container.py new file mode 100644 index 000000000..cc880a463 --- /dev/null +++ b/test/test_v1_container.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_container import V1Container + + +class TestV1Container(unittest.TestCase): + """ V1Container unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Container(self): + """ + Test V1Container + """ + model = k8sclient.models.v1_container.V1Container() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_container_image.py b/test/test_v1_container_image.py new file mode 100644 index 000000000..0ce1b4265 --- /dev/null +++ b/test/test_v1_container_image.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_container_image import V1ContainerImage + + +class TestV1ContainerImage(unittest.TestCase): + """ V1ContainerImage unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ContainerImage(self): + """ + Test V1ContainerImage + """ + model = k8sclient.models.v1_container_image.V1ContainerImage() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_container_port.py b/test/test_v1_container_port.py new file mode 100644 index 000000000..ced516731 --- /dev/null +++ b/test/test_v1_container_port.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_container_port import V1ContainerPort + + +class TestV1ContainerPort(unittest.TestCase): + """ V1ContainerPort unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ContainerPort(self): + """ + Test V1ContainerPort + """ + model = k8sclient.models.v1_container_port.V1ContainerPort() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_container_state.py b/test/test_v1_container_state.py new file mode 100644 index 000000000..23019fd39 --- /dev/null +++ b/test/test_v1_container_state.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_container_state import V1ContainerState + + +class TestV1ContainerState(unittest.TestCase): + """ V1ContainerState unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ContainerState(self): + """ + Test V1ContainerState + """ + model = k8sclient.models.v1_container_state.V1ContainerState() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_container_state_running.py b/test/test_v1_container_state_running.py new file mode 100644 index 000000000..982c20e6c --- /dev/null +++ b/test/test_v1_container_state_running.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_container_state_running import V1ContainerStateRunning + + +class TestV1ContainerStateRunning(unittest.TestCase): + """ V1ContainerStateRunning unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ContainerStateRunning(self): + """ + Test V1ContainerStateRunning + """ + model = k8sclient.models.v1_container_state_running.V1ContainerStateRunning() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_container_state_terminated.py b/test/test_v1_container_state_terminated.py new file mode 100644 index 000000000..114720b5b --- /dev/null +++ b/test/test_v1_container_state_terminated.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_container_state_terminated import V1ContainerStateTerminated + + +class TestV1ContainerStateTerminated(unittest.TestCase): + """ V1ContainerStateTerminated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ContainerStateTerminated(self): + """ + Test V1ContainerStateTerminated + """ + model = k8sclient.models.v1_container_state_terminated.V1ContainerStateTerminated() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_container_state_waiting.py b/test/test_v1_container_state_waiting.py new file mode 100644 index 000000000..5a8a6b7cf --- /dev/null +++ b/test/test_v1_container_state_waiting.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_container_state_waiting import V1ContainerStateWaiting + + +class TestV1ContainerStateWaiting(unittest.TestCase): + """ V1ContainerStateWaiting unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ContainerStateWaiting(self): + """ + Test V1ContainerStateWaiting + """ + model = k8sclient.models.v1_container_state_waiting.V1ContainerStateWaiting() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_container_status.py b/test/test_v1_container_status.py new file mode 100644 index 000000000..279bde590 --- /dev/null +++ b/test/test_v1_container_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_container_status import V1ContainerStatus + + +class TestV1ContainerStatus(unittest.TestCase): + """ V1ContainerStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ContainerStatus(self): + """ + Test V1ContainerStatus + """ + model = k8sclient.models.v1_container_status.V1ContainerStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_cross_version_object_reference.py b/test/test_v1_cross_version_object_reference.py new file mode 100644 index 000000000..d8f433986 --- /dev/null +++ b/test/test_v1_cross_version_object_reference.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_cross_version_object_reference import V1CrossVersionObjectReference + + +class TestV1CrossVersionObjectReference(unittest.TestCase): + """ V1CrossVersionObjectReference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1CrossVersionObjectReference(self): + """ + Test V1CrossVersionObjectReference + """ + model = k8sclient.models.v1_cross_version_object_reference.V1CrossVersionObjectReference() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_daemon_endpoint.py b/test/test_v1_daemon_endpoint.py new file mode 100644 index 000000000..3cfef0ed5 --- /dev/null +++ b/test/test_v1_daemon_endpoint.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_daemon_endpoint import V1DaemonEndpoint + + +class TestV1DaemonEndpoint(unittest.TestCase): + """ V1DaemonEndpoint unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DaemonEndpoint(self): + """ + Test V1DaemonEndpoint + """ + model = k8sclient.models.v1_daemon_endpoint.V1DaemonEndpoint() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_delete_options.py b/test/test_v1_delete_options.py new file mode 100644 index 000000000..516a7bc81 --- /dev/null +++ b/test/test_v1_delete_options.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_delete_options import V1DeleteOptions + + +class TestV1DeleteOptions(unittest.TestCase): + """ V1DeleteOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeleteOptions(self): + """ + Test V1DeleteOptions + """ + model = k8sclient.models.v1_delete_options.V1DeleteOptions() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_endpoint_address.py b/test/test_v1_endpoint_address.py new file mode 100644 index 000000000..e27cfe635 --- /dev/null +++ b/test/test_v1_endpoint_address.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_endpoint_address import V1EndpointAddress + + +class TestV1EndpointAddress(unittest.TestCase): + """ V1EndpointAddress unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EndpointAddress(self): + """ + Test V1EndpointAddress + """ + model = k8sclient.models.v1_endpoint_address.V1EndpointAddress() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_endpoint_port.py b/test/test_v1_endpoint_port.py new file mode 100644 index 000000000..ba3662ad2 --- /dev/null +++ b/test/test_v1_endpoint_port.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_endpoint_port import V1EndpointPort + + +class TestV1EndpointPort(unittest.TestCase): + """ V1EndpointPort unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EndpointPort(self): + """ + Test V1EndpointPort + """ + model = k8sclient.models.v1_endpoint_port.V1EndpointPort() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_endpoint_subset.py b/test/test_v1_endpoint_subset.py new file mode 100644 index 000000000..1295ec98c --- /dev/null +++ b/test/test_v1_endpoint_subset.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_endpoint_subset import V1EndpointSubset + + +class TestV1EndpointSubset(unittest.TestCase): + """ V1EndpointSubset unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EndpointSubset(self): + """ + Test V1EndpointSubset + """ + model = k8sclient.models.v1_endpoint_subset.V1EndpointSubset() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_endpoints.py b/test/test_v1_endpoints.py new file mode 100644 index 000000000..101b25707 --- /dev/null +++ b/test/test_v1_endpoints.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_endpoints import V1Endpoints + + +class TestV1Endpoints(unittest.TestCase): + """ V1Endpoints unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Endpoints(self): + """ + Test V1Endpoints + """ + model = k8sclient.models.v1_endpoints.V1Endpoints() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_endpoints_list.py b/test/test_v1_endpoints_list.py new file mode 100644 index 000000000..fa1f16f26 --- /dev/null +++ b/test/test_v1_endpoints_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_endpoints_list import V1EndpointsList + + +class TestV1EndpointsList(unittest.TestCase): + """ V1EndpointsList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EndpointsList(self): + """ + Test V1EndpointsList + """ + model = k8sclient.models.v1_endpoints_list.V1EndpointsList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_env_var.py b/test/test_v1_env_var.py new file mode 100644 index 000000000..478197921 --- /dev/null +++ b/test/test_v1_env_var.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_env_var import V1EnvVar + + +class TestV1EnvVar(unittest.TestCase): + """ V1EnvVar unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EnvVar(self): + """ + Test V1EnvVar + """ + model = k8sclient.models.v1_env_var.V1EnvVar() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_env_var_source.py b/test/test_v1_env_var_source.py new file mode 100644 index 000000000..5ce816b4c --- /dev/null +++ b/test/test_v1_env_var_source.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_env_var_source import V1EnvVarSource + + +class TestV1EnvVarSource(unittest.TestCase): + """ V1EnvVarSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EnvVarSource(self): + """ + Test V1EnvVarSource + """ + model = k8sclient.models.v1_env_var_source.V1EnvVarSource() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_event.py b/test/test_v1_event.py new file mode 100644 index 000000000..908ee30e4 --- /dev/null +++ b/test/test_v1_event.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_event import V1Event + + +class TestV1Event(unittest.TestCase): + """ V1Event unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Event(self): + """ + Test V1Event + """ + model = k8sclient.models.v1_event.V1Event() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_event_list.py b/test/test_v1_event_list.py new file mode 100644 index 000000000..cdc2df706 --- /dev/null +++ b/test/test_v1_event_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_event_list import V1EventList + + +class TestV1EventList(unittest.TestCase): + """ V1EventList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EventList(self): + """ + Test V1EventList + """ + model = k8sclient.models.v1_event_list.V1EventList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_event_source.py b/test/test_v1_event_source.py new file mode 100644 index 000000000..2b46f76d8 --- /dev/null +++ b/test/test_v1_event_source.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_event_source import V1EventSource + + +class TestV1EventSource(unittest.TestCase): + """ V1EventSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EventSource(self): + """ + Test V1EventSource + """ + model = k8sclient.models.v1_event_source.V1EventSource() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_exec_action.py b/test/test_v1_exec_action.py new file mode 100644 index 000000000..ac7c206a3 --- /dev/null +++ b/test/test_v1_exec_action.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_exec_action import V1ExecAction + + +class TestV1ExecAction(unittest.TestCase): + """ V1ExecAction unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ExecAction(self): + """ + Test V1ExecAction + """ + model = k8sclient.models.v1_exec_action.V1ExecAction() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_handler.py b/test/test_v1_handler.py new file mode 100644 index 000000000..865bbb01d --- /dev/null +++ b/test/test_v1_handler.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_handler import V1Handler + + +class TestV1Handler(unittest.TestCase): + """ V1Handler unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Handler(self): + """ + Test V1Handler + """ + model = k8sclient.models.v1_handler.V1Handler() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_horizontal_pod_autoscaler.py b/test/test_v1_horizontal_pod_autoscaler.py new file mode 100644 index 000000000..1049cc891 --- /dev/null +++ b/test/test_v1_horizontal_pod_autoscaler.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_horizontal_pod_autoscaler import V1HorizontalPodAutoscaler + + +class TestV1HorizontalPodAutoscaler(unittest.TestCase): + """ V1HorizontalPodAutoscaler unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HorizontalPodAutoscaler(self): + """ + Test V1HorizontalPodAutoscaler + """ + model = k8sclient.models.v1_horizontal_pod_autoscaler.V1HorizontalPodAutoscaler() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_horizontal_pod_autoscaler_list.py b/test/test_v1_horizontal_pod_autoscaler_list.py new file mode 100644 index 000000000..ea3dd008f --- /dev/null +++ b/test/test_v1_horizontal_pod_autoscaler_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_horizontal_pod_autoscaler_list import V1HorizontalPodAutoscalerList + + +class TestV1HorizontalPodAutoscalerList(unittest.TestCase): + """ V1HorizontalPodAutoscalerList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HorizontalPodAutoscalerList(self): + """ + Test V1HorizontalPodAutoscalerList + """ + model = k8sclient.models.v1_horizontal_pod_autoscaler_list.V1HorizontalPodAutoscalerList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_horizontal_pod_autoscaler_spec.py b/test/test_v1_horizontal_pod_autoscaler_spec.py new file mode 100644 index 000000000..feb62894b --- /dev/null +++ b/test/test_v1_horizontal_pod_autoscaler_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_horizontal_pod_autoscaler_spec import V1HorizontalPodAutoscalerSpec + + +class TestV1HorizontalPodAutoscalerSpec(unittest.TestCase): + """ V1HorizontalPodAutoscalerSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HorizontalPodAutoscalerSpec(self): + """ + Test V1HorizontalPodAutoscalerSpec + """ + model = k8sclient.models.v1_horizontal_pod_autoscaler_spec.V1HorizontalPodAutoscalerSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_horizontal_pod_autoscaler_status.py b/test/test_v1_horizontal_pod_autoscaler_status.py new file mode 100644 index 000000000..22ced06dd --- /dev/null +++ b/test/test_v1_horizontal_pod_autoscaler_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_horizontal_pod_autoscaler_status import V1HorizontalPodAutoscalerStatus + + +class TestV1HorizontalPodAutoscalerStatus(unittest.TestCase): + """ V1HorizontalPodAutoscalerStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HorizontalPodAutoscalerStatus(self): + """ + Test V1HorizontalPodAutoscalerStatus + """ + model = k8sclient.models.v1_horizontal_pod_autoscaler_status.V1HorizontalPodAutoscalerStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_http_get_action.py b/test/test_v1_http_get_action.py new file mode 100644 index 000000000..fb87e54d2 --- /dev/null +++ b/test/test_v1_http_get_action.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_http_get_action import V1HTTPGetAction + + +class TestV1HTTPGetAction(unittest.TestCase): + """ V1HTTPGetAction unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HTTPGetAction(self): + """ + Test V1HTTPGetAction + """ + model = k8sclient.models.v1_http_get_action.V1HTTPGetAction() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_http_header.py b/test/test_v1_http_header.py new file mode 100644 index 000000000..6674752ec --- /dev/null +++ b/test/test_v1_http_header.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_http_header import V1HTTPHeader + + +class TestV1HTTPHeader(unittest.TestCase): + """ V1HTTPHeader unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HTTPHeader(self): + """ + Test V1HTTPHeader + """ + model = k8sclient.models.v1_http_header.V1HTTPHeader() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_job.py b/test/test_v1_job.py new file mode 100644 index 000000000..2a33786b9 --- /dev/null +++ b/test/test_v1_job.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_job import V1Job + + +class TestV1Job(unittest.TestCase): + """ V1Job unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Job(self): + """ + Test V1Job + """ + model = k8sclient.models.v1_job.V1Job() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_job_condition.py b/test/test_v1_job_condition.py new file mode 100644 index 000000000..5e9bcc1a6 --- /dev/null +++ b/test/test_v1_job_condition.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_job_condition import V1JobCondition + + +class TestV1JobCondition(unittest.TestCase): + """ V1JobCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1JobCondition(self): + """ + Test V1JobCondition + """ + model = k8sclient.models.v1_job_condition.V1JobCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_job_list.py b/test/test_v1_job_list.py new file mode 100644 index 000000000..4969444a6 --- /dev/null +++ b/test/test_v1_job_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_job_list import V1JobList + + +class TestV1JobList(unittest.TestCase): + """ V1JobList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1JobList(self): + """ + Test V1JobList + """ + model = k8sclient.models.v1_job_list.V1JobList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_job_spec.py b/test/test_v1_job_spec.py new file mode 100644 index 000000000..d145b65b8 --- /dev/null +++ b/test/test_v1_job_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_job_spec import V1JobSpec + + +class TestV1JobSpec(unittest.TestCase): + """ V1JobSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1JobSpec(self): + """ + Test V1JobSpec + """ + model = k8sclient.models.v1_job_spec.V1JobSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_job_status.py b/test/test_v1_job_status.py new file mode 100644 index 000000000..fa085decc --- /dev/null +++ b/test/test_v1_job_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_job_status import V1JobStatus + + +class TestV1JobStatus(unittest.TestCase): + """ V1JobStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1JobStatus(self): + """ + Test V1JobStatus + """ + model = k8sclient.models.v1_job_status.V1JobStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_lifecycle.py b/test/test_v1_lifecycle.py new file mode 100644 index 000000000..1fd9de39f --- /dev/null +++ b/test/test_v1_lifecycle.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_lifecycle import V1Lifecycle + + +class TestV1Lifecycle(unittest.TestCase): + """ V1Lifecycle unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Lifecycle(self): + """ + Test V1Lifecycle + """ + model = k8sclient.models.v1_lifecycle.V1Lifecycle() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_limit_range.py b/test/test_v1_limit_range.py new file mode 100644 index 000000000..5eb01ef11 --- /dev/null +++ b/test/test_v1_limit_range.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_limit_range import V1LimitRange + + +class TestV1LimitRange(unittest.TestCase): + """ V1LimitRange unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LimitRange(self): + """ + Test V1LimitRange + """ + model = k8sclient.models.v1_limit_range.V1LimitRange() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_limit_range_item.py b/test/test_v1_limit_range_item.py new file mode 100644 index 000000000..517966af9 --- /dev/null +++ b/test/test_v1_limit_range_item.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_limit_range_item import V1LimitRangeItem + + +class TestV1LimitRangeItem(unittest.TestCase): + """ V1LimitRangeItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LimitRangeItem(self): + """ + Test V1LimitRangeItem + """ + model = k8sclient.models.v1_limit_range_item.V1LimitRangeItem() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_limit_range_list.py b/test/test_v1_limit_range_list.py new file mode 100644 index 000000000..96c272c23 --- /dev/null +++ b/test/test_v1_limit_range_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_limit_range_list import V1LimitRangeList + + +class TestV1LimitRangeList(unittest.TestCase): + """ V1LimitRangeList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LimitRangeList(self): + """ + Test V1LimitRangeList + """ + model = k8sclient.models.v1_limit_range_list.V1LimitRangeList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_limit_range_spec.py b/test/test_v1_limit_range_spec.py new file mode 100644 index 000000000..807342509 --- /dev/null +++ b/test/test_v1_limit_range_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_limit_range_spec import V1LimitRangeSpec + + +class TestV1LimitRangeSpec(unittest.TestCase): + """ V1LimitRangeSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LimitRangeSpec(self): + """ + Test V1LimitRangeSpec + """ + model = k8sclient.models.v1_limit_range_spec.V1LimitRangeSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_load_balancer_ingress.py b/test/test_v1_load_balancer_ingress.py new file mode 100644 index 000000000..144ae013f --- /dev/null +++ b/test/test_v1_load_balancer_ingress.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_load_balancer_ingress import V1LoadBalancerIngress + + +class TestV1LoadBalancerIngress(unittest.TestCase): + """ V1LoadBalancerIngress unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LoadBalancerIngress(self): + """ + Test V1LoadBalancerIngress + """ + model = k8sclient.models.v1_load_balancer_ingress.V1LoadBalancerIngress() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_load_balancer_status.py b/test/test_v1_load_balancer_status.py new file mode 100644 index 000000000..cea9c5b50 --- /dev/null +++ b/test/test_v1_load_balancer_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_load_balancer_status import V1LoadBalancerStatus + + +class TestV1LoadBalancerStatus(unittest.TestCase): + """ V1LoadBalancerStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LoadBalancerStatus(self): + """ + Test V1LoadBalancerStatus + """ + model = k8sclient.models.v1_load_balancer_status.V1LoadBalancerStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_local_object_reference.py b/test/test_v1_local_object_reference.py new file mode 100644 index 000000000..468086ed7 --- /dev/null +++ b/test/test_v1_local_object_reference.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_local_object_reference import V1LocalObjectReference + + +class TestV1LocalObjectReference(unittest.TestCase): + """ V1LocalObjectReference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LocalObjectReference(self): + """ + Test V1LocalObjectReference + """ + model = k8sclient.models.v1_local_object_reference.V1LocalObjectReference() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_namespace.py b/test/test_v1_namespace.py new file mode 100644 index 000000000..9f7d94a0c --- /dev/null +++ b/test/test_v1_namespace.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_namespace import V1Namespace + + +class TestV1Namespace(unittest.TestCase): + """ V1Namespace unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Namespace(self): + """ + Test V1Namespace + """ + model = k8sclient.models.v1_namespace.V1Namespace() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_namespace_list.py b/test/test_v1_namespace_list.py new file mode 100644 index 000000000..f3ff525b3 --- /dev/null +++ b/test/test_v1_namespace_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_namespace_list import V1NamespaceList + + +class TestV1NamespaceList(unittest.TestCase): + """ V1NamespaceList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NamespaceList(self): + """ + Test V1NamespaceList + """ + model = k8sclient.models.v1_namespace_list.V1NamespaceList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_namespace_spec.py b/test/test_v1_namespace_spec.py new file mode 100644 index 000000000..aca61957c --- /dev/null +++ b/test/test_v1_namespace_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_namespace_spec import V1NamespaceSpec + + +class TestV1NamespaceSpec(unittest.TestCase): + """ V1NamespaceSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NamespaceSpec(self): + """ + Test V1NamespaceSpec + """ + model = k8sclient.models.v1_namespace_spec.V1NamespaceSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_namespace_status.py b/test/test_v1_namespace_status.py new file mode 100644 index 000000000..8957c8e6a --- /dev/null +++ b/test/test_v1_namespace_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_namespace_status import V1NamespaceStatus + + +class TestV1NamespaceStatus(unittest.TestCase): + """ V1NamespaceStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NamespaceStatus(self): + """ + Test V1NamespaceStatus + """ + model = k8sclient.models.v1_namespace_status.V1NamespaceStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_node.py b/test/test_v1_node.py new file mode 100644 index 000000000..7bd4bad38 --- /dev/null +++ b/test/test_v1_node.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_node import V1Node + + +class TestV1Node(unittest.TestCase): + """ V1Node unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Node(self): + """ + Test V1Node + """ + model = k8sclient.models.v1_node.V1Node() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_node_address.py b/test/test_v1_node_address.py new file mode 100644 index 000000000..d7a09b14d --- /dev/null +++ b/test/test_v1_node_address.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_node_address import V1NodeAddress + + +class TestV1NodeAddress(unittest.TestCase): + """ V1NodeAddress unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NodeAddress(self): + """ + Test V1NodeAddress + """ + model = k8sclient.models.v1_node_address.V1NodeAddress() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_node_condition.py b/test/test_v1_node_condition.py new file mode 100644 index 000000000..74b8658e3 --- /dev/null +++ b/test/test_v1_node_condition.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_node_condition import V1NodeCondition + + +class TestV1NodeCondition(unittest.TestCase): + """ V1NodeCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NodeCondition(self): + """ + Test V1NodeCondition + """ + model = k8sclient.models.v1_node_condition.V1NodeCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_node_daemon_endpoints.py b/test/test_v1_node_daemon_endpoints.py new file mode 100644 index 000000000..7184a23af --- /dev/null +++ b/test/test_v1_node_daemon_endpoints.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_node_daemon_endpoints import V1NodeDaemonEndpoints + + +class TestV1NodeDaemonEndpoints(unittest.TestCase): + """ V1NodeDaemonEndpoints unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NodeDaemonEndpoints(self): + """ + Test V1NodeDaemonEndpoints + """ + model = k8sclient.models.v1_node_daemon_endpoints.V1NodeDaemonEndpoints() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_node_list.py b/test/test_v1_node_list.py new file mode 100644 index 000000000..6da83947a --- /dev/null +++ b/test/test_v1_node_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_node_list import V1NodeList + + +class TestV1NodeList(unittest.TestCase): + """ V1NodeList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NodeList(self): + """ + Test V1NodeList + """ + model = k8sclient.models.v1_node_list.V1NodeList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_node_spec.py b/test/test_v1_node_spec.py new file mode 100644 index 000000000..45dd3a582 --- /dev/null +++ b/test/test_v1_node_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_node_spec import V1NodeSpec + + +class TestV1NodeSpec(unittest.TestCase): + """ V1NodeSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NodeSpec(self): + """ + Test V1NodeSpec + """ + model = k8sclient.models.v1_node_spec.V1NodeSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_node_status.py b/test/test_v1_node_status.py new file mode 100644 index 000000000..385fc118d --- /dev/null +++ b/test/test_v1_node_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_node_status import V1NodeStatus + + +class TestV1NodeStatus(unittest.TestCase): + """ V1NodeStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NodeStatus(self): + """ + Test V1NodeStatus + """ + model = k8sclient.models.v1_node_status.V1NodeStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_node_system_info.py b/test/test_v1_node_system_info.py new file mode 100644 index 000000000..1e1127a42 --- /dev/null +++ b/test/test_v1_node_system_info.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_node_system_info import V1NodeSystemInfo + + +class TestV1NodeSystemInfo(unittest.TestCase): + """ V1NodeSystemInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NodeSystemInfo(self): + """ + Test V1NodeSystemInfo + """ + model = k8sclient.models.v1_node_system_info.V1NodeSystemInfo() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_object_field_selector.py b/test/test_v1_object_field_selector.py new file mode 100644 index 000000000..45f49c08c --- /dev/null +++ b/test/test_v1_object_field_selector.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_object_field_selector import V1ObjectFieldSelector + + +class TestV1ObjectFieldSelector(unittest.TestCase): + """ V1ObjectFieldSelector unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ObjectFieldSelector(self): + """ + Test V1ObjectFieldSelector + """ + model = k8sclient.models.v1_object_field_selector.V1ObjectFieldSelector() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_object_meta.py b/test/test_v1_object_meta.py new file mode 100644 index 000000000..cef526c61 --- /dev/null +++ b/test/test_v1_object_meta.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_object_meta import V1ObjectMeta + + +class TestV1ObjectMeta(unittest.TestCase): + """ V1ObjectMeta unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ObjectMeta(self): + """ + Test V1ObjectMeta + """ + model = k8sclient.models.v1_object_meta.V1ObjectMeta() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_object_reference.py b/test/test_v1_object_reference.py new file mode 100644 index 000000000..924de2ec9 --- /dev/null +++ b/test/test_v1_object_reference.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_object_reference import V1ObjectReference + + +class TestV1ObjectReference(unittest.TestCase): + """ V1ObjectReference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ObjectReference(self): + """ + Test V1ObjectReference + """ + model = k8sclient.models.v1_object_reference.V1ObjectReference() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_owner_reference.py b/test/test_v1_owner_reference.py new file mode 100644 index 000000000..3a7bd8fe7 --- /dev/null +++ b/test/test_v1_owner_reference.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_owner_reference import V1OwnerReference + + +class TestV1OwnerReference(unittest.TestCase): + """ V1OwnerReference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1OwnerReference(self): + """ + Test V1OwnerReference + """ + model = k8sclient.models.v1_owner_reference.V1OwnerReference() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_persistent_volume.py b/test/test_v1_persistent_volume.py new file mode 100644 index 000000000..a4a5f6d30 --- /dev/null +++ b/test/test_v1_persistent_volume.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_persistent_volume import V1PersistentVolume + + +class TestV1PersistentVolume(unittest.TestCase): + """ V1PersistentVolume unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PersistentVolume(self): + """ + Test V1PersistentVolume + """ + model = k8sclient.models.v1_persistent_volume.V1PersistentVolume() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_persistent_volume_claim.py b/test/test_v1_persistent_volume_claim.py new file mode 100644 index 000000000..68217e085 --- /dev/null +++ b/test/test_v1_persistent_volume_claim.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_persistent_volume_claim import V1PersistentVolumeClaim + + +class TestV1PersistentVolumeClaim(unittest.TestCase): + """ V1PersistentVolumeClaim unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PersistentVolumeClaim(self): + """ + Test V1PersistentVolumeClaim + """ + model = k8sclient.models.v1_persistent_volume_claim.V1PersistentVolumeClaim() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_persistent_volume_claim_list.py b/test/test_v1_persistent_volume_claim_list.py new file mode 100644 index 000000000..46dc9a4c8 --- /dev/null +++ b/test/test_v1_persistent_volume_claim_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_persistent_volume_claim_list import V1PersistentVolumeClaimList + + +class TestV1PersistentVolumeClaimList(unittest.TestCase): + """ V1PersistentVolumeClaimList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PersistentVolumeClaimList(self): + """ + Test V1PersistentVolumeClaimList + """ + model = k8sclient.models.v1_persistent_volume_claim_list.V1PersistentVolumeClaimList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_persistent_volume_claim_spec.py b/test/test_v1_persistent_volume_claim_spec.py new file mode 100644 index 000000000..d6bfe3fa1 --- /dev/null +++ b/test/test_v1_persistent_volume_claim_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec + + +class TestV1PersistentVolumeClaimSpec(unittest.TestCase): + """ V1PersistentVolumeClaimSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PersistentVolumeClaimSpec(self): + """ + Test V1PersistentVolumeClaimSpec + """ + model = k8sclient.models.v1_persistent_volume_claim_spec.V1PersistentVolumeClaimSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_persistent_volume_claim_status.py b/test/test_v1_persistent_volume_claim_status.py new file mode 100644 index 000000000..5bd068980 --- /dev/null +++ b/test/test_v1_persistent_volume_claim_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus + + +class TestV1PersistentVolumeClaimStatus(unittest.TestCase): + """ V1PersistentVolumeClaimStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PersistentVolumeClaimStatus(self): + """ + Test V1PersistentVolumeClaimStatus + """ + model = k8sclient.models.v1_persistent_volume_claim_status.V1PersistentVolumeClaimStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_persistent_volume_list.py b/test/test_v1_persistent_volume_list.py new file mode 100644 index 000000000..d4ee5b097 --- /dev/null +++ b/test/test_v1_persistent_volume_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_persistent_volume_list import V1PersistentVolumeList + + +class TestV1PersistentVolumeList(unittest.TestCase): + """ V1PersistentVolumeList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PersistentVolumeList(self): + """ + Test V1PersistentVolumeList + """ + model = k8sclient.models.v1_persistent_volume_list.V1PersistentVolumeList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_persistent_volume_spec.py b/test/test_v1_persistent_volume_spec.py new file mode 100644 index 000000000..437189a99 --- /dev/null +++ b/test/test_v1_persistent_volume_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_persistent_volume_spec import V1PersistentVolumeSpec + + +class TestV1PersistentVolumeSpec(unittest.TestCase): + """ V1PersistentVolumeSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PersistentVolumeSpec(self): + """ + Test V1PersistentVolumeSpec + """ + model = k8sclient.models.v1_persistent_volume_spec.V1PersistentVolumeSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_persistent_volume_status.py b/test/test_v1_persistent_volume_status.py new file mode 100644 index 000000000..a22b0d778 --- /dev/null +++ b/test/test_v1_persistent_volume_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_persistent_volume_status import V1PersistentVolumeStatus + + +class TestV1PersistentVolumeStatus(unittest.TestCase): + """ V1PersistentVolumeStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PersistentVolumeStatus(self): + """ + Test V1PersistentVolumeStatus + """ + model = k8sclient.models.v1_persistent_volume_status.V1PersistentVolumeStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_pod.py b/test/test_v1_pod.py new file mode 100644 index 000000000..80d8221bd --- /dev/null +++ b/test/test_v1_pod.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_pod import V1Pod + + +class TestV1Pod(unittest.TestCase): + """ V1Pod unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Pod(self): + """ + Test V1Pod + """ + model = k8sclient.models.v1_pod.V1Pod() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_pod_condition.py b/test/test_v1_pod_condition.py new file mode 100644 index 000000000..9276e2708 --- /dev/null +++ b/test/test_v1_pod_condition.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_pod_condition import V1PodCondition + + +class TestV1PodCondition(unittest.TestCase): + """ V1PodCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodCondition(self): + """ + Test V1PodCondition + """ + model = k8sclient.models.v1_pod_condition.V1PodCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_pod_list.py b/test/test_v1_pod_list.py new file mode 100644 index 000000000..dc0690b21 --- /dev/null +++ b/test/test_v1_pod_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_pod_list import V1PodList + + +class TestV1PodList(unittest.TestCase): + """ V1PodList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodList(self): + """ + Test V1PodList + """ + model = k8sclient.models.v1_pod_list.V1PodList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_pod_security_context.py b/test/test_v1_pod_security_context.py new file mode 100644 index 000000000..6df749208 --- /dev/null +++ b/test/test_v1_pod_security_context.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_pod_security_context import V1PodSecurityContext + + +class TestV1PodSecurityContext(unittest.TestCase): + """ V1PodSecurityContext unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodSecurityContext(self): + """ + Test V1PodSecurityContext + """ + model = k8sclient.models.v1_pod_security_context.V1PodSecurityContext() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_pod_spec.py b/test/test_v1_pod_spec.py new file mode 100644 index 000000000..2ede8d07e --- /dev/null +++ b/test/test_v1_pod_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_pod_spec import V1PodSpec + + +class TestV1PodSpec(unittest.TestCase): + """ V1PodSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodSpec(self): + """ + Test V1PodSpec + """ + model = k8sclient.models.v1_pod_spec.V1PodSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_pod_status.py b/test/test_v1_pod_status.py new file mode 100644 index 000000000..51b319050 --- /dev/null +++ b/test/test_v1_pod_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_pod_status import V1PodStatus + + +class TestV1PodStatus(unittest.TestCase): + """ V1PodStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodStatus(self): + """ + Test V1PodStatus + """ + model = k8sclient.models.v1_pod_status.V1PodStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_pod_template.py b/test/test_v1_pod_template.py new file mode 100644 index 000000000..41488fed4 --- /dev/null +++ b/test/test_v1_pod_template.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_pod_template import V1PodTemplate + + +class TestV1PodTemplate(unittest.TestCase): + """ V1PodTemplate unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodTemplate(self): + """ + Test V1PodTemplate + """ + model = k8sclient.models.v1_pod_template.V1PodTemplate() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_pod_template_list.py b/test/test_v1_pod_template_list.py new file mode 100644 index 000000000..57dc7af05 --- /dev/null +++ b/test/test_v1_pod_template_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_pod_template_list import V1PodTemplateList + + +class TestV1PodTemplateList(unittest.TestCase): + """ V1PodTemplateList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodTemplateList(self): + """ + Test V1PodTemplateList + """ + model = k8sclient.models.v1_pod_template_list.V1PodTemplateList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_pod_template_spec.py b/test/test_v1_pod_template_spec.py new file mode 100644 index 000000000..bfdd410ae --- /dev/null +++ b/test/test_v1_pod_template_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_pod_template_spec import V1PodTemplateSpec + + +class TestV1PodTemplateSpec(unittest.TestCase): + """ V1PodTemplateSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodTemplateSpec(self): + """ + Test V1PodTemplateSpec + """ + model = k8sclient.models.v1_pod_template_spec.V1PodTemplateSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_preconditions.py b/test/test_v1_preconditions.py new file mode 100644 index 000000000..1e048012f --- /dev/null +++ b/test/test_v1_preconditions.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_preconditions import V1Preconditions + + +class TestV1Preconditions(unittest.TestCase): + """ V1Preconditions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Preconditions(self): + """ + Test V1Preconditions + """ + model = k8sclient.models.v1_preconditions.V1Preconditions() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_probe.py b/test/test_v1_probe.py new file mode 100644 index 000000000..5729dfcdb --- /dev/null +++ b/test/test_v1_probe.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_probe import V1Probe + + +class TestV1Probe(unittest.TestCase): + """ V1Probe unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Probe(self): + """ + Test V1Probe + """ + model = k8sclient.models.v1_probe.V1Probe() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_replication_controller.py b/test/test_v1_replication_controller.py new file mode 100644 index 000000000..132288e41 --- /dev/null +++ b/test/test_v1_replication_controller.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_replication_controller import V1ReplicationController + + +class TestV1ReplicationController(unittest.TestCase): + """ V1ReplicationController unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ReplicationController(self): + """ + Test V1ReplicationController + """ + model = k8sclient.models.v1_replication_controller.V1ReplicationController() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_replication_controller_condition.py b/test/test_v1_replication_controller_condition.py new file mode 100644 index 000000000..83be25238 --- /dev/null +++ b/test/test_v1_replication_controller_condition.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_replication_controller_condition import V1ReplicationControllerCondition + + +class TestV1ReplicationControllerCondition(unittest.TestCase): + """ V1ReplicationControllerCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ReplicationControllerCondition(self): + """ + Test V1ReplicationControllerCondition + """ + model = k8sclient.models.v1_replication_controller_condition.V1ReplicationControllerCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_replication_controller_list.py b/test/test_v1_replication_controller_list.py new file mode 100644 index 000000000..d71d2f269 --- /dev/null +++ b/test/test_v1_replication_controller_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_replication_controller_list import V1ReplicationControllerList + + +class TestV1ReplicationControllerList(unittest.TestCase): + """ V1ReplicationControllerList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ReplicationControllerList(self): + """ + Test V1ReplicationControllerList + """ + model = k8sclient.models.v1_replication_controller_list.V1ReplicationControllerList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_replication_controller_spec.py b/test/test_v1_replication_controller_spec.py new file mode 100644 index 000000000..6f5a7bad1 --- /dev/null +++ b/test/test_v1_replication_controller_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_replication_controller_spec import V1ReplicationControllerSpec + + +class TestV1ReplicationControllerSpec(unittest.TestCase): + """ V1ReplicationControllerSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ReplicationControllerSpec(self): + """ + Test V1ReplicationControllerSpec + """ + model = k8sclient.models.v1_replication_controller_spec.V1ReplicationControllerSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_replication_controller_status.py b/test/test_v1_replication_controller_status.py new file mode 100644 index 000000000..fce55de9e --- /dev/null +++ b/test/test_v1_replication_controller_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_replication_controller_status import V1ReplicationControllerStatus + + +class TestV1ReplicationControllerStatus(unittest.TestCase): + """ V1ReplicationControllerStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ReplicationControllerStatus(self): + """ + Test V1ReplicationControllerStatus + """ + model = k8sclient.models.v1_replication_controller_status.V1ReplicationControllerStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_resource_field_selector.py b/test/test_v1_resource_field_selector.py new file mode 100644 index 000000000..e1a4013f3 --- /dev/null +++ b/test/test_v1_resource_field_selector.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_resource_field_selector import V1ResourceFieldSelector + + +class TestV1ResourceFieldSelector(unittest.TestCase): + """ V1ResourceFieldSelector unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ResourceFieldSelector(self): + """ + Test V1ResourceFieldSelector + """ + model = k8sclient.models.v1_resource_field_selector.V1ResourceFieldSelector() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_resource_quota.py b/test/test_v1_resource_quota.py new file mode 100644 index 000000000..19f23e7a3 --- /dev/null +++ b/test/test_v1_resource_quota.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_resource_quota import V1ResourceQuota + + +class TestV1ResourceQuota(unittest.TestCase): + """ V1ResourceQuota unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ResourceQuota(self): + """ + Test V1ResourceQuota + """ + model = k8sclient.models.v1_resource_quota.V1ResourceQuota() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_resource_quota_list.py b/test/test_v1_resource_quota_list.py new file mode 100644 index 000000000..540ce3298 --- /dev/null +++ b/test/test_v1_resource_quota_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_resource_quota_list import V1ResourceQuotaList + + +class TestV1ResourceQuotaList(unittest.TestCase): + """ V1ResourceQuotaList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ResourceQuotaList(self): + """ + Test V1ResourceQuotaList + """ + model = k8sclient.models.v1_resource_quota_list.V1ResourceQuotaList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_resource_quota_spec.py b/test/test_v1_resource_quota_spec.py new file mode 100644 index 000000000..b667e13fc --- /dev/null +++ b/test/test_v1_resource_quota_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_resource_quota_spec import V1ResourceQuotaSpec + + +class TestV1ResourceQuotaSpec(unittest.TestCase): + """ V1ResourceQuotaSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ResourceQuotaSpec(self): + """ + Test V1ResourceQuotaSpec + """ + model = k8sclient.models.v1_resource_quota_spec.V1ResourceQuotaSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_resource_quota_status.py b/test/test_v1_resource_quota_status.py new file mode 100644 index 000000000..f2ab5d3d7 --- /dev/null +++ b/test/test_v1_resource_quota_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_resource_quota_status import V1ResourceQuotaStatus + + +class TestV1ResourceQuotaStatus(unittest.TestCase): + """ V1ResourceQuotaStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ResourceQuotaStatus(self): + """ + Test V1ResourceQuotaStatus + """ + model = k8sclient.models.v1_resource_quota_status.V1ResourceQuotaStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_resource_requirements.py b/test/test_v1_resource_requirements.py new file mode 100644 index 000000000..836bcae93 --- /dev/null +++ b/test/test_v1_resource_requirements.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_resource_requirements import V1ResourceRequirements + + +class TestV1ResourceRequirements(unittest.TestCase): + """ V1ResourceRequirements unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ResourceRequirements(self): + """ + Test V1ResourceRequirements + """ + model = k8sclient.models.v1_resource_requirements.V1ResourceRequirements() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_scale.py b/test/test_v1_scale.py new file mode 100644 index 000000000..262a286da --- /dev/null +++ b/test/test_v1_scale.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_scale import V1Scale + + +class TestV1Scale(unittest.TestCase): + """ V1Scale unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Scale(self): + """ + Test V1Scale + """ + model = k8sclient.models.v1_scale.V1Scale() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_scale_spec.py b/test/test_v1_scale_spec.py new file mode 100644 index 000000000..376f348f2 --- /dev/null +++ b/test/test_v1_scale_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_scale_spec import V1ScaleSpec + + +class TestV1ScaleSpec(unittest.TestCase): + """ V1ScaleSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ScaleSpec(self): + """ + Test V1ScaleSpec + """ + model = k8sclient.models.v1_scale_spec.V1ScaleSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_scale_status.py b/test/test_v1_scale_status.py new file mode 100644 index 000000000..2a06273c0 --- /dev/null +++ b/test/test_v1_scale_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_scale_status import V1ScaleStatus + + +class TestV1ScaleStatus(unittest.TestCase): + """ V1ScaleStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ScaleStatus(self): + """ + Test V1ScaleStatus + """ + model = k8sclient.models.v1_scale_status.V1ScaleStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_se_linux_options.py b/test/test_v1_se_linux_options.py new file mode 100644 index 000000000..4f697f5c3 --- /dev/null +++ b/test/test_v1_se_linux_options.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_se_linux_options import V1SELinuxOptions + + +class TestV1SELinuxOptions(unittest.TestCase): + """ V1SELinuxOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SELinuxOptions(self): + """ + Test V1SELinuxOptions + """ + model = k8sclient.models.v1_se_linux_options.V1SELinuxOptions() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_secret.py b/test/test_v1_secret.py new file mode 100644 index 000000000..1d3538cc6 --- /dev/null +++ b/test/test_v1_secret.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_secret import V1Secret + + +class TestV1Secret(unittest.TestCase): + """ V1Secret unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Secret(self): + """ + Test V1Secret + """ + model = k8sclient.models.v1_secret.V1Secret() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_secret_key_selector.py b/test/test_v1_secret_key_selector.py new file mode 100644 index 000000000..fa9ea3ce3 --- /dev/null +++ b/test/test_v1_secret_key_selector.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_secret_key_selector import V1SecretKeySelector + + +class TestV1SecretKeySelector(unittest.TestCase): + """ V1SecretKeySelector unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SecretKeySelector(self): + """ + Test V1SecretKeySelector + """ + model = k8sclient.models.v1_secret_key_selector.V1SecretKeySelector() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_secret_list.py b/test/test_v1_secret_list.py new file mode 100644 index 000000000..e45bcdeb4 --- /dev/null +++ b/test/test_v1_secret_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_secret_list import V1SecretList + + +class TestV1SecretList(unittest.TestCase): + """ V1SecretList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SecretList(self): + """ + Test V1SecretList + """ + model = k8sclient.models.v1_secret_list.V1SecretList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_security_context.py b/test/test_v1_security_context.py new file mode 100644 index 000000000..cb75ad525 --- /dev/null +++ b/test/test_v1_security_context.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_security_context import V1SecurityContext + + +class TestV1SecurityContext(unittest.TestCase): + """ V1SecurityContext unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SecurityContext(self): + """ + Test V1SecurityContext + """ + model = k8sclient.models.v1_security_context.V1SecurityContext() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_service.py b/test/test_v1_service.py new file mode 100644 index 000000000..447089a2e --- /dev/null +++ b/test/test_v1_service.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_service import V1Service + + +class TestV1Service(unittest.TestCase): + """ V1Service unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Service(self): + """ + Test V1Service + """ + model = k8sclient.models.v1_service.V1Service() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_service_account.py b/test/test_v1_service_account.py new file mode 100644 index 000000000..9a5dd91ef --- /dev/null +++ b/test/test_v1_service_account.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_service_account import V1ServiceAccount + + +class TestV1ServiceAccount(unittest.TestCase): + """ V1ServiceAccount unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ServiceAccount(self): + """ + Test V1ServiceAccount + """ + model = k8sclient.models.v1_service_account.V1ServiceAccount() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_service_account_list.py b/test/test_v1_service_account_list.py new file mode 100644 index 000000000..3b1209273 --- /dev/null +++ b/test/test_v1_service_account_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_service_account_list import V1ServiceAccountList + + +class TestV1ServiceAccountList(unittest.TestCase): + """ V1ServiceAccountList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ServiceAccountList(self): + """ + Test V1ServiceAccountList + """ + model = k8sclient.models.v1_service_account_list.V1ServiceAccountList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_service_list.py b/test/test_v1_service_list.py new file mode 100644 index 000000000..ce5d2ec4d --- /dev/null +++ b/test/test_v1_service_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_service_list import V1ServiceList + + +class TestV1ServiceList(unittest.TestCase): + """ V1ServiceList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ServiceList(self): + """ + Test V1ServiceList + """ + model = k8sclient.models.v1_service_list.V1ServiceList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_service_port.py b/test/test_v1_service_port.py new file mode 100644 index 000000000..ed08b9c99 --- /dev/null +++ b/test/test_v1_service_port.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_service_port import V1ServicePort + + +class TestV1ServicePort(unittest.TestCase): + """ V1ServicePort unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ServicePort(self): + """ + Test V1ServicePort + """ + model = k8sclient.models.v1_service_port.V1ServicePort() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_service_spec.py b/test/test_v1_service_spec.py new file mode 100644 index 000000000..0d6b421b5 --- /dev/null +++ b/test/test_v1_service_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_service_spec import V1ServiceSpec + + +class TestV1ServiceSpec(unittest.TestCase): + """ V1ServiceSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ServiceSpec(self): + """ + Test V1ServiceSpec + """ + model = k8sclient.models.v1_service_spec.V1ServiceSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_service_status.py b/test/test_v1_service_status.py new file mode 100644 index 000000000..c36dfd8bd --- /dev/null +++ b/test/test_v1_service_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_service_status import V1ServiceStatus + + +class TestV1ServiceStatus(unittest.TestCase): + """ V1ServiceStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ServiceStatus(self): + """ + Test V1ServiceStatus + """ + model = k8sclient.models.v1_service_status.V1ServiceStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_tcp_socket_action.py b/test/test_v1_tcp_socket_action.py new file mode 100644 index 000000000..ec4bccdd8 --- /dev/null +++ b/test/test_v1_tcp_socket_action.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_tcp_socket_action import V1TCPSocketAction + + +class TestV1TCPSocketAction(unittest.TestCase): + """ V1TCPSocketAction unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TCPSocketAction(self): + """ + Test V1TCPSocketAction + """ + model = k8sclient.models.v1_tcp_socket_action.V1TCPSocketAction() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_volume.py b/test/test_v1_volume.py new file mode 100644 index 000000000..693a8e4f7 --- /dev/null +++ b/test/test_v1_volume.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_volume import V1Volume + + +class TestV1Volume(unittest.TestCase): + """ V1Volume unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Volume(self): + """ + Test V1Volume + """ + model = k8sclient.models.v1_volume.V1Volume() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_volume_mount.py b/test/test_v1_volume_mount.py new file mode 100644 index 000000000..675d8e0bf --- /dev/null +++ b/test/test_v1_volume_mount.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1_volume_mount import V1VolumeMount + + +class TestV1VolumeMount(unittest.TestCase): + """ V1VolumeMount unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VolumeMount(self): + """ + Test V1VolumeMount + """ + model = k8sclient.models.v1_volume_mount.V1VolumeMount() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_certificate_signing_request.py b/test/test_v1alpha1_certificate_signing_request.py new file mode 100644 index 000000000..3e1707a0f --- /dev/null +++ b/test/test_v1alpha1_certificate_signing_request.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_certificate_signing_request import V1alpha1CertificateSigningRequest + + +class TestV1alpha1CertificateSigningRequest(unittest.TestCase): + """ V1alpha1CertificateSigningRequest unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1CertificateSigningRequest(self): + """ + Test V1alpha1CertificateSigningRequest + """ + model = k8sclient.models.v1alpha1_certificate_signing_request.V1alpha1CertificateSigningRequest() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_certificate_signing_request_condition.py b/test/test_v1alpha1_certificate_signing_request_condition.py new file mode 100644 index 000000000..a3fcc2935 --- /dev/null +++ b/test/test_v1alpha1_certificate_signing_request_condition.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_certificate_signing_request_condition import V1alpha1CertificateSigningRequestCondition + + +class TestV1alpha1CertificateSigningRequestCondition(unittest.TestCase): + """ V1alpha1CertificateSigningRequestCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1CertificateSigningRequestCondition(self): + """ + Test V1alpha1CertificateSigningRequestCondition + """ + model = k8sclient.models.v1alpha1_certificate_signing_request_condition.V1alpha1CertificateSigningRequestCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_certificate_signing_request_list.py b/test/test_v1alpha1_certificate_signing_request_list.py new file mode 100644 index 000000000..394ee83bf --- /dev/null +++ b/test/test_v1alpha1_certificate_signing_request_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_certificate_signing_request_list import V1alpha1CertificateSigningRequestList + + +class TestV1alpha1CertificateSigningRequestList(unittest.TestCase): + """ V1alpha1CertificateSigningRequestList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1CertificateSigningRequestList(self): + """ + Test V1alpha1CertificateSigningRequestList + """ + model = k8sclient.models.v1alpha1_certificate_signing_request_list.V1alpha1CertificateSigningRequestList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_certificate_signing_request_spec.py b/test/test_v1alpha1_certificate_signing_request_spec.py new file mode 100644 index 000000000..3e625c8b6 --- /dev/null +++ b/test/test_v1alpha1_certificate_signing_request_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_certificate_signing_request_spec import V1alpha1CertificateSigningRequestSpec + + +class TestV1alpha1CertificateSigningRequestSpec(unittest.TestCase): + """ V1alpha1CertificateSigningRequestSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1CertificateSigningRequestSpec(self): + """ + Test V1alpha1CertificateSigningRequestSpec + """ + model = k8sclient.models.v1alpha1_certificate_signing_request_spec.V1alpha1CertificateSigningRequestSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_certificate_signing_request_status.py b/test/test_v1alpha1_certificate_signing_request_status.py new file mode 100644 index 000000000..f51563222 --- /dev/null +++ b/test/test_v1alpha1_certificate_signing_request_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_certificate_signing_request_status import V1alpha1CertificateSigningRequestStatus + + +class TestV1alpha1CertificateSigningRequestStatus(unittest.TestCase): + """ V1alpha1CertificateSigningRequestStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1CertificateSigningRequestStatus(self): + """ + Test V1alpha1CertificateSigningRequestStatus + """ + model = k8sclient.models.v1alpha1_certificate_signing_request_status.V1alpha1CertificateSigningRequestStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_cluster_role.py b/test/test_v1alpha1_cluster_role.py new file mode 100644 index 000000000..62f4982eb --- /dev/null +++ b/test/test_v1alpha1_cluster_role.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_cluster_role import V1alpha1ClusterRole + + +class TestV1alpha1ClusterRole(unittest.TestCase): + """ V1alpha1ClusterRole unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1ClusterRole(self): + """ + Test V1alpha1ClusterRole + """ + model = k8sclient.models.v1alpha1_cluster_role.V1alpha1ClusterRole() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_cluster_role_binding.py b/test/test_v1alpha1_cluster_role_binding.py new file mode 100644 index 000000000..28991118f --- /dev/null +++ b/test/test_v1alpha1_cluster_role_binding.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_cluster_role_binding import V1alpha1ClusterRoleBinding + + +class TestV1alpha1ClusterRoleBinding(unittest.TestCase): + """ V1alpha1ClusterRoleBinding unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1ClusterRoleBinding(self): + """ + Test V1alpha1ClusterRoleBinding + """ + model = k8sclient.models.v1alpha1_cluster_role_binding.V1alpha1ClusterRoleBinding() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_cluster_role_binding_list.py b/test/test_v1alpha1_cluster_role_binding_list.py new file mode 100644 index 000000000..951c88002 --- /dev/null +++ b/test/test_v1alpha1_cluster_role_binding_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_cluster_role_binding_list import V1alpha1ClusterRoleBindingList + + +class TestV1alpha1ClusterRoleBindingList(unittest.TestCase): + """ V1alpha1ClusterRoleBindingList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1ClusterRoleBindingList(self): + """ + Test V1alpha1ClusterRoleBindingList + """ + model = k8sclient.models.v1alpha1_cluster_role_binding_list.V1alpha1ClusterRoleBindingList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_cluster_role_list.py b/test/test_v1alpha1_cluster_role_list.py new file mode 100644 index 000000000..2b60baa23 --- /dev/null +++ b/test/test_v1alpha1_cluster_role_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_cluster_role_list import V1alpha1ClusterRoleList + + +class TestV1alpha1ClusterRoleList(unittest.TestCase): + """ V1alpha1ClusterRoleList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1ClusterRoleList(self): + """ + Test V1alpha1ClusterRoleList + """ + model = k8sclient.models.v1alpha1_cluster_role_list.V1alpha1ClusterRoleList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_eviction.py b/test/test_v1alpha1_eviction.py new file mode 100644 index 000000000..0eaec2c86 --- /dev/null +++ b/test/test_v1alpha1_eviction.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_eviction import V1alpha1Eviction + + +class TestV1alpha1Eviction(unittest.TestCase): + """ V1alpha1Eviction unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1Eviction(self): + """ + Test V1alpha1Eviction + """ + model = k8sclient.models.v1alpha1_eviction.V1alpha1Eviction() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_pod_disruption_budget.py b/test/test_v1alpha1_pod_disruption_budget.py new file mode 100644 index 000000000..d2aee7142 --- /dev/null +++ b/test/test_v1alpha1_pod_disruption_budget.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_pod_disruption_budget import V1alpha1PodDisruptionBudget + + +class TestV1alpha1PodDisruptionBudget(unittest.TestCase): + """ V1alpha1PodDisruptionBudget unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1PodDisruptionBudget(self): + """ + Test V1alpha1PodDisruptionBudget + """ + model = k8sclient.models.v1alpha1_pod_disruption_budget.V1alpha1PodDisruptionBudget() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_pod_disruption_budget_list.py b/test/test_v1alpha1_pod_disruption_budget_list.py new file mode 100644 index 000000000..9acc2701f --- /dev/null +++ b/test/test_v1alpha1_pod_disruption_budget_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_pod_disruption_budget_list import V1alpha1PodDisruptionBudgetList + + +class TestV1alpha1PodDisruptionBudgetList(unittest.TestCase): + """ V1alpha1PodDisruptionBudgetList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1PodDisruptionBudgetList(self): + """ + Test V1alpha1PodDisruptionBudgetList + """ + model = k8sclient.models.v1alpha1_pod_disruption_budget_list.V1alpha1PodDisruptionBudgetList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_pod_disruption_budget_spec.py b/test/test_v1alpha1_pod_disruption_budget_spec.py new file mode 100644 index 000000000..644e5d189 --- /dev/null +++ b/test/test_v1alpha1_pod_disruption_budget_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_pod_disruption_budget_spec import V1alpha1PodDisruptionBudgetSpec + + +class TestV1alpha1PodDisruptionBudgetSpec(unittest.TestCase): + """ V1alpha1PodDisruptionBudgetSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1PodDisruptionBudgetSpec(self): + """ + Test V1alpha1PodDisruptionBudgetSpec + """ + model = k8sclient.models.v1alpha1_pod_disruption_budget_spec.V1alpha1PodDisruptionBudgetSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_pod_disruption_budget_status.py b/test/test_v1alpha1_pod_disruption_budget_status.py new file mode 100644 index 000000000..fefc202d2 --- /dev/null +++ b/test/test_v1alpha1_pod_disruption_budget_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_pod_disruption_budget_status import V1alpha1PodDisruptionBudgetStatus + + +class TestV1alpha1PodDisruptionBudgetStatus(unittest.TestCase): + """ V1alpha1PodDisruptionBudgetStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1PodDisruptionBudgetStatus(self): + """ + Test V1alpha1PodDisruptionBudgetStatus + """ + model = k8sclient.models.v1alpha1_pod_disruption_budget_status.V1alpha1PodDisruptionBudgetStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_policy_rule.py b/test/test_v1alpha1_policy_rule.py new file mode 100644 index 000000000..3ec7d7d65 --- /dev/null +++ b/test/test_v1alpha1_policy_rule.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_policy_rule import V1alpha1PolicyRule + + +class TestV1alpha1PolicyRule(unittest.TestCase): + """ V1alpha1PolicyRule unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1PolicyRule(self): + """ + Test V1alpha1PolicyRule + """ + model = k8sclient.models.v1alpha1_policy_rule.V1alpha1PolicyRule() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_role.py b/test/test_v1alpha1_role.py new file mode 100644 index 000000000..4d94dafc3 --- /dev/null +++ b/test/test_v1alpha1_role.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_role import V1alpha1Role + + +class TestV1alpha1Role(unittest.TestCase): + """ V1alpha1Role unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1Role(self): + """ + Test V1alpha1Role + """ + model = k8sclient.models.v1alpha1_role.V1alpha1Role() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_role_binding.py b/test/test_v1alpha1_role_binding.py new file mode 100644 index 000000000..375c42375 --- /dev/null +++ b/test/test_v1alpha1_role_binding.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_role_binding import V1alpha1RoleBinding + + +class TestV1alpha1RoleBinding(unittest.TestCase): + """ V1alpha1RoleBinding unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1RoleBinding(self): + """ + Test V1alpha1RoleBinding + """ + model = k8sclient.models.v1alpha1_role_binding.V1alpha1RoleBinding() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_role_binding_list.py b/test/test_v1alpha1_role_binding_list.py new file mode 100644 index 000000000..dd6a23822 --- /dev/null +++ b/test/test_v1alpha1_role_binding_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_role_binding_list import V1alpha1RoleBindingList + + +class TestV1alpha1RoleBindingList(unittest.TestCase): + """ V1alpha1RoleBindingList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1RoleBindingList(self): + """ + Test V1alpha1RoleBindingList + """ + model = k8sclient.models.v1alpha1_role_binding_list.V1alpha1RoleBindingList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_role_list.py b/test/test_v1alpha1_role_list.py new file mode 100644 index 000000000..4e67186dd --- /dev/null +++ b/test/test_v1alpha1_role_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_role_list import V1alpha1RoleList + + +class TestV1alpha1RoleList(unittest.TestCase): + """ V1alpha1RoleList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1RoleList(self): + """ + Test V1alpha1RoleList + """ + model = k8sclient.models.v1alpha1_role_list.V1alpha1RoleList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_role_ref.py b/test/test_v1alpha1_role_ref.py new file mode 100644 index 000000000..fd5c80079 --- /dev/null +++ b/test/test_v1alpha1_role_ref.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_role_ref import V1alpha1RoleRef + + +class TestV1alpha1RoleRef(unittest.TestCase): + """ V1alpha1RoleRef unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1RoleRef(self): + """ + Test V1alpha1RoleRef + """ + model = k8sclient.models.v1alpha1_role_ref.V1alpha1RoleRef() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_stateful_set.py b/test/test_v1alpha1_stateful_set.py new file mode 100644 index 000000000..357f5c5e7 --- /dev/null +++ b/test/test_v1alpha1_stateful_set.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_stateful_set import V1alpha1StatefulSet + + +class TestV1alpha1StatefulSet(unittest.TestCase): + """ V1alpha1StatefulSet unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1StatefulSet(self): + """ + Test V1alpha1StatefulSet + """ + model = k8sclient.models.v1alpha1_stateful_set.V1alpha1StatefulSet() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_stateful_set_list.py b/test/test_v1alpha1_stateful_set_list.py new file mode 100644 index 000000000..dcc05df75 --- /dev/null +++ b/test/test_v1alpha1_stateful_set_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_stateful_set_list import V1alpha1StatefulSetList + + +class TestV1alpha1StatefulSetList(unittest.TestCase): + """ V1alpha1StatefulSetList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1StatefulSetList(self): + """ + Test V1alpha1StatefulSetList + """ + model = k8sclient.models.v1alpha1_stateful_set_list.V1alpha1StatefulSetList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_stateful_set_spec.py b/test/test_v1alpha1_stateful_set_spec.py new file mode 100644 index 000000000..c3759bc89 --- /dev/null +++ b/test/test_v1alpha1_stateful_set_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_stateful_set_spec import V1alpha1StatefulSetSpec + + +class TestV1alpha1StatefulSetSpec(unittest.TestCase): + """ V1alpha1StatefulSetSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1StatefulSetSpec(self): + """ + Test V1alpha1StatefulSetSpec + """ + model = k8sclient.models.v1alpha1_stateful_set_spec.V1alpha1StatefulSetSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_stateful_set_status.py b/test/test_v1alpha1_stateful_set_status.py new file mode 100644 index 000000000..72898d686 --- /dev/null +++ b/test/test_v1alpha1_stateful_set_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_stateful_set_status import V1alpha1StatefulSetStatus + + +class TestV1alpha1StatefulSetStatus(unittest.TestCase): + """ V1alpha1StatefulSetStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1StatefulSetStatus(self): + """ + Test V1alpha1StatefulSetStatus + """ + model = k8sclient.models.v1alpha1_stateful_set_status.V1alpha1StatefulSetStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_subject.py b/test/test_v1alpha1_subject.py new file mode 100644 index 000000000..a1f6541aa --- /dev/null +++ b/test/test_v1alpha1_subject.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1alpha1_subject import V1alpha1Subject + + +class TestV1alpha1Subject(unittest.TestCase): + """ V1alpha1Subject unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1Subject(self): + """ + Test V1alpha1Subject + """ + model = k8sclient.models.v1alpha1_subject.V1alpha1Subject() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_api_version.py b/test/test_v1beta1_api_version.py new file mode 100644 index 000000000..a15f3e3af --- /dev/null +++ b/test/test_v1beta1_api_version.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_api_version import V1beta1APIVersion + + +class TestV1beta1APIVersion(unittest.TestCase): + """ V1beta1APIVersion unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1APIVersion(self): + """ + Test V1beta1APIVersion + """ + model = k8sclient.models.v1beta1_api_version.V1beta1APIVersion() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_cpu_target_utilization.py b/test/test_v1beta1_cpu_target_utilization.py new file mode 100644 index 000000000..e946b1bb2 --- /dev/null +++ b/test/test_v1beta1_cpu_target_utilization.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_cpu_target_utilization import V1beta1CPUTargetUtilization + + +class TestV1beta1CPUTargetUtilization(unittest.TestCase): + """ V1beta1CPUTargetUtilization unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1CPUTargetUtilization(self): + """ + Test V1beta1CPUTargetUtilization + """ + model = k8sclient.models.v1beta1_cpu_target_utilization.V1beta1CPUTargetUtilization() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_daemon_set.py b/test/test_v1beta1_daemon_set.py new file mode 100644 index 000000000..b26df138c --- /dev/null +++ b/test/test_v1beta1_daemon_set.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_daemon_set import V1beta1DaemonSet + + +class TestV1beta1DaemonSet(unittest.TestCase): + """ V1beta1DaemonSet unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DaemonSet(self): + """ + Test V1beta1DaemonSet + """ + model = k8sclient.models.v1beta1_daemon_set.V1beta1DaemonSet() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_daemon_set_list.py b/test/test_v1beta1_daemon_set_list.py new file mode 100644 index 000000000..37087f3c5 --- /dev/null +++ b/test/test_v1beta1_daemon_set_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_daemon_set_list import V1beta1DaemonSetList + + +class TestV1beta1DaemonSetList(unittest.TestCase): + """ V1beta1DaemonSetList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DaemonSetList(self): + """ + Test V1beta1DaemonSetList + """ + model = k8sclient.models.v1beta1_daemon_set_list.V1beta1DaemonSetList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_daemon_set_spec.py b/test/test_v1beta1_daemon_set_spec.py new file mode 100644 index 000000000..a17cc778a --- /dev/null +++ b/test/test_v1beta1_daemon_set_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_daemon_set_spec import V1beta1DaemonSetSpec + + +class TestV1beta1DaemonSetSpec(unittest.TestCase): + """ V1beta1DaemonSetSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DaemonSetSpec(self): + """ + Test V1beta1DaemonSetSpec + """ + model = k8sclient.models.v1beta1_daemon_set_spec.V1beta1DaemonSetSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_daemon_set_status.py b/test/test_v1beta1_daemon_set_status.py new file mode 100644 index 000000000..24f51922c --- /dev/null +++ b/test/test_v1beta1_daemon_set_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_daemon_set_status import V1beta1DaemonSetStatus + + +class TestV1beta1DaemonSetStatus(unittest.TestCase): + """ V1beta1DaemonSetStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DaemonSetStatus(self): + """ + Test V1beta1DaemonSetStatus + """ + model = k8sclient.models.v1beta1_daemon_set_status.V1beta1DaemonSetStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_deployment.py b/test/test_v1beta1_deployment.py new file mode 100644 index 000000000..a38289b07 --- /dev/null +++ b/test/test_v1beta1_deployment.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_deployment import V1beta1Deployment + + +class TestV1beta1Deployment(unittest.TestCase): + """ V1beta1Deployment unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1Deployment(self): + """ + Test V1beta1Deployment + """ + model = k8sclient.models.v1beta1_deployment.V1beta1Deployment() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_deployment_condition.py b/test/test_v1beta1_deployment_condition.py new file mode 100644 index 000000000..0dc52bf2e --- /dev/null +++ b/test/test_v1beta1_deployment_condition.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_deployment_condition import V1beta1DeploymentCondition + + +class TestV1beta1DeploymentCondition(unittest.TestCase): + """ V1beta1DeploymentCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DeploymentCondition(self): + """ + Test V1beta1DeploymentCondition + """ + model = k8sclient.models.v1beta1_deployment_condition.V1beta1DeploymentCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_deployment_list.py b/test/test_v1beta1_deployment_list.py new file mode 100644 index 000000000..1eafee79d --- /dev/null +++ b/test/test_v1beta1_deployment_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_deployment_list import V1beta1DeploymentList + + +class TestV1beta1DeploymentList(unittest.TestCase): + """ V1beta1DeploymentList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DeploymentList(self): + """ + Test V1beta1DeploymentList + """ + model = k8sclient.models.v1beta1_deployment_list.V1beta1DeploymentList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_deployment_rollback.py b/test/test_v1beta1_deployment_rollback.py new file mode 100644 index 000000000..5ba87b84d --- /dev/null +++ b/test/test_v1beta1_deployment_rollback.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_deployment_rollback import V1beta1DeploymentRollback + + +class TestV1beta1DeploymentRollback(unittest.TestCase): + """ V1beta1DeploymentRollback unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DeploymentRollback(self): + """ + Test V1beta1DeploymentRollback + """ + model = k8sclient.models.v1beta1_deployment_rollback.V1beta1DeploymentRollback() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_deployment_spec.py b/test/test_v1beta1_deployment_spec.py new file mode 100644 index 000000000..661c7f5b8 --- /dev/null +++ b/test/test_v1beta1_deployment_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_deployment_spec import V1beta1DeploymentSpec + + +class TestV1beta1DeploymentSpec(unittest.TestCase): + """ V1beta1DeploymentSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DeploymentSpec(self): + """ + Test V1beta1DeploymentSpec + """ + model = k8sclient.models.v1beta1_deployment_spec.V1beta1DeploymentSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_deployment_status.py b/test/test_v1beta1_deployment_status.py new file mode 100644 index 000000000..da4ff92dd --- /dev/null +++ b/test/test_v1beta1_deployment_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_deployment_status import V1beta1DeploymentStatus + + +class TestV1beta1DeploymentStatus(unittest.TestCase): + """ V1beta1DeploymentStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DeploymentStatus(self): + """ + Test V1beta1DeploymentStatus + """ + model = k8sclient.models.v1beta1_deployment_status.V1beta1DeploymentStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_deployment_strategy.py b/test/test_v1beta1_deployment_strategy.py new file mode 100644 index 000000000..a424cfdf0 --- /dev/null +++ b/test/test_v1beta1_deployment_strategy.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_deployment_strategy import V1beta1DeploymentStrategy + + +class TestV1beta1DeploymentStrategy(unittest.TestCase): + """ V1beta1DeploymentStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DeploymentStrategy(self): + """ + Test V1beta1DeploymentStrategy + """ + model = k8sclient.models.v1beta1_deployment_strategy.V1beta1DeploymentStrategy() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_horizontal_pod_autoscaler.py b/test/test_v1beta1_horizontal_pod_autoscaler.py new file mode 100644 index 000000000..974e4c9b5 --- /dev/null +++ b/test/test_v1beta1_horizontal_pod_autoscaler.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_horizontal_pod_autoscaler import V1beta1HorizontalPodAutoscaler + + +class TestV1beta1HorizontalPodAutoscaler(unittest.TestCase): + """ V1beta1HorizontalPodAutoscaler unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1HorizontalPodAutoscaler(self): + """ + Test V1beta1HorizontalPodAutoscaler + """ + model = k8sclient.models.v1beta1_horizontal_pod_autoscaler.V1beta1HorizontalPodAutoscaler() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_horizontal_pod_autoscaler_list.py b/test/test_v1beta1_horizontal_pod_autoscaler_list.py new file mode 100644 index 000000000..4bde2a5ce --- /dev/null +++ b/test/test_v1beta1_horizontal_pod_autoscaler_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_horizontal_pod_autoscaler_list import V1beta1HorizontalPodAutoscalerList + + +class TestV1beta1HorizontalPodAutoscalerList(unittest.TestCase): + """ V1beta1HorizontalPodAutoscalerList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1HorizontalPodAutoscalerList(self): + """ + Test V1beta1HorizontalPodAutoscalerList + """ + model = k8sclient.models.v1beta1_horizontal_pod_autoscaler_list.V1beta1HorizontalPodAutoscalerList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_horizontal_pod_autoscaler_spec.py b/test/test_v1beta1_horizontal_pod_autoscaler_spec.py new file mode 100644 index 000000000..d0f9b8fa9 --- /dev/null +++ b/test/test_v1beta1_horizontal_pod_autoscaler_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_horizontal_pod_autoscaler_spec import V1beta1HorizontalPodAutoscalerSpec + + +class TestV1beta1HorizontalPodAutoscalerSpec(unittest.TestCase): + """ V1beta1HorizontalPodAutoscalerSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1HorizontalPodAutoscalerSpec(self): + """ + Test V1beta1HorizontalPodAutoscalerSpec + """ + model = k8sclient.models.v1beta1_horizontal_pod_autoscaler_spec.V1beta1HorizontalPodAutoscalerSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_horizontal_pod_autoscaler_status.py b/test/test_v1beta1_horizontal_pod_autoscaler_status.py new file mode 100644 index 000000000..a10be7ebb --- /dev/null +++ b/test/test_v1beta1_horizontal_pod_autoscaler_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_horizontal_pod_autoscaler_status import V1beta1HorizontalPodAutoscalerStatus + + +class TestV1beta1HorizontalPodAutoscalerStatus(unittest.TestCase): + """ V1beta1HorizontalPodAutoscalerStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1HorizontalPodAutoscalerStatus(self): + """ + Test V1beta1HorizontalPodAutoscalerStatus + """ + model = k8sclient.models.v1beta1_horizontal_pod_autoscaler_status.V1beta1HorizontalPodAutoscalerStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_ingress.py b/test/test_v1beta1_ingress.py new file mode 100644 index 000000000..b584b3928 --- /dev/null +++ b/test/test_v1beta1_ingress.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_ingress import V1beta1Ingress + + +class TestV1beta1Ingress(unittest.TestCase): + """ V1beta1Ingress unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1Ingress(self): + """ + Test V1beta1Ingress + """ + model = k8sclient.models.v1beta1_ingress.V1beta1Ingress() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_ingress_backend.py b/test/test_v1beta1_ingress_backend.py new file mode 100644 index 000000000..2a650128d --- /dev/null +++ b/test/test_v1beta1_ingress_backend.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_ingress_backend import V1beta1IngressBackend + + +class TestV1beta1IngressBackend(unittest.TestCase): + """ V1beta1IngressBackend unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1IngressBackend(self): + """ + Test V1beta1IngressBackend + """ + model = k8sclient.models.v1beta1_ingress_backend.V1beta1IngressBackend() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_ingress_list.py b/test/test_v1beta1_ingress_list.py new file mode 100644 index 000000000..589c5b198 --- /dev/null +++ b/test/test_v1beta1_ingress_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_ingress_list import V1beta1IngressList + + +class TestV1beta1IngressList(unittest.TestCase): + """ V1beta1IngressList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1IngressList(self): + """ + Test V1beta1IngressList + """ + model = k8sclient.models.v1beta1_ingress_list.V1beta1IngressList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_ingress_rule.py b/test/test_v1beta1_ingress_rule.py new file mode 100644 index 000000000..cb5476de6 --- /dev/null +++ b/test/test_v1beta1_ingress_rule.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_ingress_rule import V1beta1IngressRule + + +class TestV1beta1IngressRule(unittest.TestCase): + """ V1beta1IngressRule unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1IngressRule(self): + """ + Test V1beta1IngressRule + """ + model = k8sclient.models.v1beta1_ingress_rule.V1beta1IngressRule() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_ingress_spec.py b/test/test_v1beta1_ingress_spec.py new file mode 100644 index 000000000..e236916bf --- /dev/null +++ b/test/test_v1beta1_ingress_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_ingress_spec import V1beta1IngressSpec + + +class TestV1beta1IngressSpec(unittest.TestCase): + """ V1beta1IngressSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1IngressSpec(self): + """ + Test V1beta1IngressSpec + """ + model = k8sclient.models.v1beta1_ingress_spec.V1beta1IngressSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_ingress_status.py b/test/test_v1beta1_ingress_status.py new file mode 100644 index 000000000..1f20d01cd --- /dev/null +++ b/test/test_v1beta1_ingress_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_ingress_status import V1beta1IngressStatus + + +class TestV1beta1IngressStatus(unittest.TestCase): + """ V1beta1IngressStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1IngressStatus(self): + """ + Test V1beta1IngressStatus + """ + model = k8sclient.models.v1beta1_ingress_status.V1beta1IngressStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_ingress_tls.py b/test/test_v1beta1_ingress_tls.py new file mode 100644 index 000000000..f8b6a22f0 --- /dev/null +++ b/test/test_v1beta1_ingress_tls.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_ingress_tls import V1beta1IngressTLS + + +class TestV1beta1IngressTLS(unittest.TestCase): + """ V1beta1IngressTLS unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1IngressTLS(self): + """ + Test V1beta1IngressTLS + """ + model = k8sclient.models.v1beta1_ingress_tls.V1beta1IngressTLS() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_job.py b/test/test_v1beta1_job.py new file mode 100644 index 000000000..7261d89fa --- /dev/null +++ b/test/test_v1beta1_job.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_job import V1beta1Job + + +class TestV1beta1Job(unittest.TestCase): + """ V1beta1Job unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1Job(self): + """ + Test V1beta1Job + """ + model = k8sclient.models.v1beta1_job.V1beta1Job() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_job_condition.py b/test/test_v1beta1_job_condition.py new file mode 100644 index 000000000..46903e758 --- /dev/null +++ b/test/test_v1beta1_job_condition.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_job_condition import V1beta1JobCondition + + +class TestV1beta1JobCondition(unittest.TestCase): + """ V1beta1JobCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1JobCondition(self): + """ + Test V1beta1JobCondition + """ + model = k8sclient.models.v1beta1_job_condition.V1beta1JobCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_job_list.py b/test/test_v1beta1_job_list.py new file mode 100644 index 000000000..074416c88 --- /dev/null +++ b/test/test_v1beta1_job_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_job_list import V1beta1JobList + + +class TestV1beta1JobList(unittest.TestCase): + """ V1beta1JobList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1JobList(self): + """ + Test V1beta1JobList + """ + model = k8sclient.models.v1beta1_job_list.V1beta1JobList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_job_spec.py b/test/test_v1beta1_job_spec.py new file mode 100644 index 000000000..68560742e --- /dev/null +++ b/test/test_v1beta1_job_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_job_spec import V1beta1JobSpec + + +class TestV1beta1JobSpec(unittest.TestCase): + """ V1beta1JobSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1JobSpec(self): + """ + Test V1beta1JobSpec + """ + model = k8sclient.models.v1beta1_job_spec.V1beta1JobSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_job_status.py b/test/test_v1beta1_job_status.py new file mode 100644 index 000000000..30b060c7d --- /dev/null +++ b/test/test_v1beta1_job_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_job_status import V1beta1JobStatus + + +class TestV1beta1JobStatus(unittest.TestCase): + """ V1beta1JobStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1JobStatus(self): + """ + Test V1beta1JobStatus + """ + model = k8sclient.models.v1beta1_job_status.V1beta1JobStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_local_subject_access_review.py b/test/test_v1beta1_local_subject_access_review.py new file mode 100644 index 000000000..5af512625 --- /dev/null +++ b/test/test_v1beta1_local_subject_access_review.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_local_subject_access_review import V1beta1LocalSubjectAccessReview + + +class TestV1beta1LocalSubjectAccessReview(unittest.TestCase): + """ V1beta1LocalSubjectAccessReview unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1LocalSubjectAccessReview(self): + """ + Test V1beta1LocalSubjectAccessReview + """ + model = k8sclient.models.v1beta1_local_subject_access_review.V1beta1LocalSubjectAccessReview() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_network_policy.py b/test/test_v1beta1_network_policy.py new file mode 100644 index 000000000..3aa5f4420 --- /dev/null +++ b/test/test_v1beta1_network_policy.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_network_policy import V1beta1NetworkPolicy + + +class TestV1beta1NetworkPolicy(unittest.TestCase): + """ V1beta1NetworkPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1NetworkPolicy(self): + """ + Test V1beta1NetworkPolicy + """ + model = k8sclient.models.v1beta1_network_policy.V1beta1NetworkPolicy() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_network_policy_ingress_rule.py b/test/test_v1beta1_network_policy_ingress_rule.py new file mode 100644 index 000000000..24ec10c2c --- /dev/null +++ b/test/test_v1beta1_network_policy_ingress_rule.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_network_policy_ingress_rule import V1beta1NetworkPolicyIngressRule + + +class TestV1beta1NetworkPolicyIngressRule(unittest.TestCase): + """ V1beta1NetworkPolicyIngressRule unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1NetworkPolicyIngressRule(self): + """ + Test V1beta1NetworkPolicyIngressRule + """ + model = k8sclient.models.v1beta1_network_policy_ingress_rule.V1beta1NetworkPolicyIngressRule() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_network_policy_list.py b/test/test_v1beta1_network_policy_list.py new file mode 100644 index 000000000..daf44c4f1 --- /dev/null +++ b/test/test_v1beta1_network_policy_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_network_policy_list import V1beta1NetworkPolicyList + + +class TestV1beta1NetworkPolicyList(unittest.TestCase): + """ V1beta1NetworkPolicyList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1NetworkPolicyList(self): + """ + Test V1beta1NetworkPolicyList + """ + model = k8sclient.models.v1beta1_network_policy_list.V1beta1NetworkPolicyList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_network_policy_peer.py b/test/test_v1beta1_network_policy_peer.py new file mode 100644 index 000000000..6649aa3dd --- /dev/null +++ b/test/test_v1beta1_network_policy_peer.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_network_policy_peer import V1beta1NetworkPolicyPeer + + +class TestV1beta1NetworkPolicyPeer(unittest.TestCase): + """ V1beta1NetworkPolicyPeer unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1NetworkPolicyPeer(self): + """ + Test V1beta1NetworkPolicyPeer + """ + model = k8sclient.models.v1beta1_network_policy_peer.V1beta1NetworkPolicyPeer() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_network_policy_port.py b/test/test_v1beta1_network_policy_port.py new file mode 100644 index 000000000..afd8cea80 --- /dev/null +++ b/test/test_v1beta1_network_policy_port.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_network_policy_port import V1beta1NetworkPolicyPort + + +class TestV1beta1NetworkPolicyPort(unittest.TestCase): + """ V1beta1NetworkPolicyPort unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1NetworkPolicyPort(self): + """ + Test V1beta1NetworkPolicyPort + """ + model = k8sclient.models.v1beta1_network_policy_port.V1beta1NetworkPolicyPort() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_network_policy_spec.py b/test/test_v1beta1_network_policy_spec.py new file mode 100644 index 000000000..e0348c221 --- /dev/null +++ b/test/test_v1beta1_network_policy_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_network_policy_spec import V1beta1NetworkPolicySpec + + +class TestV1beta1NetworkPolicySpec(unittest.TestCase): + """ V1beta1NetworkPolicySpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1NetworkPolicySpec(self): + """ + Test V1beta1NetworkPolicySpec + """ + model = k8sclient.models.v1beta1_network_policy_spec.V1beta1NetworkPolicySpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_non_resource_attributes.py b/test/test_v1beta1_non_resource_attributes.py new file mode 100644 index 000000000..7d82ee820 --- /dev/null +++ b/test/test_v1beta1_non_resource_attributes.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_non_resource_attributes import V1beta1NonResourceAttributes + + +class TestV1beta1NonResourceAttributes(unittest.TestCase): + """ V1beta1NonResourceAttributes unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1NonResourceAttributes(self): + """ + Test V1beta1NonResourceAttributes + """ + model = k8sclient.models.v1beta1_non_resource_attributes.V1beta1NonResourceAttributes() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_replica_set.py b/test/test_v1beta1_replica_set.py new file mode 100644 index 000000000..e7eeb392c --- /dev/null +++ b/test/test_v1beta1_replica_set.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_replica_set import V1beta1ReplicaSet + + +class TestV1beta1ReplicaSet(unittest.TestCase): + """ V1beta1ReplicaSet unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1ReplicaSet(self): + """ + Test V1beta1ReplicaSet + """ + model = k8sclient.models.v1beta1_replica_set.V1beta1ReplicaSet() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_replica_set_condition.py b/test/test_v1beta1_replica_set_condition.py new file mode 100644 index 000000000..722784869 --- /dev/null +++ b/test/test_v1beta1_replica_set_condition.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_replica_set_condition import V1beta1ReplicaSetCondition + + +class TestV1beta1ReplicaSetCondition(unittest.TestCase): + """ V1beta1ReplicaSetCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1ReplicaSetCondition(self): + """ + Test V1beta1ReplicaSetCondition + """ + model = k8sclient.models.v1beta1_replica_set_condition.V1beta1ReplicaSetCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_replica_set_list.py b/test/test_v1beta1_replica_set_list.py new file mode 100644 index 000000000..e3d746aeb --- /dev/null +++ b/test/test_v1beta1_replica_set_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_replica_set_list import V1beta1ReplicaSetList + + +class TestV1beta1ReplicaSetList(unittest.TestCase): + """ V1beta1ReplicaSetList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1ReplicaSetList(self): + """ + Test V1beta1ReplicaSetList + """ + model = k8sclient.models.v1beta1_replica_set_list.V1beta1ReplicaSetList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_replica_set_spec.py b/test/test_v1beta1_replica_set_spec.py new file mode 100644 index 000000000..cfd722c5b --- /dev/null +++ b/test/test_v1beta1_replica_set_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_replica_set_spec import V1beta1ReplicaSetSpec + + +class TestV1beta1ReplicaSetSpec(unittest.TestCase): + """ V1beta1ReplicaSetSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1ReplicaSetSpec(self): + """ + Test V1beta1ReplicaSetSpec + """ + model = k8sclient.models.v1beta1_replica_set_spec.V1beta1ReplicaSetSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_replica_set_status.py b/test/test_v1beta1_replica_set_status.py new file mode 100644 index 000000000..598e78fb6 --- /dev/null +++ b/test/test_v1beta1_replica_set_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_replica_set_status import V1beta1ReplicaSetStatus + + +class TestV1beta1ReplicaSetStatus(unittest.TestCase): + """ V1beta1ReplicaSetStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1ReplicaSetStatus(self): + """ + Test V1beta1ReplicaSetStatus + """ + model = k8sclient.models.v1beta1_replica_set_status.V1beta1ReplicaSetStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_resource_attributes.py b/test/test_v1beta1_resource_attributes.py new file mode 100644 index 000000000..7af7c575a --- /dev/null +++ b/test/test_v1beta1_resource_attributes.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_resource_attributes import V1beta1ResourceAttributes + + +class TestV1beta1ResourceAttributes(unittest.TestCase): + """ V1beta1ResourceAttributes unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1ResourceAttributes(self): + """ + Test V1beta1ResourceAttributes + """ + model = k8sclient.models.v1beta1_resource_attributes.V1beta1ResourceAttributes() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_rollback_config.py b/test/test_v1beta1_rollback_config.py new file mode 100644 index 000000000..bdf1fe7c1 --- /dev/null +++ b/test/test_v1beta1_rollback_config.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_rollback_config import V1beta1RollbackConfig + + +class TestV1beta1RollbackConfig(unittest.TestCase): + """ V1beta1RollbackConfig unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1RollbackConfig(self): + """ + Test V1beta1RollbackConfig + """ + model = k8sclient.models.v1beta1_rollback_config.V1beta1RollbackConfig() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_rolling_update_deployment.py b/test/test_v1beta1_rolling_update_deployment.py new file mode 100644 index 000000000..3e49a1f9e --- /dev/null +++ b/test/test_v1beta1_rolling_update_deployment.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_rolling_update_deployment import V1beta1RollingUpdateDeployment + + +class TestV1beta1RollingUpdateDeployment(unittest.TestCase): + """ V1beta1RollingUpdateDeployment unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1RollingUpdateDeployment(self): + """ + Test V1beta1RollingUpdateDeployment + """ + model = k8sclient.models.v1beta1_rolling_update_deployment.V1beta1RollingUpdateDeployment() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_scale.py b/test/test_v1beta1_scale.py new file mode 100644 index 000000000..2a4c189d8 --- /dev/null +++ b/test/test_v1beta1_scale.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_scale import V1beta1Scale + + +class TestV1beta1Scale(unittest.TestCase): + """ V1beta1Scale unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1Scale(self): + """ + Test V1beta1Scale + """ + model = k8sclient.models.v1beta1_scale.V1beta1Scale() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_scale_spec.py b/test/test_v1beta1_scale_spec.py new file mode 100644 index 000000000..7a68ed629 --- /dev/null +++ b/test/test_v1beta1_scale_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_scale_spec import V1beta1ScaleSpec + + +class TestV1beta1ScaleSpec(unittest.TestCase): + """ V1beta1ScaleSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1ScaleSpec(self): + """ + Test V1beta1ScaleSpec + """ + model = k8sclient.models.v1beta1_scale_spec.V1beta1ScaleSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_scale_status.py b/test/test_v1beta1_scale_status.py new file mode 100644 index 000000000..4d72e32a3 --- /dev/null +++ b/test/test_v1beta1_scale_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_scale_status import V1beta1ScaleStatus + + +class TestV1beta1ScaleStatus(unittest.TestCase): + """ V1beta1ScaleStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1ScaleStatus(self): + """ + Test V1beta1ScaleStatus + """ + model = k8sclient.models.v1beta1_scale_status.V1beta1ScaleStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_self_subject_access_review.py b/test/test_v1beta1_self_subject_access_review.py new file mode 100644 index 000000000..a4c914b5f --- /dev/null +++ b/test/test_v1beta1_self_subject_access_review.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_self_subject_access_review import V1beta1SelfSubjectAccessReview + + +class TestV1beta1SelfSubjectAccessReview(unittest.TestCase): + """ V1beta1SelfSubjectAccessReview unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1SelfSubjectAccessReview(self): + """ + Test V1beta1SelfSubjectAccessReview + """ + model = k8sclient.models.v1beta1_self_subject_access_review.V1beta1SelfSubjectAccessReview() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_self_subject_access_review_spec.py b/test/test_v1beta1_self_subject_access_review_spec.py new file mode 100644 index 000000000..dccec99e1 --- /dev/null +++ b/test/test_v1beta1_self_subject_access_review_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_self_subject_access_review_spec import V1beta1SelfSubjectAccessReviewSpec + + +class TestV1beta1SelfSubjectAccessReviewSpec(unittest.TestCase): + """ V1beta1SelfSubjectAccessReviewSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1SelfSubjectAccessReviewSpec(self): + """ + Test V1beta1SelfSubjectAccessReviewSpec + """ + model = k8sclient.models.v1beta1_self_subject_access_review_spec.V1beta1SelfSubjectAccessReviewSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_storage_class.py b/test/test_v1beta1_storage_class.py new file mode 100644 index 000000000..0506568ab --- /dev/null +++ b/test/test_v1beta1_storage_class.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_storage_class import V1beta1StorageClass + + +class TestV1beta1StorageClass(unittest.TestCase): + """ V1beta1StorageClass unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1StorageClass(self): + """ + Test V1beta1StorageClass + """ + model = k8sclient.models.v1beta1_storage_class.V1beta1StorageClass() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_storage_class_list.py b/test/test_v1beta1_storage_class_list.py new file mode 100644 index 000000000..206c4ccc5 --- /dev/null +++ b/test/test_v1beta1_storage_class_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_storage_class_list import V1beta1StorageClassList + + +class TestV1beta1StorageClassList(unittest.TestCase): + """ V1beta1StorageClassList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1StorageClassList(self): + """ + Test V1beta1StorageClassList + """ + model = k8sclient.models.v1beta1_storage_class_list.V1beta1StorageClassList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_subject_access_review.py b/test/test_v1beta1_subject_access_review.py new file mode 100644 index 000000000..ad0aaa8e7 --- /dev/null +++ b/test/test_v1beta1_subject_access_review.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_subject_access_review import V1beta1SubjectAccessReview + + +class TestV1beta1SubjectAccessReview(unittest.TestCase): + """ V1beta1SubjectAccessReview unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1SubjectAccessReview(self): + """ + Test V1beta1SubjectAccessReview + """ + model = k8sclient.models.v1beta1_subject_access_review.V1beta1SubjectAccessReview() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_subject_access_review_spec.py b/test/test_v1beta1_subject_access_review_spec.py new file mode 100644 index 000000000..98cb31d73 --- /dev/null +++ b/test/test_v1beta1_subject_access_review_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_subject_access_review_spec import V1beta1SubjectAccessReviewSpec + + +class TestV1beta1SubjectAccessReviewSpec(unittest.TestCase): + """ V1beta1SubjectAccessReviewSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1SubjectAccessReviewSpec(self): + """ + Test V1beta1SubjectAccessReviewSpec + """ + model = k8sclient.models.v1beta1_subject_access_review_spec.V1beta1SubjectAccessReviewSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_subject_access_review_status.py b/test/test_v1beta1_subject_access_review_status.py new file mode 100644 index 000000000..990e2c858 --- /dev/null +++ b/test/test_v1beta1_subject_access_review_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_subject_access_review_status import V1beta1SubjectAccessReviewStatus + + +class TestV1beta1SubjectAccessReviewStatus(unittest.TestCase): + """ V1beta1SubjectAccessReviewStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1SubjectAccessReviewStatus(self): + """ + Test V1beta1SubjectAccessReviewStatus + """ + model = k8sclient.models.v1beta1_subject_access_review_status.V1beta1SubjectAccessReviewStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_subresource_reference.py b/test/test_v1beta1_subresource_reference.py new file mode 100644 index 000000000..61d1abe89 --- /dev/null +++ b/test/test_v1beta1_subresource_reference.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_subresource_reference import V1beta1SubresourceReference + + +class TestV1beta1SubresourceReference(unittest.TestCase): + """ V1beta1SubresourceReference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1SubresourceReference(self): + """ + Test V1beta1SubresourceReference + """ + model = k8sclient.models.v1beta1_subresource_reference.V1beta1SubresourceReference() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_third_party_resource.py b/test/test_v1beta1_third_party_resource.py new file mode 100644 index 000000000..9570fa103 --- /dev/null +++ b/test/test_v1beta1_third_party_resource.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_third_party_resource import V1beta1ThirdPartyResource + + +class TestV1beta1ThirdPartyResource(unittest.TestCase): + """ V1beta1ThirdPartyResource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1ThirdPartyResource(self): + """ + Test V1beta1ThirdPartyResource + """ + model = k8sclient.models.v1beta1_third_party_resource.V1beta1ThirdPartyResource() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_third_party_resource_list.py b/test/test_v1beta1_third_party_resource_list.py new file mode 100644 index 000000000..a361db25f --- /dev/null +++ b/test/test_v1beta1_third_party_resource_list.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_third_party_resource_list import V1beta1ThirdPartyResourceList + + +class TestV1beta1ThirdPartyResourceList(unittest.TestCase): + """ V1beta1ThirdPartyResourceList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1ThirdPartyResourceList(self): + """ + Test V1beta1ThirdPartyResourceList + """ + model = k8sclient.models.v1beta1_third_party_resource_list.V1beta1ThirdPartyResourceList() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_token_review.py b/test/test_v1beta1_token_review.py new file mode 100644 index 000000000..7f057a036 --- /dev/null +++ b/test/test_v1beta1_token_review.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_token_review import V1beta1TokenReview + + +class TestV1beta1TokenReview(unittest.TestCase): + """ V1beta1TokenReview unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1TokenReview(self): + """ + Test V1beta1TokenReview + """ + model = k8sclient.models.v1beta1_token_review.V1beta1TokenReview() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_token_review_spec.py b/test/test_v1beta1_token_review_spec.py new file mode 100644 index 000000000..f6bc56add --- /dev/null +++ b/test/test_v1beta1_token_review_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_token_review_spec import V1beta1TokenReviewSpec + + +class TestV1beta1TokenReviewSpec(unittest.TestCase): + """ V1beta1TokenReviewSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1TokenReviewSpec(self): + """ + Test V1beta1TokenReviewSpec + """ + model = k8sclient.models.v1beta1_token_review_spec.V1beta1TokenReviewSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_token_review_status.py b/test/test_v1beta1_token_review_status.py new file mode 100644 index 000000000..c7ede2e76 --- /dev/null +++ b/test/test_v1beta1_token_review_status.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_token_review_status import V1beta1TokenReviewStatus + + +class TestV1beta1TokenReviewStatus(unittest.TestCase): + """ V1beta1TokenReviewStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1TokenReviewStatus(self): + """ + Test V1beta1TokenReviewStatus + """ + model = k8sclient.models.v1beta1_token_review_status.V1beta1TokenReviewStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_user_info.py b/test/test_v1beta1_user_info.py new file mode 100644 index 000000000..e277ac577 --- /dev/null +++ b/test/test_v1beta1_user_info.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.v1beta1_user_info import V1beta1UserInfo + + +class TestV1beta1UserInfo(unittest.TestCase): + """ V1beta1UserInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1UserInfo(self): + """ + Test V1beta1UserInfo + """ + model = k8sclient.models.v1beta1_user_info.V1beta1UserInfo() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_version_api.py b/test/test_version_api.py new file mode 100644 index 000000000..6e9119828 --- /dev/null +++ b/test/test_version_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.apis.version_api import VersionApi + + +class TestVersionApi(unittest.TestCase): + """ VersionApi unit test stubs """ + + def setUp(self): + self.api = k8sclient.apis.version_api.VersionApi() + + def tearDown(self): + pass + + def test_get_code_version(self): + """ + Test case for get_code_version + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_version_info.py b/test/test_version_info.py new file mode 100644 index 000000000..473221862 --- /dev/null +++ b/test/test_version_info.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.version_info import VersionInfo + + +class TestVersionInfo(unittest.TestCase): + """ VersionInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testVersionInfo(self): + """ + Test VersionInfo + """ + model = k8sclient.models.version_info.VersionInfo() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_versioned_event.py b/test/test_versioned_event.py new file mode 100644 index 000000000..e90297c75 --- /dev/null +++ b/test/test_versioned_event.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: unversioned + + Generated by: https://github.com/swagger-api/swagger-codegen.git + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import k8sclient +from k8sclient.rest import ApiException +from k8sclient.models.versioned_event import VersionedEvent + + +class TestVersionedEvent(unittest.TestCase): + """ VersionedEvent unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testVersionedEvent(self): + """ + Test VersionedEvent + """ + model = k8sclient.models.versioned_event.VersionedEvent() + + +if __name__ == '__main__': + unittest.main() diff --git a/tox.ini b/tox.ini new file mode 100644 index 000000000..d99517b76 --- /dev/null +++ b/tox.ini @@ -0,0 +1,10 @@ +[tox] +envlist = py27, py34 + +[testenv] +deps=-r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands= + nosetests \ + [] \ No newline at end of file